diff options
author | Jeremy Katz <katzj@redhat.com> | 2005-10-20 19:48:01 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2005-10-20 19:48:01 +0000 |
commit | 33cd9b864afcb342f313119f15dbce3a858e4d47 (patch) | |
tree | 5b0795642d3f5b136fafb0878c301a9b6513a597 /scripts/mk-images.alpha | |
parent | b886cb860a3f6ef7ef0a26d6f5f6ac048baae09b (diff) | |
download | anaconda-33cd9b864afcb342f313119f15dbce3a858e4d47.tar.gz anaconda-33cd9b864afcb342f313119f15dbce3a858e4d47.tar.xz anaconda-33cd9b864afcb342f313119f15dbce3a858e4d47.zip |
2005-10-20 Jeremy Katz <katzj@redhat.com>
* scripts/mk-images (INITRDMODS): Define modules used in common
across all arches here.
(makeinstimage): Don't pass in modules for use here, they should
all be in the initrd now.
(makeSecondStage): Common makeSecondStage
(doPostImages): Add a step to get called after boot images are
created
* scripts/mk-images.i386: Use common INITRDMODS and
makeSecondStage, minor other cleanups.
* scripts/mk-images.ia64: Likewise.
* scripts/mk-images.s390: Likewise.
* scripts/mk-images.x86_64: Likewise.
* scripts/mk-images.ppc: Likewise. Also, use doPostImages stuff.
* scripts/mk-images.sparc64: Remove old file that's not correct
for current stuff.
* scripts/mk-images.alpha: Likewise.
Diffstat (limited to 'scripts/mk-images.alpha')
-rw-r--r-- | scripts/mk-images.alpha | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/scripts/mk-images.alpha b/scripts/mk-images.alpha deleted file mode 100644 index 7adc5f8fb..000000000 --- a/scripts/mk-images.alpha +++ /dev/null @@ -1,97 +0,0 @@ -NETMODULES="nfs de4x5 tulip depca eepro100 acenic tg3" -SCSIMODULES="sd_mod isp_mod ide-cd aic7xxx" -EXTRASCSI="DAC960 cpqfc BusLogic 3w-xxxx dmx3191d dpt_i2o megaraid ncr53c8xx sym53c8xx qlogicisp qlogicfc qla2x00 qla1280 cciss cpqarray" -EXTRANET="3c509 3c59x 8139too dl2k eepro epic100 ewrk3 hamachi natsemi ne2k-pci ns83820 starfire yellowfin" - -SECSTAGE="sd_mod md raid0 raid1 raid5 ext3 $NETMODULES $SCSIMODULES $EXTRASCSI $EXTRANET" - -prepareBootImage() { - dd if=/dev/zero of=$MBD_TMPIMAGE bs=1k count=$BOOTDISKSIZE 2>/dev/null - echo y | /sbin/mke2fs -b 1024 -r 0 -O none $MBD_TMPIMAGE > /dev/null 2>/dev/null - LODEV=`findloopdevice $MBD_TMPIMAGE` - e2writeboot $LODEV $BOOTDISKDIR/bootlx - mount $LODEV -t ext2 $MBD_BOOTTREE - mkdir -p $MBD_BOOTTREE/etc - cat > $MBD_BOOTTREE/etc/aboot.conf <<EOF -# -# Red Hat Linux/Alpha aboot configuration options: -# -# 0 - Boot the Red Hat Linux installer using a 2.4 kernel -# 1 - Boot the Red Hat Linux installer in non graphical mode -# 2 - Boot the Red Hat Linux installer in text only mode on ttyS0 -# for installation control via the serial port -# 3 - Boot in rescue mode -# -0:vmlinux.gz load_ramdisk=1 prompt_ramdisk=1 console=tty0 root=/dev/fd0 -1:vmlinux.gz load_ramdisk=1 prompt_ramdisk=1 console=tty0 text root=/dev/fd0 -2:vmlinux.gz load_ramdisk=1 prompt_ramdisk=1 console=ttyS0 text root=/dev/fd0 -3:vmlinux.gz load_ramdisk=1 prompt_ramdisk=1 console=tty0 rescue 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 -} - -makeBootImages() { - mkdir -p $TOPDESTPATH/boot - cp $BOOTDISKDIR/bootlx $TOPDESTPATH/boot - - mkdir -p $TOPDESTPATH/etc - cat > $TOPDESTPATH/etc/aboot.cfg <<EOF -# -# Red Hat Linux/Alpha aboot configuration options: -# -# 0 - Boot the Red Hat Linux installer using a 2.4 kernel -# 1 - Boot the Red Hat Linux installer with kernel messages sent to ttyS0 -# 2 - Boot the Red Hat Linux installer in text only mode -# 3 - Boot the Red Hat Linux installer in text only rescue mode -# -0:/kernels/vmlinux.gz initrd=/images/cdrom.img -1:/kernels/vmlinux.gz initrd=/images/cdrom.img console=ttyS0 -2:/kernels/vmlinux.gz initrd=/images/cdrom.img text -3:/kernels/vmlinux.gz initrd=/images/cdrom.img rescue - -EOF - - makeinitrd --initrdto $TOPDESTPATH/images/ramdisk.img \ - --initrdsize 4096 \ - --padsize 1440 \ - --loaderbin loader \ - --modules "$NETMODULES $SCSIMODULES" - - makeinitrd --initrdto $TOPDESTPATH/images/cdrom.img \ - --initrdsize 8192 \ - --loaderbin loader \ - --modules "$NETMODULES $SCSIMODULES $EXTRASCSI $EXTRANET" - - makebootdisk --bootdisksize 1440 --kernelto $TOPDESTPATH/kernels/vmlinux.gz \ - --imagename generic.img - - - if [ -f $KERNELPATH/kernel-jensen-*.rpm ]; then - KJ_PKG=$KERNELPATH/kernel-jensen-*.rpm - KJ_DIR=/tmp/kernelj.dir.$$ - mkdir -p $KJ_DIR - rpm2cpio $KJ_PKG | (cd $KJ_DIR; cpio --quiet -iumd ./boot/vmlinuz-*) - cp $KJ_DIR/boot/vmlinuz-* $TOPDESTPATH/kernels/vmlinuz.j - rm -rf $KJ_DIR - fi - - makedriverdisk --padsize 1440 "Supplemental Block Device Drivers" "drvblock" "$SCSIMODULES $EXTRASCSI +scsi" - makedriverdisk --padsize 1440 "Supplemental Network Device Drivers" "drvnet" "$NETMODULES $EXTRANET +net" -} - -makeSecondStage() { - makemainmodules "$SECSTAGE" - makeinstimage "netstg" "$SECSTAGE" - makeinstimage "hdstg" "$SECSTAGE" - makemainimage "stage2" "cramfs " -} |