Public bug reported:

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.

** Affects: livecd-rootfs (Ubuntu)
     Importance: Undecided
         Status: Confirmed

** Affects: livecd-rootfs (Ubuntu Jammy)
     Importance: Undecided
         Status: Confirmed


** Tags: raspi-image

** Also affects: livecd-rootfs (Ubuntu Jammy)
   Importance: Undecided
       Status: New

** Changed in: livecd-rootfs (Ubuntu Jammy)
    Milestone: None => ubuntu-22.04

** Tags added: raspi-image

** Summary changed:

- swapfile has holes
+ swapfile has holes on preinstalled desktop

** Changed in: livecd-rootfs (Ubuntu Jammy)
       Status: New => Confirmed

** Merge proposal linked:
   
https://code.launchpad.net/~waveform/livecd-rootfs/+git/livecd-rootfs/+merge/415625

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1961047

Title:
  swapfile has holes on preinstalled desktop

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1961047/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to