custom initramfs: switch_root woes

Natanael Copa natanael.copa at gmail.com
Tue Apr 10 19:20:41 UTC 2007


On Tue, 2007-04-10 at 15:11 -0400, Casey wrote:
> Natanael Copa wrote:
> > On Mon, 2007-04-09 at 19:59 -0500, ctlink at binaryelysium.com wrote:
> >   
> >> I'm implementing the dm-crypt w/ Luks disk encryption solution as  
> >> outlined in this wiki entry  
> >> http://gentoo-wiki.com/SECURITY_System_Encryption_DM-Crypt_with_LUKS.
> >>     
> >
> > [ snip ]
> >
> >   
> >> Some debugging has revealed that there is indeed a /dev/console  
> >> however there is no /new-root/dev/console.
> >>
> >> I'd be glad to post the init script, or any conf files. Anyone know  
> >> what might be going on?
> >>     
> >
> > I think you need /dev/console on your new root to be able to run init.
> >
> > At this step:
> > http://gentoo-wiki.com/SECURITY_System_Encryption_DM-Crypt_with_LUKS#Mounting_the_filesystem.28s.29
> >
> > Try to create the /dev/console
> > mkdir -p /mnt/gentoo/dev
> > mknod /mnt/gentoo/dev/console c 5 1
> >
> > Natanael Copa
> >
> >   
> Thanks very much!
> 
> That did it. just 'cp'ing it over didn't work I had to explicitly create
> it.

I guess you could have copied with:

 cp -a ....

Natanael Copa




More information about the busybox mailing list