diff options
Diffstat (limited to 'dracut.sh')
-rwxr-xr-x | dracut.sh | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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 |