Page 1 sur 1
Mise à jour de Grub (Délai)
Posté : lun. 5 févr. 2024 09:51
par KOD-FR
Bonjour
Juste après l'installation de Linux Mint, j'ai vu que Grub me propose de démarrer sous Linux Mint, avec d'autres versions de Mint ou en mode console.
Je souhaite que le délai passe de 30s à 5s.
Je vais donc dans les fichiers de configuration de Grub (listés dans l'exécution de la commande update-grub), mais rien ne change après exécution de cette commande alors que les fichiers de configuration me semblent justes.
Quelqu'un aurait-il une piste à me donner pour que ça puisse fonctionner ?
Merci.
Re: Mise à jour de Grub (Délai)
Posté : mar. 6 févr. 2024 06:59
par KOD-FR
Bonjour,
Merci pour ta réponse. C'est ce que j'ai fait au début.
J'ai un peu creuser et suis allé jusqu'à faire un "grub-mkconfig" mais rien n'y change : au démarrage, ça reste à 30s...
Voici le contenu de "/etc/default/grub" :
Code : Tout sélectionner
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
Et voici le retour de la commande "update-grub" :
Code : Tout sélectionner
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-92-generic
Found initrd image: /boot/initrd.img-5.15.0-92-generic
Found linux image: /boot/vmlinuz-5.15.0-91-generic
Found initrd image: /boot/initrd.img-5.15.0-91-generic
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done
Note : je n'ai aucun autre OS d'installé, Grub me donne seulement l'accès aux anciens Kernels...
Re: Mise à jour de Grub (Délai)
Posté : mar. 6 févr. 2024 18:16
par KOD-FR
C'est vraiment étrange : j'ai réussi à changer le fond d'écran

et la définition d'écran

, mais rien à faire, il ne change pas le délai qui reste à 30s !!!
(Bon, je n'ai pas réussi non plus à mettre un clavier fr pour la console)

Re: Mise à jour de Grub (Délai)
Posté : mer. 7 févr. 2024 07:04
par KOD-FR
Merci.
Pour le premier (/etc/default/grub.d/50_linuxmint.cfg), rien à signaler :
Code : Tout sélectionner
#! /bin/sh
set -e
# Set distributor to "Ubuntu"
#
# In Mint 16:
# shim and grub come with hardcoded ubuntu strings upstream, without this EFI i>
# https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1242417
#
# In Mint 17:
# Despite the bug report being marked as fixed, the situation is the same. Grub>
# to assign the "ubuntu" distributor ID when it was given "Kubuntu". That resul>
# getting EFI to work out of the box but still using "ubuntu" as far as grub-in>
# So we'll stick to "Ubuntu" for this iteration.
#
# In Mint 18:
# Some packages are still hardcoded with the "ubuntu" path.. fwupdate for insta>
# Visually, the grub boot menuentry name is set for derivatives in 10_linux,
# but underneath the EFI path remains "ubuntu" for everything to work properly.
GRUB_DISTRIBUTOR="Ubuntu"
# Re-enable OS Prober
# Since Mint 21
# https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00120.html
GRUB_DISABLE_OS_PROBER=false
Encore moins dans le deuxième :
Code : Tout sélectionner
# Work around a bug in the obsolete init-select package which broke
# grub-mkconfig when init-select was removed but not purged. This file does
# nothing and will be removed in a later release.
#
# See:
# https://bugs.debian.org/858528
# https://bugs.debian.org/863801
Re: Mise à jour de Grub (Délai)
Posté : mer. 7 févr. 2024 07:34
par tyrry
Slt,
zarbi ton truc, mais as tu essayer :
grub-customizer ?
https://doc.ubuntu-fr.org/grub-customizer
@+
Re: Mise à jour de Grub (Délai)
Posté : mer. 7 févr. 2024 09:53
par alain