swapfile has holes on preinstalled desktop
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
livecd-rootfs (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The swapfile generated on the current Ubuntu on Raspberry Pi dailies for jammy includes holes which prevents the swapfile from activating on boot. After digging through livecd-rootfs and ubuntu-image I *think* this might be a problem introduced by the latter. However, this seems to come up periodically so rather than repeatedly trying to squash the problem let's just avoid it entirely by having the swapfile allocated on first boot. Using fallocate for this (instead of dd'ing /dev/zero) works happily and is extremely quick.
I've proposed the following merge against ubuntu/master which implements this change (and cleans up some cruft in the fstab handling; that's in a separate commit though -- happy to remove it if wanted):
https:/
The change has been tested on the armhf and arm64 preinstalled jammy dailies and works happily. My one concern was that the file-system expansion must happen prior to the swapfile allocation, but given systemd is handling the expansion, and the allocation has "After=
Related branches
- Łukasz Zemczak: Approve
-
Diff: 97 lines (+70/-7)2 files modifieddebian/changelog (+8/-0)
live-build/ubuntu/hooks/099-ubuntu-image-customization.chroot (+62/-7)
Changed in livecd-rootfs (Ubuntu Jammy): | |
milestone: | none → ubuntu-22.04 |
tags: | added: raspi-image |
summary: |
- swapfile has holes + swapfile has holes on preinstalled desktop |
Changed in livecd-rootfs (Ubuntu Jammy): | |
status: | New → Confirmed |
tags: | added: rls-jj-incoming |
tags: | added: fr-2065 |
tags: | removed: rls-jj-incoming |
This bug was fixed in the package livecd-rootfs - 2.757
---------------
livecd-rootfs (2.757) jammy; urgency=medium
[ Dave Jones ]
* Fix holes in swapfiles on pre-installed desktop images. Instead of
pre-allocating the swapfile in the image, allocate it on first boot and
use a systemd .swap unit to activate it (LP: #1961047)
[ Łukasz 'sil2100' Zemczak ]
* Use the 'classic' branch of the pi gadget for both classic and desktop
pi images by specifying the gadget make target during the gadget priming
phase.
-- Łukasz 'sil2100' Zemczak <email address hidden> Tue, 22 Feb 2022 11:33:28 +0100