# Super Grub Disk Main Configuration file # Copyright (C) 2009,2010,2011,2012,2013,2014,2015 Adrian Gibanel Lopez. # # Super Grub Disk is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Super Grub Disk is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Super Grub Disk. If not, see . # Heavily modified by Didier Spaier for the Slint project to include # a boot entry allowing to detect and boot installed operating systems # in the boot menu of installers and boot sticks set sg2d_directory="${config_directory}" export sg2d_directory # Allow reading various kinds of partition tables insmod part_acorn insmod part_amiga insmod part_apple insmod part_bsd # insmod part_gpt already inserted # insmod part_msdos already inserted insmod part_sun insmod part_sunpc # Allow reading many file systems # The modules commented out are already inserted from grub.cfg insmod affs insmod afs insmod bfs #insmod btrfs insmod cbfs insmod exfat #insmod ext2 #insmod f2fs #insmod fat insmod hfs insmod hfsplus insmod iso9660 #insmod jfs insmod ntfs insmod odc insmod odc #insmod procfs #insmod reiserfs insmod sfs insmod ufs1 insmod ufs1_be insmod ufs2 #insmod xfs #insmod zfs # Enable LVM support insmod lvm # Enable encrypted volumes insmod luks insmod geli # setup access to encrypted devices # -a option: configure all encrypted devices # If becessary password will be requested interactively cryptomount -a # enable serial terminal with default settings: # port 0 # speed 9600 bauds # 8 data bits # stop bit # parity none serial terminal_input --append serial terminal_output --append serial # enable RAID support insmod dm_nv insmod mdraid09_be insmod mdraid09 insmod mdraid1x insmod raid5rec insmod raid6rec # Init Super Grub2 Disk variables insmod regexp regexp -s "sg2d_dev_name" '^\((.*)\).*$' "$sg2d_directory" rmmod regexp export sg2d_dev_name # Detection source "${sg2d_directory}/osdetect.cfg" run_option