View Single Post

   
  #4 (permalink)  
Old 02-19-2008, 12:47 PM
Menno Duursma
 
Posts: n/a
Default Re: installing in chroot

On Thu, 24 Jun 2004 17:06:25 -0500, /dev/rob0 wrote:

> Someone here recently talked about chroot'ing to a loop-mounted initrd
> and running the setup therein. Has anyone done this? Is anything other
> than having /proc mounted in the chroot necessary for this?


Yes, and not much. Assuming this:

mount /mnt/cdrom
gzip -cd /mnt/cdrom/isolinux/initrd.img >/boot/setup.img
mkdir /boot/install
# And maybe: "umount -a" (or some such).
mount -t ext2 -o loop /boot/setup.img /boot/install

Something like this:

mount --bind /proc /boot/install/proc
chroot /boot/install /bin/bash sh --login

# Here you might want to edit and exec: /etc/rc.d/rc.S
# In which case following command might not be needed/wanted
../linuxrc

HTH, and have fun.

--
-Menno.

Reply With Quote