Contents of /tags/installer-simple-0_4_91_20160613_1/functions/bootloader.sh
Parent Directory | Revision Log
Revision 2428 -
(show annotations)
(download)
(as text)
Tue Jan 7 14:11:12 2014 UTC (10 years, 8 months ago) by niro
Original Path: trunk/installer-simple/functions/bootloader.sh
File MIME type: application/x-sh
File size: 366 byte(s)
Tue Jan 7 14:11:12 2014 UTC (10 years, 8 months ago) by niro
Original Path: trunk/installer-simple/functions/bootloader.sh
File MIME type: application/x-sh
File size: 366 byte(s)
-select bootloader and initrd via an include which calls the right routines
1 | # select a supported bootloader |
2 | |
3 | # prefer grub2 |
4 | if [[ ${DEFAULT_BOOTLOADER} = grub2 ]] || [ -x ${INSTALLROOT}/usr/sbin/grub-mkconfig ] |
5 | then |
6 | echo "Using grub2" >&2 |
7 | source ${INSTALLER_LIBDIR}/functions/grub2.sh |
8 | fi |
9 | |
10 | if [[ ${DEFAULT_BOOTLOADER} = grub ]] || [ -x ${INSTALLROOT}/sbin/grub ] |
11 | then |
12 | echo "Using grub1" >&2 |
13 | source ${INSTALLER_LIBDIR}/functions/grub.sh |
14 | fi |