Bug#256258--better fix
The first patch I submitted for this did not maintain the order in which
you had attached your DASD, which could lead to problems if you didn't
attach your disks in device address order.
This patch maintains the order in which the DASD was attached. It does
assume four-digit device addresses. This seems unlikely to change
radically before the /proc interface to the DASD device driver does.
Adam
--- zipl-installer.postinst.orig 2004-06-28 14:55:49.000000000 -0500
+++ zipl-installer.postinst 2004-06-28 14:53:06.000000000 -0500
@@ -2,8 +2,26 @@
. /usr/share/debconf/confmodule
-db_get debian-installer/kernel/commandline
-echo $RET > /target/boot/parmfile
+#db_get debian-installer/kernel/commandline
+#echo $RET > /target/boot/parmfile
+PARMFILE="ro noinitrd vmpoff=\"LOGOFF\""
+DASD="dasd="
+set -- `cut -b 1-4 /proc/dasd/devices`
+while [ $1 ]; do
+ DASD=${DASD}$1
+ shift;
+ if [ $1 ]; then
+ DASD=${DASD}","
+ fi
+done
+ROOT=`df /target | tail -1 | cut -d ' ' -f 1`
+ROOT="root="${ROOT}
+
+PARMFILE="${PARMFILE} ${ROOT} ${DASD}"
+echo $PARMFILE > /target/boot/parmfile
+
+VMLINUZ=`echo /target/boot/vmlinuz* | cut -d '/' -f 4`
+chroot /target ln -sf /boot/${VMLINUZ} /vmlinuz
cat > /target/etc/zipl.conf << EOF
[defaultboot]
Reply to: