Magellan Linux

Diff of /trunk/installer/include/prepare_bootloader.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1061 by niro, Mon May 31 17:15:47 2010 UTC revision 1062 by niro, Mon May 31 21:02:47 2010 UTC
# Line 13  create_device_map() Line 13  create_device_map()
13   [[ ! -z ${INSTALL_ROOT} ]] && chroot=chrooted   [[ ! -z ${INSTALL_ROOT} ]] && chroot=chrooted
14    
15   # create device.map   # create device.map
16   ${chroot} grub --batch --no-floppy --no-config-file --device-map=/boot/grub/device.map </dev/null &>/dev/null   ${chroot} grub --batch --no-floppy --no-config-file --device-map=/boot/grub/device.map </dev/null
17  }  }
18    
19  install_grub()  install_grub()
# Line 31  install_grub() Line 31  install_grub()
31   [[ ! -z ${INSTALL_ROOT} ]] && chroot=chrooted   [[ ! -z ${INSTALL_ROOT} ]] && chroot=chrooted
32    
33   # update grub   # update grub
34   ${chroot} grub --batch --no-floppy << EOF 1> /dev/null 2> /dev/null   ${chroot} grub --batch --no-floppy << EOF
35  root $(convert_device ${grub_disk})  root $(convert_device ${grub_disk})
36  setup $(convert_device ${grub_disk} | sed "s:,[0-9]::")  setup $(convert_device ${grub_disk} | sed "s:,[0-9]::")
37  quit  quit
# Line 122  create_grub_conf() Line 122  create_grub_conf()
122    
123  install_bootloader()  install_bootloader()
124  {  {
125   create_device_map &> /dev/null   create_device_map &>> ${INSTALLER_LOG}
126   echo 25   echo 25
127   create_grub_conf &> /dev/null   create_grub_conf &>> ${INSTALLER_LOG}
128   echo 50   echo 50
129   install_grub &> /dev/null   install_grub &>> ${INSTALLER_LOG}
130   echo 100   echo 100
131  }  }
   
 install_bootloader  

Legend:
Removed from v.1061  
changed lines
  Added in v.1062