]>
git.ipfire.org Git - thirdparty/dracut.git/blob - modules.d/95rootfs-block/module-setup.sh
2 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
3 # ex: ts=8 sw=4 sts=4 et filetype=sh
14 local dev
=/dev
/block
/$
(find_root_block_device
)
16 printf " root=%s" $
(get_persistent_dev
"$dev")
17 printf " rootflags=%s" $
(find_mp_fsopts
/)
18 printf " rootfstype=%s" $
(find_mp_fstype
/)
24 if [[ $hostonly ]]; then
25 for dev
in "${!host_fs_types[@]}"; do
26 [[ ${host_fs_types[$dev]} = "reiserfs" ]] ||
[[ ${host_fs_types[$dev]} = "xfs" ]] ||
continue
27 rootopts
=$
(find_dev_fsopts
"$dev")
28 if [[ ${host_fs_types[$dev]} = "reiserfs" ]]; then
29 journaldev
=$
(fs_get_option
$rootopts "jdev")
30 elif [[ ${host_fs_types[$dev]} = "xfs" ]]; then
31 journaldev
=$
(fs_get_option
$rootopts "logdev")
34 if [ -n "$journaldev" ]; then
35 echo "root.journaldev=$journaldev" >> "${initdir}/etc/cmdline.d/95root-journaldev.conf"
42 if ! dracut_module_included
"systemd"; then
43 inst_hook cmdline
95 "$moddir/parse-block.sh"
44 inst_hook pre-udev
30 "$moddir/block-genrules.sh"
45 inst_hook mount
99 "$moddir/mount-root.sh"