14 if [[ $hostonly ]]; then
15 for dev
in "${!host_fs_types[@]}"; do
16 [[ ${host_fs_types[$dev]} = "reiserfs" ]] ||
[[ ${host_fs_types[$dev]} = "xfs" ]] ||
continue
17 rootopts
=$
(find_dev_fsopts
"$dev")
18 if [[ ${host_fs_types[$dev]} = "reiserfs" ]]; then
19 journaldev
=$
(fs_get_option
$rootopts "jdev")
20 elif [[ ${host_fs_types[$dev]} = "xfs" ]]; then
21 journaldev
=$
(fs_get_option
$rootopts "logdev")
24 if [ -n "$journaldev" ]; then
25 printf " root.journaldev=%s" "$journaldev"
33 local _dev
=/dev
/block
/$
(find_root_block_device
)
34 local _fstype _flags _subvol
36 printf " root=%s" "$(shorten_persistent_dev "$
(get_persistent_dev
"$_dev")")"
37 _fstype
="$(find_mp_fstype /)"
38 _flags
="$(find_mp_fsopts /)"
39 printf " rootfstype=%s" "$_fstype"
40 if [[ $use_fstab != yes ]] && [[ $_fstype = btrfs
]]; then
41 _subvol
=$
(findmnt
-e -v -n -o FSROOT
--target /) \
42 && _subvol
=${_subvol#/}
43 _flags
="$_flags,${_subvol:+subvol=$_subvol}"
45 printf " rootflags=%s" "${_flags#,}"
57 if [[ $hostonly_cmdline == "yes" ]]; then
58 local _journaldev
=$
(cmdline_journal
)
59 [[ $_journaldev ]] && printf "%s\n" "$_journaldev" >> "${initdir}/etc/cmdline.d/95root-journaldev.conf"
60 local _rootdev
=$
(cmdline_rootfs
)
61 [[ $_rootdev ]] && printf "%s\n" "$_rootdev" >> "${initdir}/etc/cmdline.d/95root-dev.conf"
66 if ! dracut_module_included
"systemd"; then
67 inst_hook cmdline
95 "$moddir/parse-block.sh"
68 inst_hook pre-udev
30 "$moddir/block-genrules.sh"
69 inst_hook mount
99 "$moddir/mount-root.sh"
72 inst_hook initqueue
/timeout
99 "$moddir/rootfallback.sh"