Paczesiowa Guru
Joined: 06 Mar 2006 Posts: 593 Location: Oborniki Śląskie, Poland
|
Posted: Fri Jan 09, 2009 7:26 pm Post subject: FBSplash and pre-boot auth |
|
|
I don't know where to put this so feel free to move this topic.
I'm using dm-crypt for everything but /boot and I would like to have nice bootsplash, but during entering passphrase I would like to be dropped to console with nice background, or even better (don't know if it is possible to redirect it like that) to enter my passphrase blindly while staring at nice splash screen. what I came up doesn't work though, splash_verbose (which echoes those funky chars) doesn't switch to console at all and when I alt-F1 to it, I see smth like "\e[12;1]" followed by password prompt. splash_silent doesn't do anything, so I see everything until init.d splash service kicks in.
any ideas? perhaps some distro has this working and looking good so I could steal an idea or two from their init script?
thanks in advance.
here is my init from initramfs
Code: | #!/bin/busybox ash
/bin/busybox mount proc -t proc /proc
/bin/busybox --install -s
mount sysfs -t sysfs /sys
mdev -s
source /sbin/splash-functions.sh
splash_verbose
SUCCES=255
while [[ "$SUCCESS" != "0" ]]; do
read -s -p "passphrase: " PASSWORD
echo $PASSWORD | cryptsetup luksOpen /dev/sda2 swap 2> /dev/null > /dev/null
SUCCESS=$?
done
splash_silent
echo $PASSWORD | cryptsetup luksOpen /dev/sda3 root 2> /dev/null > /dev/null
if [[ "$(cat /sys/power/tuxonice/image_exists)" = "0" ]]; then
mkdir /new_root
mount /dev/mapper/root /new_root
umount /sys
exec switch_root /new_root /sbin/init
else
echo go > /sys/power/tuxonice/do_resume
fi |
|
|