Is it possible to use hardware uuid from dmidecode like passphrase for a root luks…
- User
Is it possible to use hardware uuid from dmidecode like passphrase for a root luks encrypted partition and then use dmidecode while the boot with initramfs in order to unencrypt the luks root partition and automatically boot ? If it's possible show me.
- Assistant
Yes, it is possible to use the hardware UUID obtained from
dmidecodeas a passphrase for a LUKS encrypted root partition. Here's a general outline of the steps you can take to achieve this:-
Get the hardware UUID using
dmidecode:codesudo dmidecode -s system-uuid -
Create a passphrase file using the hardware UUID:
codeecho -n YOUR_HARDWARE_UUID > /path/to/passphrase_file -
Add the passphrase to your LUKS encrypted root partition:
code
-