I was looking for the same tweak, and I couldn't find much about it. I figured out a way to do it, so I'm posting my solution here. It involves editing the initrd of your system, so this tweak is not for the absolute beginner. You've been warned. I did this on Ubuntu 9.04, but I guess it should work on other versions. Last note before getting into it, as it is using initrams-tools, you don't need to worry about kernel upgrades: the modified initrd will be rebuilt at each upgrade.
First of all, you need to extract your initrd:
Code:
mkdir /tmp/initrd-tmp
cd /tmp/initrd-tmp
gzip -dc /boot/initrd.img-2.6.28-11-generic | cpio -id
more info about that here
Then
Code:
gedit scripts/local-top/cryptroot
Find the line saying
Code:
if [ -z "$cryptkeyscript" ]; then
On my system (9.04) it's on line 268. 2 lines below, you should find something beginning with
That's the prompt showing up at boot time, so modify it to suit your needs. Save, leave gedit. Now you'll need to update your initrd image. In order to do that, you'll need to
Code:
sudo cp scripts/local-top/cryptroot /etc/initramfs-tools/scripts/local-top/
Before the last step, it could be wise to make a copy of your existing initrd image (we never know); adding an entry to your grub/menu.lst to test your updated initrd image could be a good idea too.
So finally:
Code:
sudo update-initramfs -u
That's it!
Bookmarks