Since partuuid associated with the partition in GPT, and not the FS, they would persist on encrypted swap, right?
- Yes, PARTUUID/PARTLABEL works fine with GPT. Just remember that the partition will be formatted on every boot, so if you ever decide to use the partition for something else - you should also change its PARTUUID/PARTLABEL. And if you copy disks with dd you are duplicating those PARTUUIDs along with it. So there are some (albeit unlikely) cases where this is more likely to cause problems than using actual partition content as identifier. Frostschutz (talk) 20:03, 3 April 2016 (UTC)
- +1. Couple of thoughts - I'm unsure how we want to handle it: We don't mention either MBR or GPT on this subpage. The reason for this is that we want to have general dm-crypt related partitioning info in the dedicated Dm-crypt/Drive preparation#Partitioning section. Now, for any crypt-swap we have the big warning to use persistent naming, for its own reason. It is, however, generally useful to apply persistent naming. The dm-crypt subpages generally use UUID as example, since it is the singular best known persistent naming. Take aside a re-encrypting swap UUID is a good generic for the examples in my opinion.
- So, what's the best way to handle MBR/GPT differences:
- Expand Dm-crypt/Drive_preparation#Partitioning to include persistent naming for dm-crypt and the crosslinks to Persistent_block_device_naming, then shrink/crosslink the info on this page, or
- Add GPT options for this subpage anyway, regardless of how Dm-crypt/Drive_preparation#Partitioning is expanded, simply because it is important to choose the best variant for swap.
- Do nothing (since nothing is wrong).
- Opinions? --Indigo (talk) 13:43, 6 April 2016 (UTC)
- Adding option 3 above, which appears to be the preference of all in this talk item. Closing.
- --Indigo (talk) 09:08, 6 May 2016 (UTC)
Anyone know what to do about the "Please enter passphrase for disk myswap (swap)!" and "systemd-ask-password" msgs diplaying at bootup? Occurs with the Without suspend-to-disk mode. Voukait (talk) 07:32, 8 May 2016 (UTC)
- Which hooks do you use in mkinitcpio for the encryption? Any kernel parameter for "resume=" that might trigger it? --Indigo (talk) 09:32, 8 May 2016 (UTC)
- Ive been investigating this further and it appears that it is this issue. https://bbs.archlinux.org/viewtopic.php?id=176927 Which looks like the problem is caused by formating the partition as swap, and then the runtime encryption fails because it detects it as a swap drive. As soon as I can change the partition type, I will confirm.