summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/initrdscripts/initramfs-framework/overlayroot4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/overlayroot b/meta/recipes-core/initrdscripts/initramfs-framework/overlayroot
index d40342dc59..10084228a8 100644
--- a/meta/recipes-core/initrdscripts/initramfs-framework/overlayroot
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/overlayroot
@@ -18,6 +18,8 @@
18# root filesystem, and requires 'rootrw=<foo>' to be passed as a 18# root filesystem, and requires 'rootrw=<foo>' to be passed as a
19# kernel parameter, specifying the device/partition intended to 19# kernel parameter, specifying the device/partition intended to
20# use as RW. 20# use as RW.
21# Mount options of the RW device can be tweaked with 'overlayrootfstype='
22# (defaults to 'ext4') and 'overlayrootfsflags=' ('defaults').
21# 23#
22# This module needs to be executed after the initramfs-module-rootfs 24# This module needs to be executed after the initramfs-module-rootfs
23# since it relies on it to mount the filesystem at initramfs startup 25# since it relies on it to mount the filesystem at initramfs startup
@@ -80,7 +82,7 @@ fi
80mkdir -p ${RWMOUNT} 82mkdir -p ${RWMOUNT}
81 83
82# Mount RW device 84# Mount RW device
83if mount -n -t ${bootparam_rootfstype:-ext4} -o ${bootparam_rootflags:-defaults} ${bootparam_rootrw} ${RWMOUNT} 85if mount -n -t ${bootparam_overlayrootfstype:-ext4} -o ${bootparam_overlayrootfsflags:-defaults} ${bootparam_rootrw} ${RWMOUNT}
84then 86then
85 # Set up overlay directories 87 # Set up overlay directories
86 mkdir -p ${UPPER_DIR} 88 mkdir -p ${UPPER_DIR}