summaryrefslogtreecommitdiffstats
path: root/scripts/mk-images.alpha
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-07-07 18:19:00 +0000
committerMatt Wilson <msw@redhat.com>2000-07-07 18:19:00 +0000
commite690707784c7ce06d5e31bf1a8c2e7280b76d5d1 (patch)
treecdd64f10ab7cdf5be7fe024baa9a9f1a86e92f0a /scripts/mk-images.alpha
parent5e26ee6d9b49919335c30ecf59540343addf0eb2 (diff)
downloadanaconda-e690707784c7ce06d5e31bf1a8c2e7280b76d5d1.tar.gz
anaconda-e690707784c7ce06d5e31bf1a8c2e7280b76d5d1.tar.xz
anaconda-e690707784c7ce06d5e31bf1a8c2e7280b76d5d1.zip
use the bootlx from current aboot
Diffstat (limited to 'scripts/mk-images.alpha')
-rw-r--r--scripts/mk-images.alpha21
1 files changed, 18 insertions, 3 deletions
diff --git a/scripts/mk-images.alpha b/scripts/mk-images.alpha
index be3f560e0..b1b1da09c 100644
--- a/scripts/mk-images.alpha
+++ b/scripts/mk-images.alpha
@@ -1,10 +1,25 @@
SECSTAGE="vfat raid0 raid1 raid5"
prepareBootImage() {
- gunzip < $BOOTDISKDIR/generic.img.gz > $MBD_TMPIMAGE
- mount -o loop -t ext2 $MBD_TMPIMAGE $MBD_BOOTTREE
-
+ dd if=/dev/zero of=$MBD_TMPIMAGE bs=1k count=$BOOTDISKSIZE 2>/dev/null
+ echo y | /sbin/mke2fs -i 4096 $MBD_TMPIMAGE > /dev/null 2>/dev/null
+ LODEV=`findloopdevice $MBD_TMPIMAGE`
+ e2writeboot $LODEV $BOOTDISKDIR/bootlx
+ mount $LODEV -t ext2 $MBD_TMPIMAGE $MBD_BOOTTREE
+ mkdir -p $MBD_BOOTTREE/etc
+ cat > $MBD_BOOTTREE/etc/aboot.conf <<EOF
+0:vmlinux.gz load_ramdisk=1 prompt_ramdisk=1 root=/dev/fd0
+EOF
+ cat > $MBD_BOOTTREE/etc/milo.conf <<EOF
+image=/vmlinux.gz
+ label=linux
+ root=/dev/fd0
+ append="load_ramdisk=1 prompt_ramdisk=1"
+EOF
zcat $KERNELROOT/boot/vmlinuz-* | gzip -9 > $MBD_BOOTTREE/vmlinux.gz
+ umount $LODEV
+ losetup -d $LODEV
+ mount -o loop -t ext2 $MBD_TMPIMAGE $MBD_BOOTTREE
}
NETMODULES="3c59x de4x5 depca eepro100 ibmtr old_tulip tulip ne"