[systemd-devel] Disabling automatic activation of swap on GPT

Chris Murphy lists at colorremedies.com
Mon Sep 15 09:30:54 PDT 2014


Is there a way to inhibit the systemd automatic activation of swap on GPT disks that use the linux swap partition type GUID? The desire to do this has come up in these two  bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1141700
clone of this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1114786

The issue is when booting live media (e.g. for OS installs), the autoactivation is causing some installer confusion.

I'm inclined to say that this swap partition is not user domain, the fact it's marked as linux swap makes it systemd/kernel domain. (Hopefully if there's a latent valid hibernate image on the partition, then swap is not activated so that the hibernate image isn't stepped on.)

If the user instructed an OS installer they want to usurp control over this swap partition, then the installer should swapoff, and plan to wipefs this partition making the space once again user domain. But maybe there's a good reason here to not enable swap by default when booting live media?


Chris Murphy


More information about the systemd-devel mailing list