summaryrefslogtreecommitdiffstats
path: root/scripts/mk-images.s390
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-07-17 14:58:00 -1000
committerDavid Cantrell <dcantrell@redhat.com>2008-07-17 14:59:00 -1000
commitdc8272f623924fa58056aaa6447356416ccc8788 (patch)
treedd9eaeda1557122fde377af15413808eb9903c2a /scripts/mk-images.s390
parent2aa051b9d8a7846c93182f1d82abeee4d201a428 (diff)
downloadanaconda-dc8272f623924fa58056aaa6447356416ccc8788.tar.gz
anaconda-dc8272f623924fa58056aaa6447356416ccc8788.tar.xz
anaconda-dc8272f623924fa58056aaa6447356416ccc8788.zip
Support booting from FCP-attached CD/DVD drive on s390 (#184648)
The s390 can boot El Torito CD or DVD images iff they are attached by zFCP, used as the IPL device, and contain a specially formatted boot image on the disc. IBM provided the tool to combobulate the boot image together and a description of the desired execution path. When you boot on s390, the linuxrc.s390 will look to see if you IPL'ed from a CD or DVD. If you did, it will ask if you also want to install from that device. If you answer yes (y, Y, or any case spelling of 'yes'), the script will bring the IPL device online so the kernel assigns it a device name. Then it skips over the network configuration and starts you in to loader. If you tell it no or did not IPL from a CD or DVD, it'll launch the missiles--wait, no, I mean you get the normal network installation questions before loader starts. I have no way to test this as it requires the following changes: (1) Rel-eng needs to build s390x media with -no-emul-boot and specify the new cdboot.img file on that platform. I have already contacted rel-eng about making this change. (2) I don't have a CD-ROM drive in my mainframe. IBM does and testing is all falling on them. IBM knows this...maybe. I explain all of this like anyone else on the team will ever get a chance to experience it. So there you have it. A letter opener.
Diffstat (limited to 'scripts/mk-images.s390')
-rw-r--r--scripts/mk-images.s3908
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/mk-images.s390 b/scripts/mk-images.s390
index efe849030..7e11aca70 100644
--- a/scripts/mk-images.s390
+++ b/scripts/mk-images.s390
@@ -33,6 +33,13 @@ makeBootImages() {
cp -v $BOOTDISKDIR/generic.prm $TOPDESTPATH/images/generic.prm
cp -v $BOOTDISKDIR/generic.ins $TOPDESTPATH/generic.ins
+
+ $MKS390CDBOOT \
+ -i $TOPDESTPATH/images/kernel.img \
+ -r $TOPDESTPATH/images/initrd.img \
+ -p $TOPDESTPATH/images/generic.prm \
+ -o $TOPDESTPATH/images/cdboot.img
+
cat << __EOT__ >> $TOPDESTPATH/.treeinfo
[images-$KERNELARCH]
kernel = images/kernel.img
@@ -40,6 +47,7 @@ initrd = images/initrd.img
initrd.size = images/initrd.size
generic.prm = images/generic.prm
generic.ins = generic.ins
+cdboot.img = images/cdboot.img
__EOT__
}