AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / ubuntu / Perguntas / 1512346
Accepted
Hannu
Hannu
Asked: 2024-05-01 01:02:18 +0800 CST2024-05-01 01:02:18 +0800 CST 2024-05-01 01:02:18 +0800 CST

GRUB_TIMEOUT=3 # Ignorado?

  • 772

Recém-instalado Ubuntu 24.04, estou adaptando-o ao meu gosto...

Uma coisa é atrasar minimamente o menu grub, mas sempre mostrá-lo.

Espero que as informações abaixo possam dizer o que pode estar errado,
pois isso deve definir um atraso no menu grub em 3 segundos, mas isso é aparentemente ignorado.
O atraso real mostra uma contagem regressiva de 30 segundos - o que acredito ser algum tipo de padrão.

$ . /etc/os-release ; echo $PRETTY_NAME
Ubuntu 24.04 LTS

$ grep '^GRUB_' /etc/default/grub
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=3
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"
GRUB_CMDLINE_LINUX=""

$ sudo update-grub2  # or just "sudo update-grub"
[sudo] password for hannu: 
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: vmlinuz-6.8.0-31-generic in rpool/ROOT/ubuntu_xxxxxx
Found initrd image: initrd.img-6.8.0-31-generic in rpool/ROOT/ubuntu_xxxxxx
Found memtest86+ 64bit EFI image: /BOOT/ubuntu_xxxxxx@/memtest86+x64.efi
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done

$ reboot
boot
  • 1 1 respostas
  • 88 Views

1 respostas

  • Voted
  1. Best Answer
    Hannu
    2024-05-01T21:46:59+08:002024-05-01T21:46:59+08:00

    Consegui que isso funcionasse com a ajuda do que @mpboden apontou;
    ( https://superuser.com/a/971719/1834793 ) - para contar:

    $ sudo nano /etc/default/grub
    # edit the line at GRUB_TIMEOUT to be as shown, and add the following line
    GRUB_TIMEOUT=3
    GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT
    

    Este estava "oculto" antes (acima), pode ser necessário que seja "menu"

    GRUB_TIMEOUT_STYLE=menu
    

    salve e, em seguida, observe que:

    $ sudo ls -l `which update-grub2`
    lrwxrwxrwx 1 root root 11 apr  4 12:12 /usr/sbin/update-grub2 -> update-grub
    

    então um dos seguintes:

    $ sudo update-grub2
    $ sudo update-grub
    

    ... tem o mesmo efeito, ativando a mudança.
    (Reconstruindo o grub.cfg em /boot/grub )

    ... tudo isso faz com que o menu seja mostrado por três segundos
    e a tela inicial não apareça.
    (Este último considero bom, pois a tela inicial continuará a ‘girar’ para sempre – mesmo que haja um acidente na inicialização que a pause ou interrompa)

    • 1

relate perguntas

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Existe um comando para listar todos os usuários? Também para adicionar, excluir, modificar usuários, no terminal?

    • 9 respostas
  • Marko Smith

    Como excluir um diretório não vazio no Terminal?

    • 4 respostas
  • Marko Smith

    Como descompactar um arquivo zip do Terminal?

    • 9 respostas
  • Marko Smith

    Como instalo um arquivo .deb por meio da linha de comando?

    • 11 respostas
  • Marko Smith

    Como instalo um arquivo .tar.gz (ou .tar.bz2)?

    • 14 respostas
  • Marko Smith

    Como listar todos os pacotes instalados

    • 24 respostas
  • Martin Hope
    Flimm Como posso usar o docker sem sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp Como faço para salvar a saída do terminal em um arquivo? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd Como descompactar um arquivo zip do Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    TheXed Como instalo um arquivo .deb por meio da linha de comando? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan Como listar todos os pacotes instalados 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    David Barry Como determino o tamanho total de um diretório (pasta) na linha de comando? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "Os seguintes pacotes foram retidos:" Por que e como resolvo isso? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford Como os PPAs podem ser removidos? 2010-07-30 01:09:42 +0800 CST

Hot tag

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve