diff options
author | harald <harald> | 2001-08-22 10:56:17 +0000 |
---|---|---|
committer | harald <harald> | 2001-08-22 10:56:17 +0000 |
commit | 871c68cb05fa93fd55757248b9bff55e8181ace9 (patch) | |
tree | a1821e976b56045a48dd51b30ebab239c745cbd6 /scripts/mk-images.s390 | |
parent | 29a25bf3882596ca917e6d1c0612cd691e659a55 (diff) | |
download | anaconda-871c68cb05fa93fd55757248b9bff55e8181ace9.tar.gz anaconda-871c68cb05fa93fd55757248b9bff55e8181ace9.tar.xz anaconda-871c68cb05fa93fd55757248b9bff55e8181ace9.zip |
rejoined s390 branch
Diffstat (limited to 'scripts/mk-images.s390')
-rw-r--r-- | scripts/mk-images.s390 | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/scripts/mk-images.s390 b/scripts/mk-images.s390 new file mode 100644 index 000000000..a64360ec7 --- /dev/null +++ b/scripts/mk-images.s390 @@ -0,0 +1,74 @@ + + +prepareBootImage() { + dd if=/dev/zero bs=1k count=$BOOTDISKSIZE of=/$MBD_TMPIMAGE 2>/dev/null + mount -o loop -t msdos $MBD_TMPIMAGE $MBD_BOOTTREE + + (cd $BOOTDISKDIR; find . ! -name "*.msg" -maxdepth 1 ! -type d | cpio --quiet -p $MBD_BOOTTREE) + + cp $MBD_FSIMAGE $MBD_BOOTTREE/initrd.img + cp $KERNELROOT/boot/vmlinuz-* $MBD_BOOTTREE/vmlinuz + if [ -d $BOOTDISKDIR/$BOOTLANG ]; then + # fb console and kon don't get along... + for file in $BOOTDISKDIR/$BOOTLANG/*.msg; do + filename=`basename $file` + sed -e "s/@VERSION@/$VERSION/g" $file > $MBD_BOOTTREE/$filename + done + if [ $? != 0 ]; then + echo $0: Failed to copy messages from $BOOTDISKDIR/$BOOTLANG to $MBD_BOOTTREE. + umount $MBD_BOOTTREE + rm -rf $MBD_BOOTTREE $MBD_TMPIMAGE + exit 1 + fi + else + for file in $BOOTDISKDIR/*.msg; do + filename=`basename $file` + sed -e "s/@VERSION@/$VERSION/g" $file > $MBD_BOOTTREE/$filename + done + if [ $? != 0 ]; then + echo $0: Failed to copy messages from $BOOTDISKDIR to $MBD_BOOTTREE. + umount $MBD_BOOTTREE + rm -rf $MBD_BOOTTREE $MBD_TMPIMAGE + exit 1 + fi + fi +} + +IDEMODS="" +SCSIMODS="" + +#SECSTAGE="raid0 raid1 raid5 ext3 $IDEMODS $SCSIMODS " +SECSTAGE="$IDEMODS $SCSIMODS " + +COMMONMODULES="vfat" +LOCALMODULES="$COMMONMODULES tape390 $IDEMODS $SCSIMODS" +NETWORKMODULES="$COMMONMODULES nfs ctc netiucv" + + +makeinitrd --initrdto $TOPDESTPATH/images/initrd.img \ + --initrdsize 6000 \ + --loaderbin loader \ + --modules "$NETWORKMODULES" + +#for I in $BOOTDISKDIR; do +for I in `find $BOOTDISKDIR -type d`; do + BOOTLANG=`basename $I` + BOOTDIR=`basename $I | cut -d'_' -f1` + + if [ $BOOTLANG = "boot" ]; then + BOOTLANG="" + BOOTDIR="" + fi +done + +#makedriverdisk --padsize 1440 "Supplemental Drivers" "drivers" "+scsi +net" + +unset BOOTLANG +unset BOOTDIR + +makemainmodules "=scsi =net $SECSTAGE" + +makeinstimage "netstg" "=scsi $SECSTAGE" +#makeinstimage "hdstg" "=net $SECSTAGE" +#makemainimage "stage2" "cramfs" +makemainimage "stage2" "ext2" |