[Bug 1961047] Re: swapfile has holes on preinstalled desktop

Matthieu Clemenceau 1961047 at bugs.launchpad.net
Thu Feb 17 16:19:10 UTC 2022


** Tags added: fr-2065

-- 
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:
  Confirmed
Status in livecd-rootfs source package in Jammy:
  Confirmed

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