systemd tools fail to mount disk images with btrfs filesystems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Committed
|
Undecided
|
Unassigned | ||
Noble |
Fix Released
|
Medium
|
Nick Rosbrook |
Bug Description
SRU Justification
[Impact]
In Ubuntu Noble, systemd-repart fail to mount images with btrfs filesystems in them. This is because the kernel removed the "norecovery" mount option which systemd-repart adds in when mounting filesystems from disk images.
Commit which removed "norecovery" in the kernel: https:/
[Fix]
The issue was worked around upstream in systemd in https:/
[Test]
To reproduce:
git clone https:/
cd mkosi
bin/mkosi -d fedora -t disk --tools-
sudo systemd-repart --image mkosi.output/
The last command will fail with "Failed to mount image: Invalid argument". After backporting the two systemd commits, the last command will succeed.
[Regression Potential]
Low, the systemd commits only change behavior for btrfs filesystems, which are currently not working at all. The commits have been backported to the systemd stable releases and we've had no reports of any issues caused by backporting these commits.
description: | updated |
Thanks for filling out the SRU template. I tested this locally and was able to reproduce the bug using your instructions.
I will include this in the next Noble SRU.