You can't "boot" into a sub-directory of a file system but you could do the 
following....

 

1) Configure grub to boot the kernel in the /mnt/lfs directory with the current 
root file system as a the root directory

2) Boot grub and pass the command "init=/mnt/lfs/bin/sh" this will run the LFS 
bash shell instead of the current/host init.

3) Once the kernel has booted and you are dropped into the shell run; "exec 
chroot /mnt/lfs exec /sbin/init".  This will chroot into the /mnt/lfs system 
and start init as if the kernel started it at boot.

 

NOTE:  the "exec" is important because init -MUST- be run as PID 1.

 

Russ

 
> Date: Sun, 16 Aug 2009 21:37:05 -0700
> From: [email protected]
> To: [email protected]
> Subject: with new system, how to run a test boot?
> 
> quick question,
> with a new fresh system in the /where directory
> is there a way to adjust grub on the host system
> to actually boot the new system, before moving the newly created
> system to /
> 
> Justin P. Mattock
> -- 
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page

_________________________________________________________________
Use Windows Live Messenger from your Hotmail inbox Web IM has arrived!
http://windowslive.ninemsn.com.au/article.aspx?id=823454
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to