Browse Source

Clifford Wolf:


			
			
				rocklinux
			
			
		
Clifford Wolf 20 years ago
parent
commit
337ee783ec
2 changed files with 15 additions and 2 deletions
  1. +1
    -0
      package/x86/grub/grub.conf
  2. +14
    -2
      package/x86/grub/stone_mod_grub.sh

+ 1
- 0
package/x86/grub/grub.conf

@ -28,6 +28,7 @@ grub_postmake() {
cp -v $datadir/grub/$trg/* $root/boot/grub/
cp $confdir/stone_mod_grub.sh $root/etc/stone.d/mod_grub.sh
echo '$STONE grub grub_setup' > $root/etc/stone.d/setup_grub.sh
if [ ! -f $root/boot/grub/menu.lst ] ; then
cp docs/menu.lst $root/boot/grub/

+ 14
- 2
package/x86/grub/stone_mod_grub.sh

@ -90,8 +90,7 @@ grub_install() {
gui_cmd 'Installing GRUB' "echo -e 'root $bootdrive\\nsetup (hd0)\\nquit' | grub --batch --device-map=/boot/grub/device.map"
}
main() {
while
grub_init() {
rootdev="`grep ' / ' /proc/mounts | tail -n 1 | \
awk '/\/dev\// { print $1; }'`"
bootdev="`grep ' /boot ' /proc/mounts | tail -n 1 | \
@ -126,6 +125,19 @@ main() {
if [ "$rootdrive" = "$bootdrive" ]
then bootpath="/boot" ; else bootpath="" ; fi
}
grub_setup() {
if gui_yesno "Do you want to install the GRUB bootloader in MBR now?"; then
grub_init; create_device_map
grub_init; create_boot_menu
grub_init; grub_install
fi
}
main() {
while
grub_init
gui_menu grub 'GRUB Boot Loader Setup' \
'(Re-)Create GRUB Device Map' 'create_device_map' \

Loading…
Cancel
Save