[GRUB2] Aucun timeout

Questions et astuces concernant l'installation et la configuration d'archlinux
Jeoffrey54
Hankyu
Messages : 36
Inscription : mer. 11 août 2010, 00:26

[GRUB2] Aucun timeout

Message par Jeoffrey54 »

Hello,

J'ai récemment installé Archlinux sur mon Zenbook prime (Uefi Boot ><). Seulement, au niveau du GRUB, je n'ai aucun timeout.. Obligé d'appuyer sur Entrée pour valider...

Voici quelques fichiers, s'ils peuvent vous mettre sur la piste :

/etc/default/grub

Code : Tout sélectionner

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=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=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter 
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx" 
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper 
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

#GRUB_SAVEDEFAULT="true"
Mon /boot/grub/grub.cfg :

Code : Tout sélectionner

if [ "${grub_platform}" == "efi" ]; then
    set _UEFI_ARCH="${grub_cpu}"
    
    if [ "${grub_cpu}" == "x86_64" ]; then
        set _SPEC_UEFI_ARCH="x64"
    fi
    
    if [ "${grub_cpu}" == "i386" ]; then
        set _SPEC_UEFI_ARCH="ia32"
    fi
fi


insmod part_gpt
insmod part_msdos

# Include fat fs module - required for uefi systems.
insmod fat

insmod ext2
insmod ext2
insmod ext2

insmod search_fs_file
insmod search_fs_uuid
insmod search_label

insmod linux
insmod chain

set pager="1"
# set debug="all"

set locale_dir="${prefix}/locale"


if [ -e "${prefix}/${grub_cpu}-${grub_platform}/all_video.mod" ]; then
    insmod all_video
else
    if [ "${grub_platform}" == "efi" ]; then
        insmod efi_gop
        insmod efi_uga
    fi
    
    if [ "${grub_platform}" == "pc" ]; then
        insmod vbe
        insmod vga
    fi
    
    insmod video_bochs
    insmod video_cirrus
fi

insmod font

search --fs-uuid --no-floppy --set=usr_part --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3  3dbb419b-1690-48dd-82ad-263bbd970727
search --fs-uuid --no-floppy --set=root_part --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3  3dbb419b-1690-48dd-82ad-263bbd970727

if [ -e "(${usr_part})/share/grub/unicode.pf2" ]; then
    set _fontfile="(${usr_part})/share/grub/unicode.pf2"
else
    if [ -e "(${root_part})/usr/share/grub/unicode.pf2" ]; then
        set _fontfile="(${root_part})/usr/share/grub/unicode.pf2"
    else
        if [ -e "${prefix}/fonts/unicode.pf2" ]; then
            set _fontfile="${prefix}/fonts/unicode.pf2"
        fi
    fi
fi

if loadfont "${_fontfile}" ; then
    insmod gfxterm
    set gfxmode="auto"
    
    terminal_input console
    terminal_output gfxterm
fi


# DEVICE DETAILS: /dev/sda1 PARTUUID=834b09f6-bc7a-4c44-beb2-47dd6b4ddd84 PARTLABEL= UUID=d90a88f1-e83a-490c-8105-9bd3ce4fa09e LABEL=home
# DEVICE DETAILS: /dev/sdb1 PARTUUID=962a147e-d71b-4b59-a7e9-c96483a8025f PARTLABEL= UUID=1B28-CD02 LABEL=ESP
# DEVICE DETAILS: /dev/sdb2 PARTUUID=279f2783-2340-48e6-8c3f-aec17ffbe25b PARTLABEL=Linux filesystem UUID=d7ded2c3-493f-4065-b3bd-eed30284b261 LABEL=boot
# DEVICE DETAILS: /dev/sdb3 PARTUUID=63b978e4-769f-4c62-b2bc-c54869e44a83 PARTLABEL=Linux filesystem UUID=3dbb419b-1690-48dd-82ad-263bbd970727 LABEL=system


# (0) Arch Linux
menuentry "Arch Linux" {
    set gfxpayload="keep"
    set root=(hd1,2)
    linux /vmlinuz-linux root=/dev/sdb3 rootflags=,relatime,data=ordered rootfstype=ext4 ro
    initrd /initramfs-linux.img
}


# (1) Arch Linux Fallback
menuentry "Arch Linux Fallback" {
    set gfxpayload="keep"
    set root=(hd1,2)
    linux /vmlinuz-linux root=/dev/sdb3 rootflags=,relatime,data=ordered rootfstype=ext4 ro
    initrd /initramfs-linux-fallback.img
}


if [ "${grub_platform}" == "efi" ]; then
    
    ## UEFI Shell 2.0
    ## Will work only in grub(2) uefi
    #menuentry "UEFI ${_UEFI_ARCH} Shell 2.0 - For Spec. Ver. >=2.3 systems" {
    #    search --fs-uuid --no-floppy --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1  4D5A-873C
    #    chainloader /efi/tools/shell${_SPEC_UEFI_ARCH}.efi
    #}
    
    ## UEFI Shell 1.0
    ## Will work only in grub(2) uefi
    #menuentry "UEFI ${_UEFI_ARCH} Shell 1.0 - For Spec. Ver. <2.3 systems" {
    #    search --fs-uuid --no-floppy --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1  4D5A-873C
    #    chainloader /efi/tools/shell${_SPEC_UEFI_ARCH}_old.efi
    #}
    
fi


if [ "${grub_platform}" == "efi" ]; then
    
    ## Windows x86_64 UEFI
    ## Will work only in grub(2) uefi x86_64
    #menuentry \"Microsoft Windows x86_64 UEFI-GPT\" {
    #    insmod part_gpt
    #    insmod fat
    #    insmod search_fs_uuid
    #    insmod chain
    #    search --fs-uuid --no-floppy --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1  4D5A-873C
    #    chainloader /efi/Microsoft/Boot/bootmgfw.efi
    #}
    
fi


if [ "${grub_platform}" == "pc" ]; then
    
    ## Windows BIOS
    ## Will work only in grub(2) bios
    #menuentry \"Microsoft Windows 7 BIOS-MBR\" {
    #    insmod part_msdos
    #    insmod ntfs
    #    insmod search_fs_uuid
    #    insmod ntldr
    #    search --fs-uuid --no-floppy --set=root 69B235F6749E84CE
    #    ntldr /bootmgr
    #}
    
fi
Bonne journée :).
Jeoffrey :) .
Avatar de l’utilisateur
tuxce
Maître du Kyudo
Messages : 6677
Inscription : mer. 12 sept. 2007, 16:03

Re: [GRUB2] Aucun timeout

Message par tuxce »

Salut, comment tu as construit grub.cfg ?
Il n'y a pas le 1er bloc :

Code : Tout sélectionner

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
Jeoffrey54
Hankyu
Messages : 36
Inscription : mer. 11 août 2010, 00:26

Re: [GRUB2] Aucun timeout

Message par Jeoffrey54 »

De mémoire, je ne sais plus, mais il me semblait avoir fait un grub-mkconfig...
Jeoffrey :) .
Jeoffrey54
Hankyu
Messages : 36
Inscription : mer. 11 août 2010, 00:26

Re: [GRUB2] Aucun timeout

Message par Jeoffrey54 »

Up...
Jeoffrey :) .
Avatar de l’utilisateur
tuxce
Maître du Kyudo
Messages : 6677
Inscription : mer. 12 sept. 2007, 16:03

Re: [GRUB2] Aucun timeout

Message par tuxce »

Si tu veux utiliser /etc/default/grub, il faut utiliser grub-mkconfig. Or, d'après ton grub.cfg, ce n'est pas le cas.
Répondre