1 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/installer/include/prepare_bootloader.sh,v 1.3 2008-09-24 11:21:07 niro Exp $ |
#!/bin/bash |
2 |
|
# $Id$ |
3 |
|
|
4 |
source include/hwdetection.sh |
source include/hwdetection.sh |
5 |
|
|
107 |
|
|
108 |
add_grub_conf "title Magellan-Linux $(< ${INSTALL_ROOT}/etc/mageversion) ($(readlink ${INSTALL_ROOT}/boot/vmlinuz | sed s:kernel-::))" |
add_grub_conf "title Magellan-Linux $(< ${INSTALL_ROOT}/etc/mageversion) ($(readlink ${INSTALL_ROOT}/boot/vmlinuz | sed s:kernel-::))" |
109 |
add_grub_conf "root $(convert_device ${PARTITION_DISK_BOOT})" |
add_grub_conf "root $(convert_device ${PARTITION_DISK_BOOT})" |
110 |
add_grub_conf "kernel /boot/$(readlink ${INSTALL_ROOT}/boot/vmlinuz) root=${PARTITION_DISK_ROOT}" |
add_grub_conf "kernel /boot/$(readlink ${INSTALL_ROOT}/boot/vmlinuz) root=$(get_uuid ${PARTITION_DISK_ROOT})" |
111 |
add_grub_conf "initrd /boot/$(readlink ${INSTALL_ROOT}/boot/initrd)" |
add_grub_conf "initrd /boot/$(readlink ${INSTALL_ROOT}/boot/initrd)" |
112 |
|
|
113 |
# add an empty line as spacer between other boot entries |
# add an empty line as spacer between other boot entries |
120 |
echo 25 |
echo 25 |
121 |
create_grub_conf >&2 |
create_grub_conf >&2 |
122 |
echo 50 |
echo 50 |
|
create_initrd >&2 |
|
|
echo 75 |
|
123 |
install_grub >&2 |
install_grub >&2 |
124 |
echo 100 |
echo 100 |
125 |
} |
} |