COMMONMODULES="nfs fat vfat cramfs loop floppy" FSMODS="msdos vfat ext3 reiserfs jfs xfs" IDEMODS="ide-cd" SCSIMODS="sd_mod sg sr_mod st" USBMODS="ohci-hcd uhci-hcd hid usb-storage sd_mod sr_mod" LATEUSBMODS="mousedev usb-storage" LVMMODS="dm-mod dm-zero dm-snapshot dm-mirror" RAIDMODS="md raid0 raid1 raid5 raid6" SECSTAGE="$RAIDMODS $LVMMODS $FSMODS $IDEMODS $SCSIMODS $LATEUSBMODS" NETMODULES="sungem tg3 ne2k-pci 3c59x 8139too olympic de4x5 acenic pcnet32 tulip natsemi e100 e1000 airport" SCSIMODULES="$SCSIMODS advansys aic7xxx initio sym53c8xx ipr" ISERIESMODULES="iseries_veth veth viodasd viocd ipr" # images we only want on the CD (usually for space reasons) ISOMODULES="ehci-hcd ieee1394 ohci1394 sbp2" prepareBootImage() { mkdir -p $TOPDESTPATH/ppc/chrp mkdir -p $TOPDESTPATH/images } makeBootImages() { echo "Building boot images for kernel $kernelvers" FAKEARCH="" if [ "$KERNELARCH" = "ppc64pseries" -o "$KERNELARCH" = "ppc64" ]; then echo "Building $KERNELARCH initrd" makeinitrd --initrdto $TOPDESTPATH/ppc/chrp/ramdisk.image.gz \ --initrdsize 8192 \ --loaderbin loader \ --modules "$COMMONMODULES $NETMODULES $SCSIMODULES $SCSIMODS $IDEMODS $ISOMODULES $USBMODS =scsi =net" mkdir -p $TOPDESTPATH/etc $TOPDESTPATH/ppc/chrp $TOPDESTPATH/images/pseries cp $KERNELROOT/boot/vmlinuz-* $TOPDESTPATH/ppc/chrp/vmlinuz cp $BOOTDISKDIR/yaboot.conf.pseries $TOPDESTPATH/etc/yaboot.conf cp $BOOTDISKDIR/bootinfo.txt $TOPDESTPATH/ppc/bootinfo.txt cp $IMGPATH/usr/lib/yaboot/yaboot $TOPDESTPATH/ppc/chrp $IMGPATH/usr/lib/yaboot/addnote $TOPDESTPATH/ppc/chrp/yaboot if [ -x $IMGPATH/usr/bin/mkzimage ]; then pushd $TOPDESTPATH/ppc/chrp cp $IMGPATH/usr/share/ppc64-utils/zImage.lds $TOPDESTPATH/ppc/chrp/zImage.lds $IMGPATH/usr/bin/mkzimage $KERNELROOT/boot/vmlinuz-partial* $TOPDESTPATH/images/pseries/netboot.img $TOPDESTPATH/ppc/chrp/ramdisk.image.gz rm -f $TOPDESTPATH/ppc/chrp/zImage.lds popd fi # we also want to make a boot.iso here mkdir -p $TOPDESTPATH/isopath/ppc/chrp $TOPDESTPATH/isopath/etc cp $TOPDESTPATH/etc/* $TOPDESTPATH/isopath/etc/ cp $TOPDESTPATH/ppc/chrp/* $TOPDESTPATH/isopath/ppc/chrp cp $TOPDESTPATH/ppc/bootinfo.txt $TOPDESTPATH/isopath/ppc/bootinfo.txt # FIXME: this assumes the file gets there by magic cp $TOPDESTPATH/boot_image $TOPDESTPATH/isopath/boot_image mkisofs -quiet -generic-boot $TOPDESTPATH/isopath/boot_image -A "$PRODUCT $VERSION" -V "PBOOT" -J -R -T -allow-multidot -l -o $TOPDESTPATH/images/pseries/boot.iso $TOPDESTPATH/isopath rm -rf $TOPDESTPATH/isopath/ cat > $TOPDESTPATH/images/pseries/README <