PATCH: fix ramdisk_size parameter for hppa
This is a patch for debian-cd, which currently invokes palo with
a hardcoded value of 16384K. We currently need about 21M.
The patch calculates the correct value at ISO build time.
Could someone with access submit this to svn for me please?
I have built and booted an ISO with this patch.
Thanks
Richard
Index: tools/boot/etch/post-boot-hppa
===================================================================
--- tools/boot/etch/post-boot-hppa (revision 935)
+++ tools/boot/etch/post-boot-hppa (working copy)
@@ -23,8 +23,9 @@
K32=$(ls $CDROOT/install/vmlinux-*-32|head -1)
K64=$(ls $CDROOT/install/vmlinux-*-64|head -1)
+RSIZE=$(expr $(zcat "$CDROOT/install/initrd.gz" | wc --bytes) / 1024)
/sbin/palo \
- --commandline="0/vmlinux root=/dev/ram initrd=0/ramdisk ramdisk_size=16384 init=/linuxrc" \
+ --commandline="0/vmlinux root=/dev/ram initrd=0/ramdisk ramdisk_size=$RSIZE init=/linuxrc" \
--recoverykernel="$K32" \
--recoverykernel="$K64" \
--bootloader="$CDROOT/install/iplboot" \
Index: debian/changelog
===================================================================
--- debian/changelog (revision 935)
+++ debian/changelog (working copy)
@@ -1,5 +1,8 @@
debian-cd (2.2.24) UNRELEASED; urgency=low
+ [ Richard Hirst ]
+ - Fix ramdisk_size value for hppa
+
[ Frans Pop ]
- Update for Sparc:
- sparc64: switch to 2.6.12 kernel; make CD multiboot 2.6 and 2.4,
Reply to: