Hello,

I can confirm this problem for Raspbian 10 (buster, after upgrading from
9, stretch) on a F2FS rootfs. Deleting /var/swap, creating it with dd
from /dev/zero and manually mkswap it, solves the problem, the service
starts again then.

swapon failed before with the aforementioned error in kernellog:

[Thu Aug  8 21:39:30 2019] swapon: swapfile has holes

I suspect the problem being the use of 'fallocate' and 'f2fs'. man
mkswap(8) states this:

       Note  that  a swap file must not contain any holes.  Using cp(1)
to create the file is not
       acceptable.  Neither is use of fallocate(1) on  file  systems
that  support  preallocated
       files, such as XFS or ext4, or on copy-on-write filesystems like
btrfs.  It is recommended
       to use dd(1) and /dev/zero in these cases.  Please read notes
from swapon(8) before adding
       a swap file to copy-on-write filesystems.

Hope that helps to fix the package?!

Kind regards
Alex

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to