void-linux / void-linux/void-docs
FDE guide: Use UUID instead of `/dev/sda*` in crypttab
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- CSS
- Sterne
- 217
- Forks
- 212
- Ø Merge
- 2 T. 21 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem im Issue verlinkten Abschnitt des FDE-Leitfadens und prüfe dessen Beispiel für /etc/crypttab. Untersuche das referenzierte dracut-Modul unter /usr/lib/dracut/modules.d/90crypt, um die unterstützte UUID-Syntax zu bestimmen, aktualisiere anschließend das Beispiel so, dass es eine deterministische Gerätekennung verwendet, und verifiziere, dass die Formulierung des Leitfadens konsistent ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- linux
- Bereich
- documentation, operating-systems
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100