Already since kernel 6.1.3, now also again with kernel 6.1.4 I have these error messages when booting:
The swapfile could not be activated:
[uwe@HAL ~]$ systemctl status swap-swapfile.swap
× swap-swapfile.swap - /swap/swapfile
Loaded: loaded (/etc/fstab; generated)
Active: failed (Result: exit-code) since Sun 2023-01-08 18:45:30 CET; 12min ago
What: /swap/swapfile
Docs: man:fstab(5)
man:systemd-fstab-generator(8)
CPU: 3ms
Jan 08 18:45:30 HAL swapon[497]: swapon: /swap/swapfile: swapon fehlgeschlagen: Das Argument ist ungültig
Jan 08 18:45:30 HAL swapon[500]: swapon: /swap/swapfile: swapon fehlgeschlagen: Das Argument ist ungültig
Jan 08 18:45:30 HAL systemd[1]: Activating swap /swap/swapfile...
Jan 08 18:45:30 HAL systemd[1]: swap-swapfile.swap: Swap process exited, code=exited, status=255/EXCEPTION
Jan 08 18:45:30 HAL systemd[1]: swap-swapfile.swap: Failed with result 'exit-code'.
Jan 08 18:45:30 HAL systemd[1]: Failed to activate swap /swap/swapfile.
Jan 08 18:45:30 HAL systemd[1]: Activating swap /swap/swapfile...
Jan 08 18:45:30 HAL systemd[1]: swap-swapfile.swap: Swap process exited, code=exited, status=255/EXCEPTION
Jan 08 18:45:30 HAL systemd[1]: swap-swapfile.swap: Failed with result 'exit-code'.
Jan 08 18:45:30 HAL systemd[1]: Failed to activate swap /swap/swapfile.
[uwe@HAL ~]$ ^C
When I boot 5.15, everything is ok.
If this is only a problem with the newer kernels, I can live with that and use LTS. But if it doesn’t affect anyone else, it’s probably a problem with my setup. I use on /root Btrfs and swapfile (automatically set up by Calamares).
my /etc/fstab:
UUID=71D0-3072 /efi vfat defaults,noatime 0 2
UUID=8ed8ce19-2b36-4e9d-a88e-d1eca96f49e9 / btrfs subvol=/@,defaults,noatime,compress=zstd 0 0
UUID=8ed8ce19-2b36-4e9d-a88e-d1eca96f49e9 /home btrfs subvol=/@home,defaults,noatime,compress=zstd 0 0
UUID=8ed8ce19-2b36-4e9d-a88e-d1eca96f49e9 /var/cache btrfs subvol=/@cache,defaults,noatime,compress=zstd 0 0
UUID=8ed8ce19-2b36-4e9d-a88e-d1eca96f49e9 /var/log btrfs subvol=/@log,defaults,noatime,compress=zstd 0 0
UUID=8ed8ce19-2b36-4e9d-a88e-d1eca96f49e9 /swap btrfs subvol=/@swap,defaults,noatime 0 0
/swap/swapfile none swap defaults 0 0
UUID=caf40634-610f-4992-b2db-16d556eaf403 /mnt/data ext4 defaults,noatime 0 2
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0