Bug#256258: zipl-installer: Parmline and symlink written incorrectly in d-i
Package: zipl-installer
Severity: grave
Justification: renders package unusable
Tags: sid patch
zipl-installer does not work from d-i installation: /vmlinuz symlink
does not exist, and written parmfile is incorrect.
I have included a patch which addresses these. However, I suspect
there are better ways of getting the information for the DASD and the
root filesystem than what I've done.
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (700, 'testing'), (650, 'unstable')
Architecture: s390
Kernel: Linux 2.4.17
Locale: LANG=C, LC_CTYPE=C
--- zipl-installer.postinst.orig 2004-06-25 10:17:34.000000000 -0400
+++ zipl-installer.postinst 2004-06-25 13:57:14.000000000 -0400
@@ -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 -- `cd /dev/dasd; echo *`
+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: