summaryrefslogtreecommitdiff
path: root/dracut.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dracut.sh')
-rwxr-xr-xdracut.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/dracut.sh b/dracut.sh
index 90605e1d..e690b4eb 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -938,6 +938,22 @@ for dev in ${host_devs[@]}; do
check_block_and_slaves_all _get_fs_type "$(get_maj_min "$dev")"
done
+for dev in "${!host_fs_types[@]}"; do
+ [[ ${host_fs_types[$dev]} = "reiserfs" ]] || [[ ${host_fs_types[$dev]} = "xfs" ]] || continue
+ rootopts=$(find_dev_fsopts "$dev")
+ if [[ ${host_fs_types[$dev]} = "reiserfs" ]]; then
+ journaldev=$(fs_get_option $rootopts "jdev")
+ elif [[ ${host_fs_types[$dev]} = "xfs" ]]; then
+ journaldev=$(fs_get_option $rootopts "logdev")
+ fi
+ if [[ $journaldev ]]; then
+ dev="$(readlink -f "$dev")"
+ push host_devs "$dev"
+ _get_fs_type "$dev"
+ check_block_and_slaves_all _get_fs_type "$(get_maj_min "$dev")"
+ fi
+done
+
[[ -d $udevdir ]] \
|| udevdir="$(pkg-config udev --variable=udevdir 2>/dev/null)"
if ! [[ -d "$udevdir" ]]; then