ubuntu-device-flash should not create data in writable partition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Invalid
|
High
|
Unassigned |
Bug Description
after a fresh image creation the directory /system-
having pre-created data in that partition makes us very inflexible for just booting from a freshly formatted empty media (with the proper writable label) or for booting with the writable partition in a tmpfs for readonly non-persistent installations.
the writable partition should not contain data before first boot. if needed, such files should be copied in place with an initramfs hook during boot from a storage space in the /boot partition.
without these files in place the system does not boot properly (i.e. when formatting the writable partition to do a "factory reset"). cloud-init hangs forever with error messages like http://
Changed in snappy: | |
status: | New → Triaged |
importance: | Undecided → High |
The only issue about storing such files at /boot is that we usually want to avoid touching such partition, for various reasons (and it's also vfat). But we should indeed not rely on the writable partition.
I know this is used by the cloud images, and MAAS was also going to use the same mechanism, so we need to align the fix with everyone when landing it.