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 / 1528776
Accepted
Nikolaj Hansen
Nikolaj Hansen
Asked: 2024-10-02 21:21:01 +0800 CST2024-10-02 21:21:01 +0800 CST 2024-10-02 21:21:01 +0800 CST

Atualização ausente da lista de inicialização do kernel GRUB

  • 772

Por algum motivo, o GRUB não atualiza a lista de kernels disponíveis após uma atualização de rotina

Sourcing file `/etc/default/grub'
Generating grub configuration file ...
grub-probe: error: unknown filesystem.
Found linux image: vmlinuz-6.8.0-44-generic in rpool/ROOT/ubuntu_9jipvg
Found initrd image: initrd.img-6.8.0-44-generic in rpool/ROOT/ubuntu_9jipvg
Found linux image: vmlinuz-6.8.0-41-generic in rpool/ROOT/ubuntu_9jipvg
Found initrd image: initrd.img-6.8.0-41-generic in rpool/ROOT/ubuntu_9jipvg
/usr/sbin/grub-probe: error: unknown filesystem.
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

Este é o conteúdo da pasta de inicialização:

$> ls -lah /boot
total 185M
drwxr-xr-x  4 root root   15 Oct  2 14:56 .
drwxr-xr-x 22 root root   26 Apr 27 20:04 ..
-rw-r--r--  1 root root 281K Oct  2 13:23 config-6.8.0-44-generic
-rw-r--r--  1 root root 281K Aug 30 10:32 config-6.8.0-45-generic
drwxr-xr-x  2 root root    2 Sep 11 02:18 efi
drwxr-xr-x  2 root root    4 Oct  2 14:57 grub
lrwxrwxrwx  1 root root   27 Oct  2 14:50 initrd.img -> initrd.img-6.8.0-45-generic
-rw-r--r--  1 root root  77M Oct  2 13:48 initrd.img-6.8.0-44-generic
-rw-r--r--  1 root root  77M Oct  2 14:50 initrd.img-6.8.0-45-generic
lrwxrwxrwx  1 root root   27 Oct  2 14:56 initrd.img.old -> initrd.img-6.8.0-44-generic
-rw-------  1 root root 8,7M Aug 30 10:32 System.map-6.8.0-45-generic
lrwxrwxrwx  1 root root   24 Oct  2 14:50 vmlinuz -> vmlinuz-6.8.0-45-generic
-rw-------  1 root root  15M Aug 13 12:22 vmlinuz-6.8.0-44-generic
-rw-------  1 root root  15M Aug 30 11:02 vmlinuz-6.8.0-45-generic
lrwxrwxrwx  1 root root   24 Oct  2 14:56 vmlinuz.old -> vmlinuz-6.8.0-44-generic

Eu purguei completamente a versão 45 e a reinstalei. Não consigo ver nenhum erro e nem o apt.

Quando eu reiniciar, vou acabar no modo de emergência e terei que voltar manualmente para a versão 44 do kernel via

update-initramfs -u -k 6.8.0-44-generic

Então o sistema inicializa conforme o esperado, mas no kernel antigo.

O que está acontecendo com o grub?

Bug relatado no pacote grub-amd64-efi

https://bugs.launchpad.net/ubuntu/+source/grub2-unsigned/+bug/2084584

boot
  • 1 1 respostas
  • 48 Views

1 respostas

  • Voted
  1. Best Answer
    Nikolaj Hansen
    2024-10-16T04:44:47+08:002024-10-16T04:44:47+08:00

    Acho que resolvi isso. Você consegue executar um update-grub mesmo que seus pools não estejam importados corretamente para o zfs.

    Notei que a lista parecia com esta:

    $> zpool list
    NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
    rpool 1.84T 141G 1.71T - - 1% 7% 1.00x ONLINE -
    

    Após uma importação do bpool.

    $> sudo zpool import bpool.
    

    Agora parece que

    $> zpool list
    NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
    bpool 1.88G 285M 1.60G - - 0% 14% 1.00x ONLINE -
    rpool 1.84T 141G 1.71T - - 1% 7% 1.00x ONLINE -
    

    E os scripts do grub mais uma vez começam a se comportar. Uma reinstalação completa do kernel *47 mais recente agora atualiza corretamente a lista de seleção de boot e me permite inicializar no kernel correto.

    $> sudo update-grub
    Sourcing file `/etc/default/grub'
    Generating grub configuration file ...
    Found linux image: vmlinuz-6.8.0-47-generic in rpool/ROOT/ubuntu_9jipvg
    Found initrd image: initrd.img-6.8.0-47-generic in rpool/ROOT/ubuntu_9jipvg
    Found linux image: vmlinuz-6.8.0-44-generic in rpool/ROOT/ubuntu_9jipvg
    Found initrd image: initrd.img-6.8.0-44-generic in rpool/ROOT/ubuntu_9jipvg
    Found linux image: vmlinuz-6.8.0-41-generic in rpool/ROOT/ubuntu_9jipvg
    Found initrd image: initrd.img-6.8.0-41-generic in rpool/ROOT/ubuntu_9jipvg
    Found memtest86+ 64bit EFI image: /BOOT/ubuntu_9jipvg@/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
    

    Para refletir

    $> ls -lah /boot
    total 279M
    drwxr-xr-x  4 root root   23 Oct 15 22:12 .
    drwxr-xr-x 22 root root   26 Apr 27 20:04 ..
    -rw-r--r--  1 root root 281K Aug  2 16:15 config-6.8.0-41-generic
    -rw-r--r--  1 root root 281K Aug 13 12:20 config-6.8.0-44-generic
    -rw-r--r--  1 root root 281K Oct 15 22:02 config-6.8.0-47-generic
    drwxr-xr-x  4 root root 4,0K Jan  1  1970 efi
    drwxr-xr-x  5 root root    8 Oct 15 22:33 grub
    lrwxrwxrwx  1 root root   27 Sep 10 23:22 initrd.img -> initrd.img-6.8.0-44-generic
    -rw-r--r--  1 root root  77M Sep 10 23:22 initrd.img-6.8.0-41-generic
    -rw-r--r--  1 root root  77M Sep 11 01:32 initrd.img-6.8.0-44-generic
    -rw-r--r--  1 root root  77M Oct 15 22:12 initrd.img-6.8.0-47-generic
    lrwxrwxrwx  1 root root   27 Sep 10 23:22 initrd.img.old -> initrd.img-6.8.0-41-generic
    -rw-r--r--  1 root root 140K Apr  8  2024 memtest86+ia32.bin
    -rw-r--r--  1 root root 141K Apr  8  2024 memtest86+ia32.efi
    -rw-r--r--  1 root root 145K Apr  8  2024 memtest86+x64.bin
    -rw-r--r--  1 root root 146K Apr  8  2024 memtest86+x64.efi
    -rw-------  1 root root 8,7M Aug  2 16:15 System.map-6.8.0-41-generic
    -rw-------  1 root root 8,7M Aug 13 12:20 System.map-6.8.0-44-generic
    lrwxrwxrwx  1 root root   24 Sep 10 23:22 vmlinuz -> vmlinuz-6.8.0-44-generic
    -rw-------  1 root root  15M Aug  2 16:39 vmlinuz-6.8.0-41-generic
    -rw-------  1 root root  15M Aug 13 12:22 vmlinuz-6.8.0-44-generic
    -rw-------  1 root root  15M Sep 27 20:47 vmlinuz-6.8.0-47-generic
    lrwxrwxrwx  1 root root   24 Sep 10 23:22 vmlinuz.old -> vmlinuz-6.8.0-41-generic
    

    Ainda vejo isso como um bug nos scripts do grub.

    Se o bpool não for importado corretamente, os scripts devem tentar fazer isso ou - talvez ainda melhor - simplesmente sair com um erro descritivo.

    Além disso, quando o executável grub-probe apresentar um erro, certifique-se de que ele imprima exatamente onde (em qual dispositivo) a sonda com falha estava sendo executada.

    Atualizei o bug com o canônico para refletir isso.

    • 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