Switch bootloader from yaboot to grub-ieee1275 on ppc64
This commit is contained in:
parent
4940b6b64d
commit
1e09a3153f
|
@ -14,6 +14,7 @@ debian-cd (3.1.24) UNRELEASED; urgency=medium
|
|||
* Remove elilo from tools/generate_di+k_list on {i386,ia64}
|
||||
* Switch bootloader from elilo to grub-efi-ia64 on ia64
|
||||
* Switch bootloader from yaboot to grub-ieee1275 on powerpc
|
||||
* Switch bootloader from yaboot to grub-ieee1275 on ppc64
|
||||
|
||||
-- Holger Levsen <holger@debian.org> Wed, 20 Feb 2019 14:12:16 +0100
|
||||
|
||||
|
|
|
@ -0,0 +1,89 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Do install stuff for ppc64, including making bootable CDs
|
||||
# Works with debian-installer
|
||||
#
|
||||
# $1 is the CD number
|
||||
# $2 is the temporary CD build dir
|
||||
|
||||
. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
|
||||
|
||||
set -e
|
||||
#set -x
|
||||
|
||||
N=$1
|
||||
CDDIR=$2
|
||||
INSTALLDIR=$CDDIR/install
|
||||
|
||||
# Common mkisofs options when creating CDs
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J -joliet-long"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-l"
|
||||
|
||||
# mkisofs options specific to ppc64
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfsplus -apm-block-size 2048"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfsplus-file-creator-type chrp tbxi /System/Library/CoreServices/BootX"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs-bless-by p /System/Library/CoreServices"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-sysid PPC -graft-points"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "/System/Library/CoreServices/BootX=$CDDIR/../CD1/boot/grub/powerpc-ieee1275/grub.chrp"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "/System/Library/CoreServices/grub.elf=$CDDIR/../CD1/boot/grub/powerpc.elf"
|
||||
|
||||
# Exit if this is not CD#1/DVD#1
|
||||
if [ $N != "1" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$DI_WWW_HOME" = "default" ]; then
|
||||
DI_WWW_HOME="https://d-i.debian.org/daily-images/ppc64/daily"
|
||||
try_di_image_cache
|
||||
else
|
||||
DI_WWW_HOME=$(echo $DI_WWW_HOME | sed "s,%ARCH%,$ARCH,")
|
||||
fi
|
||||
|
||||
case "$MKISOFS" in
|
||||
*xorriso*)
|
||||
XORRISO_VER=$(xorriso_version)
|
||||
;;
|
||||
*)
|
||||
echo "ERROR: debian-cd now depends on xorriso for making ppc64 bootable CDs."
|
||||
exit 1;
|
||||
;;
|
||||
esac
|
||||
|
||||
cd $CDDIR/..
|
||||
|
||||
BOOT_IMAGES="cdrom/initrd.gz cdrom/vmlinux cdrom/debian-cd_info.tar.gz"
|
||||
|
||||
# Download boot images.
|
||||
for image in $BOOT_IMAGES; do
|
||||
if [ ! -e "$image" ]; then
|
||||
dir=$(dirname $image)
|
||||
mkdir -p $dir
|
||||
if [ -n "$LOCAL" -a -f "${LOCALDEBS:-$MIRROR}/dists/$DI_DIST/local/installer-$ARCH/current/images/$image" ]; then
|
||||
cp "${LOCALDEBS:-$MIRROR}/dists/$DI_DIST/local/installer-$ARCH/current/images/$image" "$image"
|
||||
elif [ ! "$DI_WWW_HOME" ];then
|
||||
if [ ! "$DI_DIR" ];then
|
||||
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images"
|
||||
fi
|
||||
cp "$DI_DIR/$image" "$image"
|
||||
else
|
||||
$WGET "$DI_WWW_HOME/$image" -O "$image"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Boot setup including config and help files comes from d-i.
|
||||
mkdir -pv $PWD/CD$N
|
||||
cat cdrom/debian-cd_info.tar.gz | (cd CD$N/; tar zx)
|
||||
|
||||
# Copy kernel and initrd
|
||||
mkdir -p $INSTALLDIR
|
||||
cp -lf cdrom/vmlinux $INSTALLDIR/
|
||||
cp -lf cdrom/initrd.gz $INSTALLDIR/
|
||||
|
||||
# Add CHRP boot header
|
||||
if [ -f CD$N/ppc/bootinfo.txt ] ; then
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-chrp-boot-part"
|
||||
fi
|
||||
|
||||
exit 0
|
|
@ -278,7 +278,6 @@ linux-image-prep
|
|||
initramfs-tools
|
||||
grub-ieee1275
|
||||
busybox
|
||||
yaboot
|
||||
hfsutils
|
||||
powerpc-utils
|
||||
powerpc-ibm-utils
|
||||
|
|
Loading…
Reference in New Issue