diff --git a/Documentation/Developers/CHANGELOG-RENE b/Documentation/Developers/CHANGELOG-RENE index 99f8f4c7a..b2e98b8fb 100644 --- a/Documentation/Developers/CHANGELOG-RENE +++ b/Documentation/Developers/CHANGELOG-RENE @@ -1,7 +1,9 @@ *) 2003-09-18 (2.0.0-rc1 - 2.0.0-rc2) - - updated sendmail and kde + - updated sendmail and kde + - fixed mod_stone_yaboot to work when the CD rom is on the master IDE channel + and the hard-disc on the slave (the PowerBook default ?!?) *) 2003-09-17 (2.0.0-rc1 - 2.0.0-rc2) diff --git a/package/powerpc/yaboot/stone_mod_yaboot.sh b/package/powerpc/yaboot/stone_mod_yaboot.sh index 792bf0f22..74fac4dc3 100644 --- a/package/powerpc/yaboot/stone_mod_yaboot.sh +++ b/package/powerpc/yaboot/stone_mod_yaboot.sh @@ -70,7 +70,7 @@ enableofboot EOT [ "$macosxpart" ] && \ - echo -e "\nmacosx=/dev/ide/host0/bus0/target0/lun0/part$macosxpart\n" \ + echo -e "\nmacosx=$macosxdev\n" \ >> /etc/yaboot.conf @@ -83,13 +83,13 @@ $( cat /etc/yaboot.conf )" yaboot_install() { # format the boostrap if not already done - if hmount /dev/ide/host0/bus0/target0/lun0/part$bootstrappart > /dev/null ; then + if hmount $bootstrapdev > /dev/null ; then humount else if gui_yesno "The boostrap device \ -/dev/ide/host0/bus0/target0/lun0/part$bootstrappart is not yet HFS formated. \ +$bootstrapdev is not yet HFS formated. \ Format now?" ; then - hformat /dev/ide/host0/bus0/target0/lun0/part$bootstrappart + hformat $bootstrapdev else return fi @@ -121,17 +121,26 @@ device4() fi } +realpath() { + dir="`dirname $1`" + file="`basename $1`" + dir="`dirname $dir`/`readlink $dir`" + dir="`echo $dir | sed 's,[^/]*/\.\./,,g'`" + echo $dir/$file +} + main() { while - bootstrappart="`pdisk -l /dev/ide/host0/bus0/target0/lun0/disc | \ + bootstrappart="`pdisk -l /dev/discs/disc0/disc | \ grep Apple_Bootstrap | sed -e "s/:.*//" -e "s/ //g"`" + bootstrapdev="`realpath /dev/discs/disc0/part$bootstrappart`" rootdev="`device4 /`" bootdev="`device4 /boot`" yabootdev="`device4 /usr`" - bootstrapdev=/dev/ide/host0/bus0/target0/lun0/part$bootstrappart macosxpart="`pdisk -l /dev/discs/disc0/disc | grep Apple_HFS | head -1 | \ sed -e "s/:.*//" -e "s/ //g"`" + [ "$macosxpart" ] && macosxdev="`realpath /dev/discs/disc0/part$macosxpart`" if [ "$rootdev" = "$bootdev" ] then bootpath=/boot ; else bootpath="" ; fi @@ -145,7 +154,7 @@ main() { "Yaboot partition:path . $yabootpart:$yabootpath" "" \ "Root Device ........... $rootdev" "" \ "Boot Device ........... $bootdev" "" \ - "MacOS X partition ..... $macosxpart" "" \ + "MacOS X partition ..... $macosxdev" "" \ '' '' \ '(Re-)Create default /etc/yaboot.conf' 'create_yaboot_conf' \ '(Re-)Install the yaboot boot chrp script and binary' 'yaboot_install' \