diff --git a/debian/changelog b/debian/changelog index 1ae84c8..1343dfb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +cloud-initramfs-tools (0.49) noble; urgency=medium + + [ Daniel Ruthardt ] + * overlayroot: Add support for multiple overlay devices + * overlayroot: Improve ro detection for when both ro and rw are present + + -- Daniel Ruthardt Thu, 8 Feb 2024 13:24:00 -0600 + cloud-initramfs-tools (0.48) noble; urgency=medium [ Brian Murray ] diff --git a/overlayroot/etc/overlayroot.conf b/overlayroot/etc/overlayroot.conf index 3d4e167..f978f35 100644 --- a/overlayroot/etc/overlayroot.conf +++ b/overlayroot/etc/overlayroot.conf @@ -17,13 +17,13 @@ # overlayroot=tmpfs # overlayroot=tmpfs:swap=1 # -# * overlayroot=DEVICE or overlayroot=device:PARAMETERS -# mount DEVICE as overlayfs and write changes there -# device must already have kernel mountalbe filesystem on it. +# * overlayroot=DEVICE[:DEVICE] or overlayroot=device:PARAMETERS +# mount DEVICE(s) as overlayfs and write changes to the first +# device(s) must already have kernel mountalbe filesystem on them. # # available parameters are: # * dev: default: "" [REQUIRED] -# use given device for backing filesystem. +# use given device(s) for backing filesystems. # Note, 'overlayroot=/dev/vdb' is translated to # 'overlayrooot=device:dev=/dev/vdb' # * timeout: default: 0 @@ -34,7 +34,9 @@ # examples: # overlayroot=/dev/xvdb # overlayroot=/dev/vdb +# overlayroot=/dev/vdc:/dev/vdb # overlayroot=device:dev=/dev/sdb,timeout=180 +# overlayroot=device:dev=/dev/sdc:/dev/sdb,timeout=180 # overlayroot=device:dev=LABEL=my-flashdrive,timeout=180 # # * overlayroot=crypt:PARAMETERS diff --git a/overlayroot/scripts/init-bottom/overlayroot b/overlayroot/scripts/init-bottom/overlayroot index 5c13811..1ead214 100755 --- a/overlayroot/scripts/init-bottom/overlayroot +++ b/overlayroot/scripts/init-bottom/overlayroot @@ -2,6 +2,7 @@ # Copyright, 2012 Dustin Kirkland # Copyright, 2012 Scott Moser # Copyright, 2012 Axel Heider +# Copyright, 2024 Daniel Ruthardt # # Based on scripts from # Sebastian P. @@ -335,7 +336,7 @@ overlayrootify_fstab() { local hash="#" oline="" ospec="" upper="" dirs="" copy_opts="" copy_opt="" local spec file vfstype opts pass freq line ro_line local workdir="" use_orig="" relfile="" needs_workdir=false noauto="" - + [ -f "$input" ] || return 1 cat <