File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
overlayroot/scripts/init-bottom Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ cloud-initramfs-tools (0.49) noble; urgency=medium
22
33 [ Daniel Ruthardt ]
44 * overlayroot: Add support for multiple overlay devices
5+ * overlayroot: Improve ro detection for when both ro and rw are present
56
67 -- Daniel Ruthardt <druthardt@linuxfoundation.org> Thu, 8 Feb 2024 13:24:00 -0600
78
Original file line number Diff line number Diff line change @@ -713,7 +713,8 @@ overlayroot_driver=${_RET_common_driver}
713713
714714read cmdline < /proc/cmdline
715715cmdline=" $cmdline "
716- [ " ${cmdline#* ro } " != " $cmdline " ] && cmdline_ro=true || cmdline_ro=false
716+ if ([ " ${cmdline#* ro } " != " $cmdline " ] && [ " ${cmdline#* ro } " != * rw* ]) && cmdline_ro=true || \
717+ cmdline_ro=false
717718
718719if [ " ${overlayroot_driver:- auto} " = " auto" ]; then
719720 search_fs_driver overlay overlayfs ||
You can’t perform that action at this time.
0 commit comments