From: Matthew F. <mf...@ci...> - 2001-06-12 15:07:41
|
Here's the script... Kind of crude, but it works. Let me know if you have any questions. -mdf --------------- SRC=3D"/tux/initrd" cd $SRC/src tar czvf ../initrd.tgz . cd / umount /minix dd if=3D/dev/zero of=3Dblah bs=3D1k count=3D6144 losetup /dev/loop4 blah mkfs.minix /dev/loop4 if mount -t minix /dev/loop4 /minix then =09cd $SRC/src =09mv ../initrd.tar.gz ../.bak =09tar cvf ../initrd.tar.gz . =09cd /minix =09tar xvf $SRC/initrd.tar.gz =09sync =09dd if=3D/dev/zero of=3Dblah =09df =09rm blah =09sync =09cd $SRC =09dd if=3D/dev/loop4 of=3Dinitrd =09rm initrd.gz =09gzip -9 initrd =09ls -al initrd.gz =09umount /minix =09losetup -d /dev/loop4 =09echo -n "Copy to floppy? " =09read blah =09if [ $blah =3D 'y' ] =09then =09=09mcopy -o initrd.gz a: =09fi=09 else =09echo "Mount error!" =09exit 1 fi ------------------------------------- Matthew Franz mf...@ci... Security Research Engineer Security Technologies Assessment Team On Tue, 12 Jun 2001, Nicolas Co=EBn wrote: > Date: Tue, 12 Jun 2001 13:36:32 > From: Nicolas Co=EBn <ddp...@ho...> > To: tri...@li... > Subject: [Trinux-talk] initrd.gz build script >=20 > Has anyone got the script Matthew send a while ago to build initrd.gz (se= e=20 > msg at the end) ? Or does anyone know where to find it ? > I believe it is called mkrd - but I'm not so sure, and I could not find i= t=20 > anywhere on sourceforge..... > ---------------------------------------------------------------------- > FROM: Matthew Franz > DATE: 10/27/2000 01:48:24 > SUBJECT: RE: [Trinux-talk] Creating initrd >=20 > I`ve added initrd.tgz to http://trinux.sourceforge.net/beta/ which is= =20 > the source to initrd and I`ve attached the script I use to build the=20 > initrd.gz > ---------------------------------------------------------------------- >=20 > Thx > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com >=20 >=20 > _______________________________________________ > Trinux-talk mailing list > Tri...@li... > http://lists.sourceforge.net/lists/listinfo/trinux-talk >=20 |