void-linux / void-linux/void-docs
FDE guide: Use UUID instead of `/dev/sda*` in crypttab
Nessuno ha ancora preso questa issue.
- Lingua principale
- CSS
- Stelle
- 217
- Fork
- 212
- Merge medio
- 2g 21h
- PR unite (30g)
- 1
Descrizione
The FDE guide here currently shows the following example /etc/crypttab:
voidvm /dev/sda1 /boot/volume.key luks
This should be changed to using the UUID of the encrypted device/partition, as the device file names dev/sdx are not deterministic.
Some user on #voidlinux just had an issue where the key file in the initramfs would sometimes not be picked up, and they were asked to enter a passphrase instead. I think this might be because they had /dev/sda1 in their /etc/crypttab like the guide suggests. They reported that using /dev/disk/by-uuid/* worked.
I think dracut also understands some other syntax like UUID=... and even luks-..., but I'm not sure which one is best/correct here. I think the relevant dracut module is /usr/lib/dracut/modules.d/90crypt.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia dalla sezione della guida FDE collegata nell'issue ed esamina il relativo esempio di /etc/crypttab. Controlla il modulo dracut referenziato in /usr/lib/dracut/modules.d/90crypt per determinare la sintassi UUID supportata, quindi aggiorna l'esempio in modo che utilizzi un identificatore di dispositivo deterministico e verifica che la formulazione della guida sia coerente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- linux
- Ambito
- documentation, operating-systems
- Tipo di issue
- Documentazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100