1

I am thinking of installing linux-lts as a backup kernel to use temporarily if mainline breaks (I'm on Arch). I use a swap file under Btrfs and that's not supported on Linux <5.0. Anyway to disable swap file with kernel boot parameters or some other way before systemd mounts the swap file reading off the fstab?

  • Not to write it in the fstab? – 炸鱼薯条德里克 Jul 8 at 10:28
  • 1
    Both kernels would use the same fstab, so that wouldnt be a reliable solution because I would need to edit fstab everytime I go to linux LTS, which I would only be using if I couldnt boot from the main kernel – Zethex Jul 8 at 10:33
0

This is the list of kernel parameters:

https://www.kernel.org/doc/html/v4.19/admin-guide/kernel-parameters.html

Some parameters customize the resume but no parameter disables swap at all.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.