Root filesystem not resized if e2fsck repairs any issues
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools-ubuntu-core (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Observed on Ubuntu Core 18, which uses initramfs-
The script which resizes the writable partition (scripts/
The current behavior is that the script exits prematurely. The partition has been resized, but the filesystem has not. Because Ubuntu Core 18 lacks the fix that will resize the filesystem even when the partition is the correct size (https:/
I found this issue because I was improperly ejecting an SD card after flashing it with the Ubuntu Core 18 image, and wound up with ext4 filesystem issues. I was waiting for the flashing command to sync, so all of the files were intact, but parts of Gnome were automouting it and doing something with it, which I believe lead to the issues with the filesystem that were correctable by e2fsck. I totally admit the root cause here was due to operator error, and any image made with ubuntu-image that is not accidentally corrupted due to premature ejection would not exhibit this issue. That said, the end result was fairly difficult to diagnose and the fix seems straightforward -- look at the exit code from e2fsck -- so I figured I would report it.