summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2020-04-07 12:42:05 -0700
committerMatt Turner <mattst88@gentoo.org>2020-05-16 15:40:09 -0700
commit9593009ee486f5bc3ef3594ac98713f7c9dd2db4 (patch)
treedab5a275e68478c7042b0b6a0f1e4c5f6b6ce2a4
parenttargets: Remove portdir entry from livecd's fstab (diff)
downloadcatalyst-9593009ee486f5bc3ef3594ac98713f7c9dd2db4.tar.gz
catalyst-9593009ee486f5bc3ef3594ac98713f7c9dd2db4.tar.bz2
catalyst-9593009ee486f5bc3ef3594ac98713f7c9dd2db4.zip
targets: Switch from elilo to GRUB on ia64
Signed-off-by: Matt Turner <mattst88@gentoo.org> (cherry picked from commit 9be399147ac1ff86deaabbd85c733da293c5bce9)
-rw-r--r--livecd/cdtar/elilo-3.6-cdtar.tar.bz2bin129254 -> 0 bytes
-rwxr-xr-xtargets/support/bootloader-setup.sh38
-rwxr-xr-xtargets/support/create-iso.sh37
3 files changed, 6 insertions, 69 deletions
diff --git a/livecd/cdtar/elilo-3.6-cdtar.tar.bz2 b/livecd/cdtar/elilo-3.6-cdtar.tar.bz2
deleted file mode 100644
index 6d8da372..00000000
--- a/livecd/cdtar/elilo-3.6-cdtar.tar.bz2
+++ /dev/null
Binary files differ
diff --git a/targets/support/bootloader-setup.sh b/targets/support/bootloader-setup.sh
index 53bc5127..17bc7e8e 100755
--- a/targets/support/bootloader-setup.sh
+++ b/targets/support/bootloader-setup.sh
@@ -80,8 +80,7 @@ case ${clst_hostarch} in
echo "--recoverykernel=boot/${x}" >> ${icfg}
done
;;
- ppc*|powerpc*|sparc*)
- # GRUB2 Openfirmware
+ ia64|ppc*|powerpc*|sparc*)
kern_subdir=/boot
iacfg=$1/boot/grub/grub.cfg
mkdir -p $1/boot/grub
@@ -121,41 +120,6 @@ case ${clst_hostarch} in
echo "" >> ${iacfg}
done
;;
- ia64)
- # NO SOFTLEVEL SUPPORT YET
- iacfg=$1/boot/elilo.conf
- echo 'prompt' > ${iacfg}
- echo 'message=/efi/boot/elilo.msg' >> ${iacfg}
- echo 'chooser=simple' >> ${iacfg}
- echo 'timeout=50' >> ${iacfg}
- echo 'relocatable' >> ${iacfg}
- echo >> ${iacfg}
- for x in ${clst_boot_kernel}
- do
- echo "image=/efi/boot/${x}" >> ${iacfg}
- echo " label=${x}" >> ${iacfg}
- echo ' append="'initrd=${x}.igz ${default_append_line}'"' >> ${iacfg}
- echo " initrd=/efi/boot/${x}.igz" >> ${iacfg}
- echo >> ${iacfg}
- echo "image=/efi/boot/${x}" >> ${iacfg}
- echo " label=${x}-serial">> ${iacfg}
- echo ' append="'initrd=${x}.igz ${default_append_line}' console=tty0 console=ttyS0,9600"' >> ${iacfg}
- echo " initrd=/efi/boot/${x}.igz" >> ${iacfg}
- echo >> ${iacfg}
- echo "image=/efi/boot/${x}" >> ${iacfg}
- echo " label=${x}-ilo">> ${iacfg}
- echo ' append="'initrd=${x}.igz ${default_append_line}' console=tty0 console=ttyS3,9600"' >> ${iacfg}
- echo " initrd=/efi/boot/${x}.igz" >> ${iacfg}
- echo >> ${iacfg}
- echo "image=/efi/boot/${x}" >> ${iacfg}
- echo " label=${x}-sgi">> ${iacfg}
- echo ' append="'initrd=${x}.igz ${default_append_line}' console=tty0 console=ttySG0,115200"' >> ${iacfg}
- echo " initrd=/efi/boot/${x}.igz" >> ${iacfg}
- echo >> ${iacfg}
- mv $1/boot/${x}{,.igz} $1/boot/efi/boot
- done
- cp ${iacfg} $1/boot/efi/boot
- ;;
x86|amd64)
if [ -e $1/isolinux/isolinux.bin ]
then
diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh
index ed640f27..bab0c4d1 100755
--- a/targets/support/create-iso.sh
+++ b/targets/support/create-iso.sh
@@ -19,6 +19,10 @@ case ${clst_hostarch} in
cdmaker="grub-mkrescue"
cdmakerpkg="dev-libs/libisoburn and sys-boot/grub:2"
;;
+ ia64)
+ cdmaker="grub-mkrescue"
+ cdmakerpkg="sys-fs/mtools, dev-libs/libisoburn, and sys-boot/grub:2"
+ ;;
*)
cdmaker="mkisofs"
cdmakerpkg="app-cdr/cdrkit or app-cdr/cdrtools"
@@ -137,37 +141,6 @@ case ${clst_hostarch} in
palo -f boot/palo.conf -C "${1}"
popd
;;
- ia64)
- if [ ! -e "${clst_target_path}/gentoo.efimg" ]
- then
- iaSizeTemp=$(du -sk --apparent-size "${clst_target_path}/boot" 2>/dev/null)
- iaSizeB=$(echo ${iaSizeTemp} | cut '-d ' -f1)
- iaSize=$((${iaSizeB}+64)) # Add slack
-
- dd if=/dev/zero of="${clst_target_path}/gentoo.efimg" bs=1k \
- count=${iaSize}
- mkfs.vfat -F 16 -n GENTOO "${clst_target_path}/gentoo.efimg"
-
- mkdir "${clst_target_path}/gentoo.efimg.mountPoint"
- mount -t vfat -o loop "${clst_target_path}/gentoo.efimg" \
- "${clst_target_path}/gentoo.efimg.mountPoint"
-
- echo '>> Populating EFI image...'
- cp -rv "${clst_target_path}"/boot/* \
- "${clst_target_path}/gentoo.efimg.mountPoint" || die "Failed to populate EFI image"
-
- umount "${clst_target_path}/gentoo.efimg.mountPoint"
- rmdir "${clst_target_path}/gentoo.efimg.mountPoint"
- else
- echo ">> Found populated EFI image at \
- ${clst_target_path}/gentoo.efimg"
- fi
- echo '>> Removing /boot...'
- rm -rf "${clst_target_path}/boot"
-
- echo ">> Running mkisofs to create iso image...."
- run_mkisofs -R -l -b gentoo.efimg -c boot.cat -no-emul-boot -J ${mkisofs_zisofs_opts} -V "${clst_iso_volume_id}" -o "${1}" "${clst_target_path}"/
- ;;
mips)
case ${clst_fstype} in
squashfs)
@@ -225,7 +198,7 @@ case ${clst_hostarch} in
*) die "SGI LiveCD(s) only support the 'squashfs' fstype!" ;;
esac
;;
- ppc*|powerpc*|sparc*)
+ ia64|ppc*|powerpc*|sparc*)
case ${clst_hostarch} in
sparc*) extra_opts="--sparc-boot" ;;
esac