[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Convert RedHat install to Debian ..



Nathan E Norman (finn@midco.net):
> I've got a Sun Netra I5, with serial console only.  The current Debian
> boot disks don't like the serial console, so I used RedHat's instead.
> Now I've got this Netra Linux box :)

I don't know sun at all, but how about modifying the bootdisks to spawn a
getty and the installprog on ttyS?

I tried to take a look at disks-sparc/root.bin, but (after gunzipping it) I
wasn't able to mount it - Are they somehow special? So I refer to i386's
root.bin. Indeed I never used anything else than i386, but maybe the basic
Idea applies.

root.bin doesn't contain a getty and it's init is the installation-prog. So
you need to rename init to something else, copy a real init and getty to the
disks, make an inittab. Probably this won't fit on the original image, so
you need to make a bigger one.

# pwd
/var/tmp
# zcat /pub/debian/hamm/main/disks-i386/current/root.bin > root.img
# ls -l root.img /sbin/init /sbin/getty
-rwxr-xr-x   1 root     root        12468 Jan 24 22:48 /sbin/getty*
-rwxr-xr-x   1 root     root        24188 Apr 15 17:09 /sbin/init*
-rw-r--r--   1 root     root      2662400 May 12 11:47 root.img
# set newsize=$[ ( 2662400 + 24188 + 12468 ) / 512 +1 ]
# mount root.img /oldroot -oloop
# dd if=/dev/zero of=newroot.img count=$newsize
# mkfs.blah newroot.img
# mount newroot.img /newroot -oloop
# cd /oldroot; find -depth | cpio -pmd /newroot
# cd /newroot/sbin; mv init install_prog
# cd /sbin; cp init getty /newroot/sbin
# vi /newroot/etc/inittab

and add a line like

T1:12345:respawn:/sbin/getty -m -l /sbin/install_prog -L ttyS1 9600 vt100 

# umount /newroot 
[insert an install disk in fd0]
# mount /dev/fd0 /floppy
# cp /var/tmp/newroot.bin /floppy/root.bin
# umount /floppy


This is completely untested (I hate to reboot) and as mentioned above I have
no clue regarding sun. Please let me know if this works or if it is nonsense.


Rainer

-- 
KeyID=58341901 fingerprint=A5 57 04 B3 69 88 A1 FB  78 1D B5 64 E0 BF 72 EB


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: