Afin de voir quelles sont les étapes de réparation et de tests réalisés, voici le log de boot-repair réalisé le 05/11/2024 sur l’ordinateur de Robert de Biscarrosse :
boot-repair-4ppa2074 [20241106_1832]
============================= Boot Repair Summary ==============================
ping: google.com: Name or service not known
Recommended repair: ____________________________________________________________
The default repair of the Boot-Repair utility will reinstall the grub2 of
sda6 into the MBR of sda.
Grub-efi will not be selected by default because no ESP detected.
Additional repair will be performed: unhide-bootmenu-10s
/boot/efi removed in sda6/fstab
Unhide GRUB boot menu in sda6/etc/default/grub
======================= Reinstall the grub2 of /dev/sda6 =======================
chroot /mnt/boot-sav/sda6 grub2-install --version
grub2-install (GRUB) 2.12
==> Reinstall the GRUB of /dev/sda6 into the MBR of /dev/sda
chroot /mnt/boot-sav/sda6 grub2-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
chroot /mnt/boot-sav/sda6 grub2-mkconfig -o /boot/grub2/grub.cfg
mkdir: cannot create directory '/var/lib/os-prober/mount': No such file or directory
mkdir: cannot create directory '/var/lib/os-prober/mount': No such file or directory
mkdir: cannot create directory '/var/lib/os-prober/mount': No such file or directory
mkdir: cannot create directory '/var/lib/os-prober/mount': No such file or directory
mkdir: cannot create directory '/var/lib/os-prober/mount': No such file or directory
mkdir: cannot create directory '/var/lib/os-prober/mount': No such file or directory
mkdir: cannot create directory '/var/lib/os-prober/mount': No such file or directory
Adding boot menu entry for UEFI Firmware Settings ...
Unhide GRUB boot menu in sda6/boot/grub2/grub.cfg
Boot successfully repaired.
You can now reboot your computer.
The boot files of [sda6 (end>100GB)] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot Repair]. (https://help.ubuntu.com/community/BootPartition)
============================ Boot Info After Repair ============================
=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 2048
of the same hard drive for core.img. core.img is at this location.
=> Grub2 (v2.00) is installed in the MBR of /dev/sdb and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,2)/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
offsetio extcmd macho elf file gettext boot bufio verifiers crypto
terminal normal datetime date mmap drivemap blocklist archelp newc
vga_text relocator video chain ntldr search_label search_fs_file
search_fs_uuid search keylayouts at_keyboard pci usb usb_keyboard gcry_md5
hashsum gcry_crc gzio xzio lzopio lspci fshelp ext2 xfs acpi reboot
iso9660 gcry_sha1 div udf exfat font diskfilter raid6rec zstd btrfs ventoy
read halt video_fb vbe linux linux16 test true sleep echo bitmap gfxterm
bitmap_scale trig video_colors gfxmenu videotest videoinfo functional_test
videotest_checksum video_cirrus video_bochs vga minicmd help configfile tr
biosdisk disk ls tar zfs squash4 pbkdf2 gcry_sha512 password_pbkdf2
all_video png jpeg part_gpt part_msdos fat ntfs loopback
gfxterm_background procfs gfxterm_menu smbios
---------------------------------------------------------------------------
sda1: __________________________________________________________________________
File system: BIOS Boot partition
Boot sector type: Grub2's core.img
Boot sector info:
sda2: __________________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/BOOT/fbia32.efi /efi/BOOT/fbx64.efi
/efi/fedora/gcdia32.efi /efi/fedora/gcdx64.efi
/efi/fedora/grubia32.efi /efi/fedora/grubx64.efi
/efi/fedora/mmia32.efi /efi/fedora/mmx64.efi
/efi/fedora/shim.efi /efi/fedora/shimia32.efi
/efi/fedora/shimx64.efi
sda3: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda4: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda6: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Fedora Linux 41 (KDE Plasma)
Boot files: /boot/grub2/grub.cfg /etc/fstab /etc/default/grub
/boot/grub2/i386-pc/core.img
sda7: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda8: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sdb1: __________________________________________________________________________
File system: exfat
Boot sector type: -
Boot sector info:
Mounting failed: mount: /mnt/BootInfo/sdb1: /dev/sdb1 already mounted or mount point busy.
sdb2: __________________________________________________________________________
File system: iso9660
Boot sector type: Unknown
Boot sector info:
Operating System:
Boot files: /boot/grub/grub.cfg
================================ 1 OS detected =================================
OS#1: Fedora Linux 41 (KDE Plasma) on sda6
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: 2nd Generation Core Processor Family Integrated Graphics Controller from Intel Corporation
Live-session OS is Linuxmint 64-bit (Linux Mint 21.2, victoria, x86_64)
===================================== UEFI =====================================
BIOS/UEFI firmware: A14(0.1) from Dell Inc.
The firmware seems EFI-compatible, but this live-session is in Legacy/BIOS/CSM mode (not in EFI mode).
ab547d1341a481f92da0bb0a2228ce98 sda2/BOOT/fbia32.efi
359777f2165aa64c53e45fb416017e4e sda2/BOOT/fbx64.efi
5f26a4a0a6a94c00fba0bb71f2cdfc59 sda2/fedora/gcdia32.efi
6782cf7685fd9293d50503e25ff6b843 sda2/fedora/gcdx64.efi
ad576955f41ece66a6edecd77bad7c2e sda2/fedora/grubia32.efi
b0ceb28f9b6a6c4409710e03b680f744 sda2/fedora/grubx64.efi
c1a35c46b1d7625629e66aa286f46a72 sda2/fedora/mmia32.efi
9d18a9032cb340c1c80eed077e7b684a sda2/fedora/mmx64.efi
1f76deb94e513a018ca76c3854804f43 sda2/fedora/shim.efi
ea9f4f7a2beffc41e4ed615659af8e8a sda2/fedora/shimia32.efi
1f76deb94e513a018ca76c3854804f43 sda2/fedora/shimx64.efi
ea9f4f7a2beffc41e4ed615659af8e8a sda2/BOOT/BOOTIA32.efi
1f76deb94e513a018ca76c3854804f43 sda2/BOOT/BOOTX64.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : is-GPT, hasBIOSboot, has-noESP, not-usb, not-mmc, has-os, no-wind, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda4 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda2 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda7 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
sda5 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda8 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
sda6 : is-os, 64, yum, grub-pc , grub2, grub2-install, no-grubenv, grub2-mkconfig -o /boot/grub, end-after-100GB
Partitions info (2/3): _________________________________________________________
sda4 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda2 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda7 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda5 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda8 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda6 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sda4 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda2 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda7 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda5 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda8 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda6 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda
fdisk -l (filtered): ___________________________________________________________
Disk sda: 698.64 GiB, 750156374016 bytes, 1465149168 sectors
Disk identifier: BA197613-5D1F-4C53-8E8F-61BD3623B772
Start End Sectors Size Type
sda1 2048 6143 4096 2M BIOS boot
sda2 6144 71305215 71299072 34G Microsoft basic data
sda3 71305216 83049267 11744052 5.6G Linux swap
sda4 83050496 91439103 8388608 4G Linux filesystem
sda5 91439104 146594203 55155100 26.3G Linux filesystem
sda6 146595840 356311039 209715200 100G Linux filesystem
sda7 356311040 870322995 514011956 245.1G Linux filesystem
sda8 870324224 1465148211 594823988 283.6G Linux filesystem
Disk sdb: 7.5 GiB, 8053063680 bytes, 15728640 sectors
Disk identifier: 0x603e982e
Boot Start End Sectors Size Id Type
sdb1 * 2048 15663103 15661056 7.5G 7 HPFS/NTFS/exFAT
sdb2 15663104 15728639 65536 32M ef EFI (FAT-12/16/32)
Disk dm-0: 2.45 GiB, 2630877184 bytes, 5138432 sectors
Disk identifier: 0x14eb2669
Boot Start End Sectors Size Id Type
dm-0p1 * 0 5138431 5138432 2.5G 0 Empty
dm-0p2 572 9067 8496 4.1M ef EFI (FAT-12/16/32)
parted -lm (filtered): _________________________________________________________
sda:750GB:scsi:512:4096:gpt:ATA TOSHIBA MQ01ABD0:pmbr_boot;
1:1049kB:3146kB:2097kB:::bios_grub;
2:3146kB:36.5GB:36.5GB:fat32::msftdata;
3:36.5GB:42.5GB:6013MB:linux-swap(v1)::swap;
4:42.5GB:46.8GB:4295MB:ext4::;
5:46.8GB:75.1GB:28.2GB:ext4::;
6:75.1GB:182GB:107GB:ext4::;
7:182GB:446GB:263GB:ext4::;
8:446GB:750GB:305GB:ext4::;
sdb:8053MB:scsi:512:512:msdos:General USB Flash Disk:;
1:1049kB:8020MB:8018MB:::boot;
2:8020MB:8053MB:33.6MB:fat16::esp;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 54dd826c-78d1-4931-a206-f19003e668d9
├─sda2 vfat 9060-F751 5fff034a-ba10-4c13-9d9d-814f90965a8a
├─sda3 swap d46fd3c9-7d74-4e5b-86d8-476ffd8cfb63 34cfed9b-430f-4598-a29a-271748026971
├─sda4 ext4 7527de0e-7423-4a5d-b5d1-d4635c549e61 8f8f8325-808a-46b7-a631-76c55441c870
├─sda5 ext4 02bdf37f-7c4a-4522-a710-3efeac3aee34 21a1d62c-ec37-49d5-b845-a866286939a6
├─sda6 ext4 88421f5e-47e6-49eb-980a-d40fe60bc7be 4a116854-f847-4197-a91e-0f503acb061a
├─sda7 ext4 571dd763-4c72-44bb-93bd-105cd2b92be8 5b676272-5bf2-4a9b-a921-8954658fa12e
└─sda8 ext4 aa5e18e4-2897-4c29-bf75-dcecfef2c208 b249dfb4-1d21-436a-ba42-075dbf656bc7
sdb
├─sdb1 exfat 782B-018B 603e982e-01 Ventoy
└─sdb2 iso9660 2023-12-23-05-05-55-00 Boot-Repair-Disk 64bit
sdc
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/mapper/ventoy 0 100% /cdrom
/dev/sda2 34G 0% /mnt/boot-sav/sda2
/dev/sda4 3.6G 0% /mnt/boot-sav/sda4
/dev/sda5 24.3G 0% /mnt/boot-sav/sda5
/dev/sda6 85.5G 7% /mnt/boot-sav/sda6
/dev/sda7 227.9G 0% /mnt/boot-sav/sda7
/dev/sda8 263.9G 0% /mnt/boot-sav/sda8
/dev/sdb2 0 100% /media/mint/Boot-Repair-Disk 64bit
Mount options (filtered): ______________________________________________________
/dev/mapper/ventoy iso9660 ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8
/dev/sda2 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda4 ext4 rw,relatime
/dev/sda5 ext4 rw,relatime
/dev/sda6 ext4 rw,relatime
/dev/sda7 ext4 rw,relatime
/dev/sda8 ext4 rw,relatime
/dev/sdb2 iso9660 ro,nosuid,nodev,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8
===================== sda6/boot/grub2/grub.cfg (filtered) ======================
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###
========================== sda6/etc/fstab (filtered) ===========================
UUID=88421f5e-47e6-49eb-980a-d40fe60bc7be / ext4 defaults 1 1
UUID=aa5e18e4-2897-4c29-bf75-dcecfef2c208 /d ext4 defaults 1 2
UUID=571dd763-4c72-44bb-93bd-105cd2b92be8 /home ext4 defaults 1 2
UUID=7527de0e-7423-4a5d-b5d1-d4635c549e61 /tmp ext4 defaults 1 2
UUID=02bdf37f-7c4a-4522-a710-3efeac3aee34 /var ext4 defaults 1 2
UUID=d46fd3c9-7d74-4e5b-86d8-476ffd8cfb63 none swap defaults 0 0
======================= sda6/etc/default/grub (filtered) =======================
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="resume=UUID=d46fd3c9-7d74-4e5b-86d8-476ffd8cfb63 rhgb quiet"
GRUB_ENABLE_BLSCFG=true
GRUB_DISABLE_OS_PROBER=false
==================== sda6: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
110.037601471 = 118.151974912 boot/grub2/grub.cfg 1
110.039913177 = 118.154457088 boot/grub2/i386-pc/core.img 1
72.878456116 = 78.252646400 boot/vmlinuz-0-rescue-b4d2237088224c4a9b7b919230a118c5 1
72.909706116 = 78.286200832 boot/vmlinuz-6.11.4-301.fc41.x86_64 2
73.056568146 = 78.443892736 boot/initramfs-0-rescue-b4d2237088224c4a9b7b919230a118c5.img 3
73.093887329 = 78.483963904 boot/initramfs-6.11.4-301.fc41.x86_64.img 1
===================== sda6: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x. 1 root root 1046 Aug 7 20:09 00_tuned
-rwxr-xr-x. 1 root root 236 Oct 17 00:00 01_users
-rwxr-xr-x. 1 root root 835 Oct 17 00:00 08_fallback_counting
-rwxr-xr-x. 1 root root 19875 Oct 17 00:00 10_linux
-rwxr-xr-x. 1 root root 833 Oct 17 00:00 10_reset_boot_success
-rwxr-xr-x. 1 root root 892 Oct 17 00:00 12_menu_auto_hide
-rwxr-xr-x. 1 root root 410 Oct 17 00:00 14_menu_show_once
-rwxr-xr-x. 1 root root 14627 Oct 17 00:00 20_linux_xen
-rwxr-xr-x. 1 root root 2562 Oct 17 00:00 20_ppc_terminfo
-rwxr-xr-x. 1 root root 869 Oct 17 00:00 25_bli
-rwxr-xr-x. 1 root root 11006 Oct 17 00:00 30_os-prober
-rwxr-xr-x. 1 root root 1166 Oct 17 00:00 30_uefi-firmware
-rwxr-xr-x. 1 root root 725 Oct 14 00:00 35_fwupd
-rwxr-xr-x. 1 root root 218 Oct 17 00:00 40_custom
-rwxr-xr-x. 1 root root 219 Oct 17 00:00 41_custom
===================== sda6/etc/grub.d/00_tuned (filtered) ======================
#!/usr/bin/sh
set -e
# grub-mkconfig helper script.
# Copyright (C) 2014 Red Hat, Inc
# Author: Jaroslav Škarvada <jskarvad@redhat.com>
#
# This program 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 2
# of the License, or (at your option) any later version.
#
# This program 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 this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
tunedcfgdir=/etc/tuned
tuned_bootcmdline_file=$tunedcfgdir/bootcmdline
. $tuned_bootcmdline_file
echo "set tuned_params=\"$TUNED_BOOT_CMDLINE\""
echo "set tuned_initrd=\"$TUNED_BOOT_INITRD_ADD\""
===================== sda6/etc/grub.d/01_users (filtered) ======================
#!/usr/bin/sh -e
cat << EOF
if [ -f \${prefix}/user.cfg ]; then
source \${prefix}/user.cfg
if [ -n "\${GRUB2_PASSWORD}" ]; then
set superusers="root"
export superusers
password_pbkdf2 root \${GRUB2_PASSWORD}
fi
fi
EOF
=============== sda6/etc/grub.d/08_fallback_counting (filtered) ================
#!/usr/bin/sh -e
# Fallback Countdown
#
# This snippet depends on 10_reset_boot_success and needs to be kept in sync.
#
# The boot_counter env var can be used to count down boot attempts after an
# OSTree upgrade and choose the rollback deployment when 0 is reached.
# Both boot_counter=X and boot_success=1 need to be set from userspace.
cat << EOF
insmod increment
# Check if boot_counter exists and boot_success=0 to activate this behaviour.
if [ -n "\${boot_counter}" -a "\${boot_success}" = "0" ]; then
# if countdown has ended, choose to boot rollback deployment,
# i.e. default=1 on OSTree-based systems.
if [ "\${boot_counter}" = "0" -o "\${boot_counter}" = "-1" ]; then
set default=1
set boot_counter=-1
# otherwise decrement boot_counter
else
decrement boot_counter
fi
save_env boot_counter
fi
EOF
=============== sda6/etc/grub.d/10_reset_boot_success (filtered) ===============
#!/usr/bin/sh -e
# Reset Boot Success
#
# The 08_fallback_counting and 12_menu_auto_hide snippets rely on this one
# and need to be kept in sync.
#
# The boot_success var needs to be set to 1 from userspace to mark a boot successful.
cat << EOF
# Hiding the menu is ok if last boot was ok or if this is a first boot attempt to boot the entry
if [ "\${boot_success}" = "1" -o "\${boot_indeterminate}" = "1" ]; then
set menu_hide_ok=1
else
set menu_hide_ok=0
fi
# Reset boot_indeterminate after a successful boot
if [ "\${boot_success}" = "1" ] ; then
set boot_indeterminate=0
# Avoid boot_indeterminate causing the menu to be hidden more than once
elif [ "\${boot_indeterminate}" = "1" ]; then
set boot_indeterminate=2
fi
# Reset boot_success for current boot
set boot_success=0
save_env boot_success boot_indeterminate
EOF
================= sda6/etc/grub.d/12_menu_auto_hide (filtered) =================
#!/usr/bin/sh
# Menu Auto Hide
#
# This snippet depends on 10_reset_boot_success and needs to be kept in sync.
#
# Disable / skip generating menu-auto-hide config parts on serial terminals
for x in ${GRUB_TERMINAL_INPUT} ${GRUB_TERMINAL_OUTPUT}; do
case "$x" in
serial*)
exit 0
;;
esac
cat << EOF
if [ x\$feature_timeout_style = xy ] ; then
if [ "\${menu_show_once}" ]; then
unset menu_show_once
save_env menu_show_once
set timeout_style=menu
set timeout=60
elif [ "\${menu_auto_hide}" -a "\${menu_hide_ok}" = "1" ]; then
set orig_timeout_style=\${timeout_style}
set orig_timeout=\${timeout}
if [ "\${fastboot}" = "1" ]; then
# timeout_style=menu + timeout=0 avoids the countdown code keypress check
set timeout_style=menu
set timeout=0
else
set timeout_style=hidden
set timeout=1
fi
fi
fi
EOF
================= sda6/etc/grub.d/14_menu_show_once (filtered) =================
#!/usr/bin/sh
# Force the menu to be shown once, with a timeout of ${menu_show_once_timeout}
# if requested by ${menu_show_once_timeout} being set in the env.
cat << EOF
if [ x\$feature_timeout_style = xy ]; then
if [ "\${menu_show_once_timeout}" ]; then
set timeout_style=menu
set timeout="\${menu_show_once_timeout}"
unset menu_show_once_timeout
save_env menu_show_once_timeout
fi
fi
EOF
================== sda6/etc/grub.d/20_ppc_terminfo (filtered) ==================
#!/usr/bin/sh
set -e
# grub-mkconfig helper script.
# Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc.
#
# GRUB 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.
#
# GRUB 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 GRUB. If not, see <http://www.gnu.org/licenses/>.
prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
libdir=/usr/lib
. "/usr/share/grub/grub-mkconfig_lib"
export TEXTDOMAIN=grub
export TEXTDOMAINDIR=/usr/share/locale
X=80
Y=24
TERMINAL=ofconsole
argument () {
opt=$1
shift
if test $# -eq 0; then
echo "$0: option requires an argument -- '$opt'" 1>&2
exit 1
fi
echo $1
}
check_terminfo () {
while test $# -gt 0
do
option=$1
shift
case "$option" in
terminfo | TERMINFO)
;;
-g)
NEWXY=`argument $option "$@"`
NEWX=`echo $NEWXY | cut -d x -f 1`
NEWY=`echo $NEWXY | cut -d x -f 2`
if [ ${NEWX} -ge 80 ] ; then
X=${NEWX}
else
echo "Warning: ${NEWX} is less than the minimum size of 80"
fi
if [ ${NEWY} -ge 24 ] ; then
Y=${NEWY}
else
echo "Warning: ${NEWY} is less than the minimum size of 24"
fi
shift
;;
*)
# # accept console or ofconsole
# if [ "$option" != "console" -a "$option" != "ofconsole" ] ; then
# echo "Error: GRUB_TERMINFO unknown console: $option"
# exit 1
# fi
# # perfer console
# TERMINAL=console
# accept ofconsole
if [ "$option" != "ofconsole" ] ; then
echo "Error: GRUB_TERMINFO unknown console: $option"
exit 1
fi
# perfer console
TERMINAL=ofconsole
;;
esac
done
}
if ! uname -m | grep -q ppc ; then
exit 0
fi
if [ "x${GRUB_TERMINFO}" != "x" ] ; then
F1=`echo ${GRUB_TERMINFO} | cut -d " " -f 1`
if [ "${F1}" != "terminfo" ] ; then
echo "Error: GRUB_TERMINFO is set to \"${GRUB_TERMINFO}\" The first word should be terminfo."
exit 1
fi
check_terminfo ${GRUB_TERMINFO}
fi
cat << EOF
terminfo -g ${X}x${Y} ${TERMINAL}
EOF
====================== sdb2/boot/grub/grub.cfg (filtered) ======================
==================== sdb2: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
======================== Unknown MBRs/Boot Sectors/etc =========================
Unknown BootLoader on sdb2
sprunge.us ko ()
paste.ubuntu.com ko ()