Update-initramfs - parado

Após atualizar o sistema, incluindo o Kernel e Firmware, o sistema parou no “update-initramfm”… dei reboot, acessei o terminal e rodei o dpkg --configure -a e parou de novo, conforme “log” abaixo:

sudo dpkg --configure -a
[sudo] senha para elvio:             
Configurando gir1.2-nm-1.0:amd64 (1.10.6-2ubuntu1.4) ...
Configurando gir1.2-networkmanager-1.0:amd64 (1.10.6-2ubuntu1.4) ...
Configurando linux-headers-4.15.0-91-generic (4.15.0-91.92) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 4.15.0-91-generic

Kernel preparation unnecessary for this kernel.  Skipping...
applying patch buildfix_kernel_4.11.patch...patching file uvm/nvidia_uvm_lite.c

applying patch buildfix_kernel_5.0.patch...patching file Makefile
patching file conftest.sh
patching file nv-drm.c
patching file nv-time.h
patching file os-interface.c
patching file uvm/Makefile
patching file uvm/nvidia_uvm_linux.h
patching file uvm/nvidia_uvm_lite.c

applying patch buildfix_kernel_5.2.patch...patching file nv-drm.c
patching file uvm/nvidia_uvm_lite.c

applying patch use-kmem_cache_create_usercopy-on-4.16.patch...patching file nv-linux.h

applying patch buildfix_kernel_5.3.patch...patching file nv-linux.h
Hunk #1 succeeded at 884 (offset 7 lines).
Hunk #2 succeeded at 913 (offset 7 lines).


Building module:
cleaning build area...
make -j2 KERNELRELEASE=4.15.0-91-generic -k module KERNDIR=/lib/modules/4.15.0-91-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/4.15.0-91-generic/build LD=/usr/bin/ld.bfd; make -C uvm module KERNEL_UNAME=4.15.0-91-generic KBUILD_EXTMOD=/var/lib/dkms/nvidia-340/340.107/build/uvm....................
cleaning build area...

DKMS: build completed.

nvidia.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-91-generic/kernel/drivers/char/drm/

nvidia_uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-91-generic/kernel/drivers/video/

depmod........

DKMS: install completed.
   ...done.
Configurando libasan4:amd64 (7.5.0-3ubuntu1~18.04) ...
Configurando libgfortran4:amd64 (7.5.0-3ubuntu1~18.04) ...
Configurando linux-headers-generic-hwe-18.04 (5.3.0.42.99) ...
Configurando libcilkrts5:amd64 (7.5.0-3ubuntu1~18.04) ...
Configurando libubsan0:amd64 (7.5.0-3ubuntu1~18.04) ...
Configurando python3-apport (2.20.9-0ubuntu7.12) ...
Configurando network-manager-config-connectivity-ubuntu (1.10.6-2ubuntu1.4) ...
Configurando linux-modules-extra-5.3.0-42-generic (5.3.0-42.34~18.04.1) ...
Configurando cpp-7 (7.5.0-3ubuntu1~18.04) ...
Configurando linux-firmware (1.173.16) ...
update-initramfs: Generating /boot/initrd.img-5.3.0-40-generic
W: initramfs-tools configuration sets RESUME=UUID=5682e6fb-73c8-4dce-a09e-856c6341f3a9
W: but no matching swap device is available.
update-initramfs: Generating /boot/initrd.img-5.3.0-26-generic
W: initramfs-tools configuration sets RESUME=UUID=5682e6fb-73c8-4dce-a09e-856c6341f3a9
W: but no matching swap device is available.
update-initramfs: Generating /boot/initrd.img-5.0.0-37-generic
W: initramfs-tools configuration sets RESUME=UUID=5682e6fb-73c8-4dce-a09e-856c6341f3a9
W: but no matching swap device is available.
update-initramfs: Generating /boot/initrd.img-5.0.0-32-generic
W: initramfs-tools configuration sets RESUME=UUID=5682e6fb-73c8-4dce-a09e-856c6341f3a9
W: but no matching swap device is available.
update-initramfs: Generating /boot/initrd.img-4.15.0-88-generic

… alguém sabe coomo forçar a finalização disso ?

Você está usando o kernel 4.15? Se não estiver usando, remova-o.

O problema parecer ser com a partição swap, ela não está disponível ou não corresponde ao UUID do log. Roda um blkid e verifica se o UUID da partição swap é o mesmo que ta no log.

Não tive tempo de verificar antes… estava no horário de trabalho… mas, sim, pelo blkid o UUID da swap é “5766ca7-8bd7-4aab-8c61-b59daf3e9e54”, daí faz sentido.
já troquei no fstab… vou reiniciar para testar.

é o 5.3, vou remover o 4.15! Valeu!

depois de ajustar a swap no fstab, parou aqui:

elvio@PC-Elvio:~$ blkid
/dev/sda1: LABEL="Reservado pelo Sistema" UUID="00B0A0FAB0A0F776" TYPE="ntfs" PARTUUID="0c4d9594-01"
/dev/sda2: UUID="eae72424-9f71-45c4-b15c-a5c690502230" TYPE="ext4" PARTUUID="0c4d9594-02"
/dev/sda3: UUID="6c52426c-204a-4369-84dc-563acfeaae11" TYPE="ext4" PARTUUID="0c4d9594-03"
/dev/sda4: UUID="75766ca7-8bd7-4aab-8c61-b59daf3e9e54" TYPE="swap" PARTUUID="0c4d9594-04"
/dev/sdb1: LABEL="Seguranca" UUID="6AD6B4A8512C222C" TYPE="ntfs" PARTUUID="b875adcd-01"
/dev/sdb2: LABEL="Developer" UUID="06A0DA1D7AF70BBE" TYPE="ntfs" PARTUUID="b875adcd-02"
elvio@PC-Elvio:~$ sudo dpkg --configure -a
[sudo] senha para elvio:             
Configurando linux-firmware (1.173.16) ...
update-initramfs: Generating /boot/initrd.img-5.3.0-40-generic
W: initramfs-tools configuration sets RESUME=UUID=5682e6fb-73c8-4dce-a09e-856c6341f3a9
W: but no matching swap device is available.
I: The initramfs will attempt to resume from /dev/sda4
I: (UUID=75766ca7-8bd7-4aab-8c61-b59daf3e9e54)
I: Set the RESUME variable to override this.
update-initramfs: Generating /boot/initrd.img-5.3.0-26-generic
W: initramfs-tools configuration sets RESUME=UUID=5682e6fb-73c8-4dce-a09e-856c6341f3a9
W: but no matching swap device is available.
I: The initramfs will attempt to resume from /dev/sda4
I: (UUID=75766ca7-8bd7-4aab-8c61-b59daf3e9e54)
I: Set the RESUME variable to override this.
update-initramfs: Generating /boot/initrd.img-5.0.0-37-generic

Você pode tentar isso aqui para configurar o RESUME:

echo “RESUME=UUID=09e25397-4a2c-4fb0-a605-a7013eecb59c” | sudo tee /etc/initramfs-tools/conf.d/resume

Troca o UUID pelo do seu swap.
Depois atualiza o kernel:

sudo update-initramfs -u -k all

além do “sudo update-initramfs -u -k all” também removi os arquivos de “/etc/initramfs-tools/conf.d”. Depois disso, o comando “dpkg --configure -a” funcionou corretamente.
Agora, instalei outras atualizações, aparentemente, está tudo certo.
Valeu.

2 curtidas