diff options
-rwxr-xr-x | meta/recipes-core/initrdscripts/initramfs-framework/finish | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/finish b/meta/recipes-core/initrdscripts/initramfs-framework/finish index 325f47be40..006aef202f 100755 --- a/meta/recipes-core/initrdscripts/initramfs-framework/finish +++ b/meta/recipes-core/initrdscripts/initramfs-framework/finish | |||
@@ -22,7 +22,14 @@ finish_run() { | |||
22 | fi | 22 | fi |
23 | 23 | ||
24 | if [ -e "$bootparam_root" ]; then | 24 | if [ -e "$bootparam_root" ]; then |
25 | mount $bootparam_root $ROOTFS_DIR | 25 | flags="" |
26 | if [ -n "$bootparam_rootflags" ]; then | ||
27 | flags="$flags -o$bootparam_rootflags" | ||
28 | fi | ||
29 | if [ -n "$bootparam_rootfstype" ]; then | ||
30 | flags="$flags -t$bootparam_rootfstype" | ||
31 | fi | ||
32 | mount $flags $bootparam_root $ROOTFS_DIR | ||
26 | else | 33 | else |
27 | debug "root '$bootparam_root' doesn't exist." | 34 | debug "root '$bootparam_root' doesn't exist." |
28 | fi | 35 | fi |