source: pkg/main/parsix-installer/trunk/06-boot.bm @ 3136

Revision 2910, 1.2 KB checked in by alanbach-guest, 7 years ago (diff)
  • Added missing dependency to dpkg, #77
    • Massive clean-ups, removed absolete code
    • Bump standards to 3.7.3
    • Removed obsolete usb-storage script
    • Removed make floppy disk module
    • Updated TODO and manpage
    • Fixed wrong package version in the previous entry
    • Added COPYING file
Line 
1#!/bin/bash
2
3#
4# Setup bootloader - auto
5#
6
7function module_boot_defaults
8{
9  register_var "BOOT_LOADER" $"Chooses the Boot-Loader" "grub" "" "grub"
10  if [ "$FS_TYPE" = "xfs" -o "$FS_TYPE" = "jfs" ]; then
11    register_var "BOOT_WHERE" $"Where the Boot-Loader will be installed" "mbr" "" "mbr"
12  else
13    register_var "BOOT_WHERE" $"Where the Boot-Loader will be installed" "mbr|partition" "" "mbr"
14  fi
15}
16function module_boot_showinfo
17{
18  echo $"Bootloader-Options:"
19  echo "  " $"The bootloader $BOOT_LOADER will be used and installed in $BOOT_WHERE."
20}
21
22function module_boot
23{
24  #[ "$1" -lt "0" ] && return 1 # all automatic modules need to use this code
25
26  module_boot_defaults
27
28  [ "$BOOT_WHERE" = "mbr" ] && MBR_CB="on" || MBR_CB="off"
29  [ "$BOOT_WHERE" = "partition" ] && PART_CB="on" || PART_CB="off"
30 
31  radiolist $"Here you must choose if you want to install the boot-loader to MBR or to a partition." $"Choose where the boot-loader ($BOOT_LOADER) shall be installed" "mbr" $"Master Boot Record" "$MBR_CB" "partition" $"To Root-Partition" "$PART_CB"
32  [ $? -eq 1 ] && return 1
33
34  BOOT_WHERE=$(cat $TMP)
35  BOOT_MODULE="configured"
36  register_vars "BOOT_MODULE BOOT_LOADER BOOT_WHERE"
37  return 0
38}
Note: See TracBrowser for help on using the repository browser.