News for hackers. Stuff that matters.
Re:Fedora considers deprecating legacy BIOS by chasil on Thursday April 21, 2022 @08:00AM (#31108331)
I believe that btrfs can be whole-disk and avoid partitions entirely, which would drastically simplify things.

The only snag is swap, which I don't believe can be on a subvolume.

vgchange is a struggle for me, from the first time I saw it in HP-UX.

Re:Fedora considers deprecating legacy BIOS by asveikau on Thursday April 21, 2022 @12:29PM (#31111583)
> The only snag is swap, which I don't believe can be on a subvolume.

Linux can make swap a regular file, even. It doesn't need to be a partition.

Google result shows: https://wiki.archlinux.org/title/swap#Swap_file

Re:Fedora considers deprecating legacy BIOS by StillBored on Thursday April 21, 2022 @01:54PM (#31112886)
And its something you want to do for security reasons anyway, since linux by default isn't encrypting swap partitions. Putting swap on an LUKs encrypted partition is a bit of a PITA but allows one to hibernate/resume without fear that ones private keys end up in plaintext stored on a disk.
Re:Fedora considers deprecating legacy BIOS by forty on Thursday April 21, 2022 @06:16PM (#31115850)
And relevant to OP, you cannot hibernate on Linux with secure boot enabled, I think precisely because Linux doesn't know how to sign/encrypt the RAM dump (no idea how it's actually called)
Re:Fedora considers deprecating legacy BIOS by StillBored on Thursday April 21, 2022 @10:14PM (#31117486)
Well, its an artificial limitation on secure boot in the Linux kernel pending some cleaups, and is fairly trivial to work around if your willing to comment out the line in question build your own kernel and sign it with a key of your own creation you have enrolled in the firmware.

The problem is less about linux being capable of encrypting/protecting the swap file and more around being able to assure that is true. So like many Linux kernel issues recently its less technical, more political.

So, as I mentioned previously its entirely possible with off the shelf distro's to enable encrypted swap, the average user just has to choose between hibernate, assuring the swap is secure, and secure boot. Its a bit irritating, but seems to be low priority as the focus seems to be on suspend or hibernate without secure boot.

Re:Fedora considers deprecating legacy BIOS by zhfliz on Thursday April 21, 2022 @02:49PM (#31113665)
until kernel 5.0 swap files were not supported on btrfs.

there's also some limitations, see https://btrfs.readthedocs.io/en/latest/btrfs-man5.html#swapf...

Re:Fedora considers deprecating legacy BIOS by asveikau on Thursday April 21, 2022 @04:39PM (#31114883)
I don't think these limitations are that major, and not everybody uses btrfs either.
Re:Fedora considers deprecating legacy BIOS by StillBored on Thursday April 21, 2022 @01:51PM (#31112851)
Most (all?) linux filesystems work just fine against raw devices. They are simply unaware of the difference. The larger problem is firmware trying to find partition tables/etc in the middle of a filesytem, but even then its mostly a non issue because random data doesn't tend to look like partition tables or MBRs.