Browse Source

fake:


			
			
				rocklinux
			
			
		
fake 20 years ago
parent
commit
2ce338a954
2 changed files with 17 additions and 4 deletions
  1. +15
    -4
      package/powerpc/yaboot/stone_mod_yaboot.sh
  2. +2
    -0
      package/powerpc/yaboot/yaboot.conf

+ 15
- 4
package/powerpc/yaboot/stone_mod_yaboot.sh

@ -75,7 +75,7 @@ EOT
create_kernel_list
gui_message "This is the new /etc/yaboot.conf file:
[ -n "$1" ] && gui_message "This is the new /etc/yaboot.conf file:
$( cat /etc/yaboot.conf )"
}
@ -129,8 +129,7 @@ realpath() {
echo $dir/$file
}
main() {
while
yaboot_init() {
bootstrappart="`pdisk -l /dev/discs/disc0/disc | \
grep Apple_Bootstrap | sed -e "s/:.*//" -e "s/ //g"`"
bootstrapdev="`realpath /dev/discs/disc0/part$bootstrappart`"
@ -148,6 +147,18 @@ main() {
if [ "$rootdev" = "$yabootdev" ]
then yabootpath=/usr ; else yabootpath="" ; fi
yabootpart="`echo $yabootdev | sed s/.*part//`"
}
yaboot_setup() {
if gui_yesno "Do you want to install the yaboot bootloader now?"; then
yaboot_init; create_yaboot_conf
yaboot_init; yaboot_install
fi
}
main() {
while
yaboot_init
gui_menu yaboot 'Yaboot Boot Loader Setup' \
"Bootstrap Device ...... $bootstrapdev" "" \
@ -156,7 +167,7 @@ main() {
"Boot Device ........... $bootdev" "" \
"MacOS X partition ..... $macosxdev" "" \
'' '' \
'(Re-)Create default /etc/yaboot.conf' 'create_yaboot_conf' \
'(Re-)Create default /etc/yaboot.conf' 'create_yaboot_conf 1' \
'(Re-)Install the yaboot boot chrp script and binary' 'yaboot_install' \
'' '' \
"Edit /etc/yaboot.conf (Config file)" \

+ 2
- 0
package/powerpc/yaboot/yaboot.conf

@ -27,6 +27,8 @@ yaboot_pi(){
# create a specially prepared binary that can be run from OF directly
cp -v $root/$prefix/lib/yaboot/{yaboot,yaboot.rs6k}
$root/$prefix/lib/yaboot/addnote $root/$prefix/lib/yaboot/yaboot.rs6k
echo '$STONE yaboot yaboot_setup' > $root/etc/stone.d/setup_yaboot.sh
}
hook_add postinstall 3 "yaboot_pi"

Loading…
Cancel
Save