Re: Installing without a boot device?

Jean-Luc Delatre (Kevembuangga) <[email protected]>
Newsgroups gmane.linux.openwall.user
Message-ID <[email protected]>
Le Fri, 17 Aug 2007 15:49:17 +0200,
Jean-Luc Delatre (Kevembuangga) <[email protected]> a écrit :

> That's not the kind of hack I have in mind, I rather plan to mount the CD image on a loop device, find out the install scripts and hack them to run the install from the mounted image into a free partition.

Responding to my own question, in case anyone else has this silly problem:

# don't even need to burn a CD
mount -t iso9660 -o ro,loop /opt/owl/Owl-current-20070601-i386.iso /mnt

# locate the proper inittab
find  /mnt -type f -name inittab
/mnt/rom/etc/inittab
/mnt/rom/world/native/Owl/packages/owl-startup/inittab

# find out about the bootscript
grep ":sysinit:" /mnt/rom/etc/inittab |cut -f 4 -d ':'
/etc/rc.d/rc.sysinit

# run the bootscript
chroot /mnt /etc/rc.d/rc.sysinit

# check what the root shell is
grep "^root:" /mnt/rom/etc/passwd |cut -f 7 -d ':'
/bin/bash

# enter the Owl universe
exec chroot /mnt /bin/bash

# install
settle

Of course the partition has to exist before and be unmounted,
'settle' also complain about the already mounted partitions and cannot put them into the tree.
Just a matter of redoing the fstab afterward.
Another minor annoyance upon the install reboot the mounted partitions in the host OS are hung and need a fsck.

It took a few tries to find the proper sequence and this wasn't *really* for a secure install but for evaluation of Owl ;-)

JLD


-- 
To unsubscribe, e-mail [email protected] and reply
to the automated confirmation request that will be sent to you.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.