Public bug reported:

This is a feature request.

Currently, when `overlayroot=tmpfs:size=4G` is passed via the kernel
command line, the overlayroot initramfs script in cloud-initramfs-tools
ignores the `:size=` parameter and creates a tmpfs with the default size
instead of the specified size. This prevents users from controlling the
size of the writable overlay filesystem, which is particularly important
for MAAS ephemeral deployments where users need to specify tmpfs sizes
via kernel options. The overlayroot script should be modified to parse
the `:size=` parameter from the kernel command line (e.g.,
`overlayroot=tmpfs:size=4G` or `overlayroot=tmpfs:size=25%`) and mount
`/media/root-rw` with the specified size using `mount -o size=X`. This
would provide a cleaner solution for controlling overlayroot tmpfs size
at boot time.

** Affects: cloud-initramfs-tools (Ubuntu)
     Importance: Undecided
         Status: New

** Summary changed:

- overlayroot initramfs script should parse :size= parameter from kernel 
command li
+ overlayroot initramfs script should parse :size= parameter from kernel 
command line

** Description changed:

+ This is a feature request.
+ 
  Currently, when `overlayroot=tmpfs:size=4G` is passed via the kernel
  command line, the overlayroot initramfs script in cloud-initramfs-tools
  ignores the `:size=` parameter and creates a tmpfs with the default size
  instead of the specified size. This prevents users from controlling the
  size of the writable overlay filesystem, which is particularly important
  for MAAS ephemeral deployments where users need to specify tmpfs sizes
  via kernel options. The overlayroot script should be modified to parse
  the `:size=` parameter from the kernel command line (e.g.,
  `overlayroot=tmpfs:size=4G` or `overlayroot=tmpfs:size=25%`) and mount
  `/media/root-rw` with the specified size using `mount -o size=X`. This
  would provide a cleaner solution for controlling overlayroot tmpfs size
  at boot time.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139105

Title:
  overlayroot initramfs script should parse :size= parameter from kernel
  command line

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-initramfs-tools/+bug/2139105/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to