summaryrefslogtreecommitdiff
path: root/modules.d/95rootfs-block/module-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/95rootfs-block/module-setup.sh')
-rwxr-xr-xmodules.d/95rootfs-block/module-setup.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules.d/95rootfs-block/module-setup.sh b/modules.d/95rootfs-block/module-setup.sh
index 32eec4a4..6792f1d3 100755
--- a/modules.d/95rootfs-block/module-setup.sh
+++ b/modules.d/95rootfs-block/module-setup.sh
@@ -10,6 +10,15 @@ depends() {
echo fs-lib
}
+cmdline() {
+ local dev=/dev/block/$(find_root_block_device)
+ if [ -e $dev ]; then
+ printf " root=%s" $(get_persistent_dev "$dev")
+ printf " rootflags=%s" $(find_mp_fsopts /)
+ printf " rootfstype=%s" $(find_mp_fstype /)
+ fi
+}
+
install() {
if [[ $hostonly ]]; then