Re: [Etherboot-users] pxe -> etherboot -> ramdisk image
Brought to you by:
marty_connor,
stefanhajnoczi
From: Matt S. <se...@co...> - 2002-02-27 05:44:37
|
On Wed, Feb 27, 2002 at 04:10:50PM +1100, Ken Yap wrote: > >> It ought to work fine with no extra options, this message is coming via > >> a firewall booting a kernel and initrd. Why don't you try rebuilding the > >> kernel and initrd? Is there any reason you can't do that? > > > >I don't have an initrd, but I rebuilt the kernel. Then I was getting > > Sorry, I'm not with you. If you don't have an initrd, why are you > passing a second argument to mknbi-linux? Where is the root filesystem > that you intend to mount? In the initrd or on NFSroot? Hmm. I guess jakenet.img.gz is my initrd. I just thought of initrd as the thing you put drivers on and was only there until you loaded over the real root fs. The root fs is in the initrd. The initrd was created like this: #! /bin/bash echo "----> creating blank disk image" /bin/dd if=/dev/zero of=/spare/jakenet/jakenet.img count=32768 bs=1k 2>/dev/null echo "----> formatting blank disk image" /sbin/mke2fs -q -F /spare/jakenet/jakenet.img 2> /dev/null echo "----> mounting disk image" mount -o loop /spare/jakenet/jakenet.img /mnt/misc echo "----> copying Jake distribution to disk image" /bin/cp -a /spare/jakenet/jakenet_root/* /mnt/misc echo "----> unmounting disk image" umount /mnt/misc echo "----> compressing disk image" /bin/dd if=/spare/jakenet/jakenet.img bs=1k 2> /dev/null | /usr/bin/gzip -v9 > /spare/jakenet/jakenet.img.gz 2> /dev/null I'm running kernel 2.2.20 and mknbi-1.2 if that makes any difference. |