Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions recipes-core/initrdscripts/initramfs-framework/rorootfs-overlay
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,21 @@ rorootfs_run() {
[ -n "$bootparam_init" ] && INIT="$bootparam_init"
[ -n "$bootparam_rootinit" ] && ROOT_ROINIT="$bootparam_rootinit"
[ -n "$bootparam_rootrwreset" ] && ROOT_RWRESET="$bootparam_rootrwreset"
[ -n "$bootparam_rootrwreset" ] && ROOT_RWRESET2="$bootparam_rootrwreset2"
[ -n "$bootparam_rootrwreset" ] && FACTORY_RESET="$bootparam_factoryreset"
[ -n "$bootparam_rootrwreset2" ] && ROOT_RWRESET2="$bootparam_rootrwreset2"
[ -n "$bootparam_factoryreset" ] && FACTORY_RESET="$bootparam_factoryreset"

[ -n "$bootparam_root" ] && ROOT_RODEVICE="$(rorootfs_find_device "$bootparam_root")"
[ -n "$bootparam_rootrw" ] && ROOT_RWDEVICE="$(rorootfs_find_device "$bootparam_rootrw")"
[ -n "$bootparam_rootrw" ] && ROOT_RWDEVICE2="$(rorootfs_find_device "$bootparam_rootrw2")"
[ -n "$bootparam_rootrw2" ] && ROOT_RWDEVICE2="$(rorootfs_find_device "$bootparam_rootrw2")"

[ -n "$bootparam_rootfstype" ] && ROOT_ROFSTYPE="$bootparam_rootfstype"
[ -n "$bootparam_rootoptions" ] && ROOT_ROMOUNTOPTIONS="$bootparam_rootoptions"

[ -n "$bootparam_rootrwfstype" ] && ROOT_RWFSTYPE="$bootparam_rootrwfstype"
[ -n "$bootparam_rootrwoptions" ] && ROOT_RWMOUNTOPTIONS="$bootparam_rootrwoptions"

[ -n "$bootparam_rootrwfstype" ] && ROOT_RWFSTYPE2="$bootparam_rootrwfstype2"
[ -n "$bootparam_rootrwoptions" ] && ROOT_RWMOUNTOPTIONS2="$bootparam_rootrwoptions2"
[ -n "$bootparam_rootrwfstype2" ] && ROOT_RWFSTYPE2="$bootparam_rootrwfstype2"
[ -n "$bootparam_rootrwoptions2" ] && ROOT_RWMOUNTOPTIONS2="$bootparam_rootrwoptions2"

# We use 2nd level of overlay if rootrw2 was given in the kernel cmdline
# AND rwoverlaylvl was set to 2
Expand Down
2 changes: 2 additions & 0 deletions recipes-kernel/linux/files/overlayfs.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SPDX-License-Identifier: MIT
CONFIG_OVERLAY_FS=y
6 changes: 5 additions & 1 deletion recipes-kernel/linux/linux-readonly-rootfs-overlay.inc
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
KERNEL_FEATURES_append = " features/overlayfs/overlayfs.scc"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI_append = " \
file://overlayfs.cfg \
"