[Bug 1961047] Re: swapfile has holes on preinstalled desktop
Launchpad Bug Tracker
1961047 at bugs.launchpad.net
Thu Feb 24 04:02:40 UTC 2022
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 <lukasz.zemczak at ubuntu.com> Tue, 22 Feb
2022 11:33:28 +0100
** Changed in: livecd-rootfs (Ubuntu Jammy)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/1961047
Title:
swapfile has holes on preinstalled desktop
Status in livecd-rootfs package in Ubuntu:
Fix Released
Status in livecd-rootfs source package in Jammy:
Fix Released
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://code.launchpad.net/~waveform/livecd-rootfs/+git/livecd-
rootfs/+merge/415625
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=local-fs.target" specified, this appears to be sufficient for
everything to run in the correct order.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1961047/+subscriptions
More information about the foundations-bugs
mailing list