Skip to content

encrypted swap gets weird /dev/mapper name #914

@kagehisa

Description

@kagehisa

Sorry for the bad title, I'm not even sure if this is an error or intentional but it seems weird to me.
I used the two sap definitions from this example and integrated it into my config. So far no issues the config works fine but for the encryptet swap I get the following /dev/mapper entry:

/dev/mapper/dev-disk-byx2dpartlabel-diskx2dmainx2dencryptedSwap 

The naming is consistent so I also have a corresponding fstab entry. But is this intentional?

Here are the two definition blocks for regular and encryptet swap:

            encryptedSwap = {
              size = "500M";
              content = {
                type = "swap";
                randomEncryption = true;
                priority = 100; # prefer to encrypt as long as we have space for it
              };
            };
            plainSwap = {
              size = "100%";
              content = {
                type = "swap";
                discardPolicy = "both";
                resumeDevice = true; # resume from hiberation from this device
              };
            };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions