ubuntu-powerpc team mailing list archive
-
ubuntu-powerpc team
-
Mailing list archive
-
Message #00021
[Bug 956481] Re: ppc: YabootInstaller doesn't handle USB drive installation so well
I haven't tested this yet, but I think something like this would work:
Expand the current if statement
if [ "$ARCH" = powerpc/powermac_newworld ]; then
writeyabootconf <<EOF
magicboot=/usr/lib/yaboot/ofboot
EOF
fi
to this......
if [ "$ARCH" = powerpc/powermac_newworld ]; then
writeyabootconf <<EOF
magicboot=/usr/lib/yaboot/ofboot
EOF
# Check if ofpath can find the bootstrap partition. If it can't then don't set nvram and
# set a generic value for ofboot
if ! [ $(map_of_path "$boot") ]; then
# we should be able to at least find the bootstrap partition number
ofbootpartnr="`printf %s "$boot" | sed 's/[^0-9]*\([0-9]\)/\1/'`"
writeyabootconf <<EOF
# ofpath failed to find the openfirmware path of the boostrap partition.
# To enable automatic booting, remove the nonvram line and change the ofboot value to
# the openfirmware path of the bootstrap partition. For example: ofboot=usb0/@1:2
nonvram
ofboot=&device;:$ofbootpartnr
EOF
fi
fi
Sorry, haven't looked into doing fancy patches yet! I am very very
rusty at writing any sort of code so please check it makes sense!
--
You received this bug notification because you are a member of Ubuntu
PowerPC Architecture Team, which is subscribed to yaboot-installer in
Ubuntu.
https://bugs.launchpad.net/bugs/956481
Title:
ppc: YabootInstaller doesn't handle USB drive installation so well
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/yaboot-installer/+bug/956481/+subscriptions