Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FBSplash and pre-boot auth
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Paczesiowa
Guru
Guru


Joined: 06 Mar 2006
Posts: 593
Location: Oborniki Śląskie, Poland

PostPosted: Fri Jan 09, 2009 7:26 pm    Post subject: FBSplash and pre-boot auth Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum