On 11/30/2015 11:24 PM, Ranjan Maitra wrote:
On Mon, 30 Nov 2015 21:59:35 +0100 Roberto Ragusa
<mail(a)robertoragusa.it> wrote:
> All of this can be done while the system is running
> normally.
> Before rebooting, fix your /etc/crypttab and initramfs
> so you will be asked the passphrase at next boot.
Can you please give me a reference on how to fix /etc/cryptab or this initramfs up?
I do not have a reference, I just discovered things with experience:
/etc/crypttab should contain something like:
luks-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX none
/boot/grub/grub.conf should contain on your kernel line the part
rd.md=1 rd.dm=1 rd.luks=1
or at least the luks one
then I rebuild the initramfs; the way to do this is continuously changed so my
method is to run rpm -q --scripts kernel and look at the posttrans part:
posttrans scriptlet (using /bin/sh):
/sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --update
3.14.17-100.fc19.x86_64 || exit $?
/sbin/new-kernel-pkg --package kernel --rpmposttrans 3.14.17-100.fc19.x86_64 || exit $?
so I run those two commands.
Sorry for not giving an accurate procedure, but those are the points to consider.
Regards.
--
Roberto Ragusa mail at robertoragusa.it