From: Raúl Porcel Date: Sat, 4 Sep 2010 17:26:15 +0000 (+0000) Subject: Apply patch from Guy Martin to fix installcd for hppa, gentoo... X-Git-Tag: CATALYST-2.0.10~3^2~64 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=00e78c7e39671890361ed6b361aeb68921093779;p=catalyst.git Apply patch from Guy Martin to fix installcd for hppa, gentoo bug #317423 --- diff --git a/ChangeLog b/ChangeLog index 77c50767..6ce96c1d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,12 @@ # Distributed under the GPL v2 # $Id$ + 04 Sep 2010; Raúl Porcel + targets/support/bootloader-setup.sh, targets/support/create-iso.sh, + targets/support/pre-kmerge.sh: + Apply patch from Guy Martin to fix installcd for hppa, + gentoo bug #317423 + 22 Jan 2010; Andrew Gaffney modules/catalyst/util.py: Actually pay attention to the 'delete' parameter for Gentoo bug #301769 diff --git a/targets/support/bootloader-setup.sh b/targets/support/bootloader-setup.sh index e86e0ae4..bd92eb92 100644 --- a/targets/support/bootloader-setup.sh +++ b/targets/support/bootloader-setup.sh @@ -43,9 +43,16 @@ case ${clst_hostarch} in icfg=$1/boot/palo.conf kmsg=$1/boot/kernels.msg hmsg=$1/boot/help.msg - echo "--commandline=0/${first} initrd=${first}.igz root=/dev/ram0 init=/linuxrc ${cmdline_opts}" >> ${icfg} + # Make sure we strip the extension to the kernel to allow palo to choose + boot_kernel_common_name=${first/%32/} + boot_kernel_common_name=${boot_kernel_common_name/%64/} + echo "--commandline=0/${boot_kernel_common_name} initrd=${first}.igz root=/dev/ram0 init=/linuxrc cdroot ${cmdline_opts}" >> ${icfg} echo "--bootloader=boot/iplboot" >> ${icfg} echo "--ramdisk=boot/${first}.igz" >> ${icfg} + for x in ${clst_boot_kernel} + do + echo "--recoverykernel=boot/${x}" >> ${icfg} + done ;; ppc*|powerpc*) # NO SOFTLEVEL SUPPORT YET diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh index e1a671c0..04c0cae7 100644 --- a/targets/support/create-iso.sh +++ b/targets/support/create-iso.sh @@ -92,7 +92,9 @@ case ${clst_hostarch} in echo ">> Running mkisofs to create iso image...." echo ">> mkisofs -R -l -J ${mkisofs_zisofs_opts} -V \"${clst_iso_volume_id}\" -o ${1} ${clst_target_path}" mkisofs -R -l -J ${mkisofs_zisofs_opts} -V "${clst_iso_volume_id}" -o ${1} ${clst_target_path} || die "Cannot make ISO image" + pushd ${clst_target_path} palo -f boot/palo.conf -C ${1} + popd ;; ia64) if [ ! -e ${clst_target_path}/gentoo.efimg ] diff --git a/targets/support/pre-kmerge.sh b/targets/support/pre-kmerge.sh index c2ea2dd5..dd51ae9a 100644 --- a/targets/support/pre-kmerge.sh +++ b/targets/support/pre-kmerge.sh @@ -2,5 +2,32 @@ source /tmp/chroot-functions.sh +case ${clst_hostarch} in + hppa) + got_32=0 + got_64=0 + for i in ${clst_boot_kernel} + do + if [ "${i: -2}" == "32" ] + then + if [ $got_32 -eq 1 ] + then + die "Only one 32 bit kernel can be configured" + fi + got_32=1 + elif [ "${i: -2}" == "64" ] + then + if [ $got_64 -eq 1 ] + then + die "Only one 64 bit kernel can be configured" + fi + got_64=1 + else + die "Kernel names must end by either 32 or 64" + fi + done + ;; +esac + run_merge --oneshot genkernel install -d /tmp/kerncache