Encrypt disk at install time

Moray Henderson Moray.Henderson at ict-software.org
Mon Sep 20 16:20:27 UTC 2010


Tom Brown wrote:
>Apart from /boot is it possible to encrypt a disk at install time? It
>would be a huge win if we can do this but i cant see anything about
>how i may achieve it.
>
>This would be on RHEL 5.x

Yes.  Wherever you have a "part" command in your kickstart, add
--encrypted and --password options.  In your case, 

part pv.100000 --size=1 --grow --ondisk=sda

would become (still on the one line)

part pv.100000 --size=1 --grow 
  --ondisk=sda --encrypted --password HelloWorld

See
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Instal
lation_Guide/ch-kickstart2.html

DO NOT forget the password!


Moray.
"To err is human.  To purr, feline"








More information about the Kickstart-list mailing list