aboutsummaryrefslogtreecommitdiff
path: root/i18n/fr_FR/resources/grub/config/menuentries/common.cfg
diff options
context:
space:
mode:
authorLibreboot Contributor <contributor@libreboot.org>2020-04-02 20:59:23 +0200
committerLibreboot Contributor <contributor@libreboot.org>2020-04-02 20:59:43 +0200
commita2f4bef6de0e1f5770d489e861c78890f81229c1 (patch)
treebc74ce87d44cfcae1eecff62c0fbf6a97b1812fc /i18n/fr_FR/resources/grub/config/menuentries/common.cfg
parentc6cb6cf4769cd535eee9abfd41fbf717a51d067c (diff)
downloadlibrebootfr-a2f4bef6de0e1f5770d489e861c78890f81229c1.tar.gz
librebootfr-a2f4bef6de0e1f5770d489e861c78890f81229c1.zip
link to french version of gplv3 at the top of i18n/fr_FR/COPYING . Also, we remove files that we haven't translated yet, it weights a lot.
Diffstat (limited to 'i18n/fr_FR/resources/grub/config/menuentries/common.cfg')
-rw-r--r--i18n/fr_FR/resources/grub/config/menuentries/common.cfg132
1 files changed, 0 insertions, 132 deletions
diff --git a/i18n/fr_FR/resources/grub/config/menuentries/common.cfg b/i18n/fr_FR/resources/grub/config/menuentries/common.cfg
deleted file mode 100644
index 59e1e32e..00000000
--- a/i18n/fr_FR/resources/grub/config/menuentries/common.cfg
+++ /dev/null
@@ -1,132 +0,0 @@
-function try_user_config {
- set root="${1}"
- for dir in boot grub grub2 boot/grub boot/grub2; do
- for name in libreboot_ autoboot_ librecore_ coreboot_ ''; do
- if [ -f /"${dir}"/"${name}"grub.cfg ]; then
- unset superusers
- configfile /"${dir}"/"${name}"grub.cfg
- fi
- done
- done
-}
-function search_grub {
- for i in 0 1; do
- # raw devices
- try_user_config "(${1}${i})"
- for part in 1 2 3 4 5; do
- # MBR/GPT partitions
- try_user_config "(${1}${i},${part})"
- done
- done
-}
-function try_isolinux_config {
- set root="${1}"
- for dir in '' /boot; do
- if [ -f "${dir}"/isolinux/isolinux.cfg ]; then
- syslinux_configfile -i "${dir}"/isolinux/isolinux.cfg
- elif [ -f "${dir}"/syslinux/syslinux.cfg ]; then
- syslinux_configfile -s "${dir}"/syslinux/syslinux.cfg
- fi
- done
-}
-function search_isolinux {
- for i in 0 1; do
- # raw devices
- try_isolinux_config "(${1}${i})"
- for part in 1 2 3 4 5; do
- # MBR/GPT partitions
- try_isolinux_config "(${1}${i},${part})"
- done
- done
-}
-menuentry 'Load Operating System (incl. fully encrypted disks) [o]' --hotkey='o' {
-# GRUB2 handles (almost) every possible disk setup, but only the location of
-# /boot is actually important since GRUB2 only loads the user's config.
-
-# LVM, RAID, filesystems and encryption on both raw devices and partitions in
-# all various combinations need to be supported. Since full disk encryption is
-# possible with GRUB2 as payload and probably even used by most users, this
-# configuration tries to load the operating system in the following way:
-
-# 1. Look for user configuration on unencrypted devices first to avoid
-# unnecessary decryption routines in the following order:
-
-# 1) raw devices and MBR/GPT partitions
- search_grub ahci
- search_grub ata
-# 2) LVM and RAID which might be used accross multiple devices
- lvm="lvm/matrix-rootvol lvm/matrix-boot"
- raid="md/0 md/1 md/2 md/3 md/4 md/5 md/6 md/7 md/8 md/9"
- for vol in ${lvm} ${raid}; do
- try_user_config "(${vol})"
- done
-# 2. In case no configuration could be found, try decrypting devices. Look
-# on raw crypto devices as well as inside LVM volumes this time.
-
-# The user will be prompted for a passphrase if a LUKS header was found.
- for dev usb1 usb0 ahci1 ahci0 ata1 ata0 ${lvm}; do
- cryptomount "(${dev})"
- done
-# 3) encrypted devices/partitions
- for i in 1 0; do
- for part in 1 2 3 4 5; do
- for type in usb ahci ata; do
- cryptomount "(${type}${i},${part})"
- done
- done
- done
-
-# 3) encrypted devices/partitions
- search_grub crypto
-# 4) LVM inside LUKS containers
- for vol in ${lvm}; do
- try_user_config "(${vol})"
- done
-
- # Last resort, if all else fails
- set root=ahci0,1
- for p in / /boot/; do
- if [ -f "${p}vmlinuz" ]; then
- linux ${p}vmlinuz root=/dev/sda1 rw
- if [ -f "${p}initrd.img" ]; then
- initrd ${p}initrd.img
- fi
- fi
- done
-
- # Last resort (for GA-G41-ES2L which uses IDE emulation mode for SATA)
- set root=ata0,1
- for p in / /boot/; do
- if [ -f "${p}vmlinuz" ]; then
- linux ${p}vmlinuz root=/dev/sda1 rw
- if [ -f "${p}initrd.img" ]; then
- initrd ${p}initrd.img
- fi
- fi
- done
-}
-menuentry 'Search ISOLINUX menu (AHCI) [a]' --hotkey='a' {
- search_isolinux ahci
-}
-menuentry 'Search ISOLINUX menu (USB) [u]' --hotkey='u' {
- search_isolinux usb
-}
-menuentry 'Search ISOLINUX menu (CD/DVD) [d]' --hotkey='d' {
- insmod ata
- for dev in ata0 ata1 ata2 ata3 ahci1; do
- try_isolinux_config "(${dev})"
- done
-}
-menuentry 'Load test configuration (grubtest.cfg) inside of CBFS [t]' --hotkey='t' {
- set root='(cbfsdisk)'
- configfile /grubtest.cfg
-}
-menuentry 'Search for GRUB2 configuration on external media [s]' --hotkey='s' {
- search_grub usb
-}
-menuentry 'Poweroff [p]' --hotkey='p' {
- halt
-}
-menuentry 'Reboot [r]' --hotkey='r' {
- reboot
-}