From a19442e7d70d3e797f56016bdd026f71264a69df Mon Sep 17 00:00:00 2001 From: Ethan Benson Date: Thu, 14 Jun 2001 09:41:01 +0000 Subject: [PATCH] hopefully fix powermac bootable CD problem, check whether mkhybrid or mkisofs is used, if mkhybrid do as we always have, if mkisofs add args: -hfs-bless $n/install/powermac. note this *REQUIRES* the mkisofs from woody, potato's will not work. don't make HFS images for CDs > 1, its not needed. I will have someone test this to ensure it works asap. --- tools/boot/potato/boot-powerpc | 24 +++++++++++++++++++----- tools/boot/potato/post-boot-powerpc | 13 ++++++++++--- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/tools/boot/potato/boot-powerpc b/tools/boot/potato/boot-powerpc index fccee0c6..1e7e4b61 100755 --- a/tools/boot/potato/boot-powerpc +++ b/tools/boot/potato/boot-powerpc @@ -21,17 +21,31 @@ cd $CDROOT/.. # Only disk 1* bootable if [ $N != 1 -a $N != 1_NONUS ]; then - echo -n "--netatalk -j -hfs -probe -map $BASEDIR/data/hfs.map" \ - > $N.mkisofs_opts + # we don't need HFS cruft on anything but CD 1 + #echo -n "--netatalk -j -hfs -probe -map $BASEDIR/data/hfs.map" \ + # > $N.mkisofs_opts + :> $N.mkisofs_opts exit 0 fi -echo -n "--netatalk -j -hfs -probe -map $BASEDIR/data/hfs.map" \ +echo -n "--netatalk -hfs -probe -map $BASEDIR/data/hfs.map" \ > $N.mkisofs_opts echo -n " -prep-boot install/prep/boot.bin" >> $N.mkisofs_opts # For newworld Mac booting - Note, no spaces in volid! -echo -n " -part -no-desktop -hfs-volid Debian/PowerPC_${CODENAME}" \ - >> $N.mkisofs_opts +case "$MKISOFS" in + *mkhybrid) + echo -n " -part -no-desktop -hfs-volid Debian/PowerPC_${CODENAME}" \ + >> $N.mkisofs_opts + ;; + *mkisofs) + echo -n " -part -no-desktop -hfs-bless \$n/install/powermac -hfs-volid Debian/PowerPC_${CODENAME}" \ + >> $N.mkisofs_opts + ;; + *) + echo 1>&2 "Only mkhybrid or mkisofs can be used" + exit 1 + ;; +esac DISKSROOT="$MIRROR/dists/$CODENAME/main/disks-$ARCH/current" INSTALLDIR="$CDROOT/install" diff --git a/tools/boot/potato/post-boot-powerpc b/tools/boot/potato/post-boot-powerpc index bb762001..5de7c621 100755 --- a/tools/boot/potato/post-boot-powerpc +++ b/tools/boot/potato/post-boot-powerpc @@ -24,6 +24,13 @@ if [ $N != 1 -a $N != 1_NONUS ]; then exit 0 fi -hmount $3 -hattrib -b ":install:powermac" -humount $3 +case "$MKISOFS" in + *mkhybrid) + hmount $3 + hattrib -b ":install:powermac" + humount $3 + ;; + *mkisofs) + exit 0 + ;; +esac