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() |
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 |
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 |
|