summaryrefslogtreecommitdiffstats
path: root/scripts/mk-images.ppc
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-10-20 19:48:01 +0000
committerJeremy Katz <katzj@redhat.com>2005-10-20 19:48:01 +0000
commit33cd9b864afcb342f313119f15dbce3a858e4d47 (patch)
tree5b0795642d3f5b136fafb0878c301a9b6513a597 /scripts/mk-images.ppc
parentb886cb860a3f6ef7ef0a26d6f5f6ac048baae09b (diff)
downloadanaconda-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.ppc')
-rw-r--r--scripts/mk-images.ppc31
1 files changed, 4 insertions, 27 deletions
diff --git a/scripts/mk-images.ppc b/scripts/mk-images.ppc
index e557ed077..bee78f904 100644
--- a/scripts/mk-images.ppc
+++ b/scripts/mk-images.ppc
@@ -1,21 +1,3 @@
-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 sungem_phy 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/images
mkdir -p $TOPDESTPATH/isopath
@@ -31,7 +13,7 @@ makeBootImages() {
makeinitrd --initrdto $TOPDESTPATH/ppc/ppc64/ramdisk.image.gz \
--initrdsize 8192 \
--loaderbin loader \
- --modules "$COMMONMODULES $NETMODULES $SCSIMODULES $SCSIMODS $IDEMODS $ISOMODULES $USBMODS =scsi =net"
+ --modules "$INITRDMODS"
cp $KERNELROOT/boot/vmlinuz-* $TOPDESTPATH/ppc/ppc64/vmlinuz
sed -e "s/%BITS%/64/" -e "s/%PRODUCT%/$PRODUCT/" -e "s/%VERSION%/$VERSION/" \
@@ -56,7 +38,7 @@ makeBootImages() {
makeinitrd --initrdto $TOPDESTPATH/ppc/iSeries/ramdisk.image.gz \
--initrdsize 8192 \
--loaderbin loader \
- --modules "$COMMONMODULES $NETMODULES $SCSIMODULES $IDEMODS $ISOMODULES $ISERIESMODULES =scsi =net"
+ --modules "$INITRDMODS viocd"
cp $KERNELROOT/boot/vmlinuz-* $TOPDESTPATH/ppc/iSeries/vmlinux
cp $KERNELROOT/boot/System.map-* $TOPDESTPATH/ppc/iSeries/System.map
@@ -73,7 +55,7 @@ makeBootImages() {
makeinitrd --initrdto $TOPDESTPATH/ppc/ppc32/ramdisk.image.gz \
--initrdsize 8192 \
--loaderbin loader \
- --modules "$COMMONMODULES $NETMODULES $SCSIMODULES $SCSIMODS $IDEMODS $ISOMODULES $USBMODS =scsi =net"
+ --modules "$INITRDMODS"
cp $KERNELROOT/boot/vmlinuz-* $TOPDESTPATH/ppc/ppc32/vmlinuz
sed -e "s/%BITS%/32/" -e "s/%PRODUCT%/$PRODUCT/" -e "s/%VERSION%/$VERSION/" \
@@ -94,7 +76,7 @@ makeBootImages() {
fi
}
-makeSecondStage() {
+doPostImages() {
# Create boot.iso here instead of above, so we can include it all
mkdir -p $TOPDESTPATH/ppc/chrp
@@ -142,9 +124,4 @@ makeSecondStage() {
-map $BOOTDISKDIR/mapping -magic $BOOTDISKDIR/magic \
-no-desktop -allow-multidot $TOPDESTPATH/isopath
rm -rf $TOPDESTPATH/isopath
-
- makeinstimage "netstg" "$SECSTAGE $SCSIMODULES $IDEMODS =scsi"
- makeinstimage "hdstg" "$SECSTAGE $NETMODULES $IDEMODS =net"
- makemainmodules "$SECSTAGE $NETMODULES $SCSIMODULES $IDEMODS =scsi =net"
- makemainimage "stage2" "cramfs"
}