• adarza@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      21 days ago

      that’s what trixie’s netinst defaults to when i set up new desktops using encrypted lvm… root and swap volumes inside that, unlocking together at boot. my use doesn’t hit swap much, so it’s nbd. i just leave it like it is. only where an installer doesn’t support encrypted swap partitions do i use a file or ram-based swap instead.

      • dan@upvote.au
        link
        fedilink
        arrow-up
        3
        ·
        21 days ago

        It’s not as bad with LVM since LVM is more flexible. A swap file does still make it easier to change the size as needed though. If you need more swap, you can spin up a new swap file pretty much instantly while the system is running, without having to repartition. You can have both a swap partition and a swap file active at the same time though.

        On systems where the data is encrypted, also encrypting the swap makes sense so I’m glad Debian does that.

    • Frenchgeek@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      20 days ago

      I do, yeah. Since I’m already partitioning by hand to put /home on a different drive, better use the saved space on the NVME for a small amount of guaranteed swap while I’m at it.