diff --git a/debian/changelog b/debian/changelog index f8b768e7..17ca6956 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,7 +1,7 @@ debian-cd (2.2.24) UNRELEASED; urgency=low [ Richard Hirst ] - - Fix ramdisk_size value for hppa + - Fix ramdisk_size value for hppa for both etch and sarge [ Frans Pop ] - Update for Sparc: diff --git a/tools/boot/sarge/post-boot-hppa b/tools/boot/sarge/post-boot-hppa index 595eb9ee..7648215a 100755 --- a/tools/boot/sarge/post-boot-hppa +++ b/tools/boot/sarge/post-boot-hppa @@ -23,8 +23,9 @@ fi 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" \