Continuing the discussion from Manjaro hibernation doesn't work, LUKS SWAP partition fails to map correctly on boot. (Manjaro installer autoconfiguration, nothing custom):
It has nothing to do with hibernation or suspend. The exact same messages appears after normal / clean shutdown or restart.
I did run grub-install --target=x86_64-efi /dev/$DEV, and disabled the OS_PROBER in /etc/default/grub; ran update-grub, but no change.
I compared the configs with my daily workhorse (Manjaro-Xfce), but I canât find any differences, except apt_armor isnât set in the new minimal installation. I set it manually but again no change.
Any ideas?
Update1:
I just did a new installation in a KVM with FDE and No Swap, and the error is gone. So it has something to do with the hibernation functionality even if the reboot / restart does not involves hibernation.
Update 2:
/etc/fstab:
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=70DD-3D23 /boot/efi vfat umask=0077 0 2
/dev/mapper/luks-e5cb48a2-803e-44bc-b8a7-45f5c877a878 / ext4 defaults,noatime 0 1
/dev/mapper/luks-45305eae-dba5-4a3f-8e83-ca7016814fb5 swap swap defaults,noatime 0 0
/etc/crypttab:
# <name> <device> <password> <options>
luks-e5cb48a2-803e-44bc-b8a7-45f5c877a878 UUID=e5cb48a2-803e-44bc-b8a7-45f5c877a878 /crypto_keyfile.bin luks
luks-45305eae-dba5-4a3f-8e83-ca7016814fb5 UUID=45305eae-dba5-4a3f-8e83-ca7016814fb5 /crypto_keyfile.bin luks
/etc/default/grub:
GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_TIMEOUT_STYLE=hidden
GRUB_DISTRIBUTOR="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="quiet cryptdevice=UUID=e5cb48a2-803e-44bc-b8a7-45f5c877a878:luks-e5cb48a2-803e-44bc-b8a7-45f5c877a878 root=/dev/mapper/luks-e5cb48a2-803e-44bc-b8a7-45f5c877a878 resume=/dev/mapper/luks-45305eae-dba5-4a3f-8e83-ca7016814fb5 udev.log_priority=3"
GRUB_CMDLINE_LINUX=""
# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
GRUB_SAVEDEFAULT=true
# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y
# 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 'videoinfo'
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 this option to enable os-prober execution in the grub-mkconfig command
GRUB_DISABLE_OS_PROBER=false
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-gray/black"
GRUB_COLOR_HIGHLIGHT="green/black"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/usr/share/grub/background.png"
GRUB_THEME="/usr/share/grub/themes/manjaro/theme.txt"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
# Uncomment to ensure that the root filesystem is mounted read-only so that
# systemd-fsck can run the check automatically. We use 'fsck' by default, which
# needs 'rw' as boot parameter, to avoid delay in boot-time. 'fsck' needs to be
# removed from 'mkinitcpio.conf' to make 'systemd-fsck' work.
# See also Arch-Wiki: https://wiki.archlinux.org/index.php/Fsck#Boot_time_checking
#GRUB_ROOT_FS_RO=true
GRUB_ENABLE_CRYPTODISK=y
/etc/mkinitcpio.conf:
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run. Advanced users may wish to specify all system modules
# in this array. For instance:
# MODULES=(qxl bochs_drm virtio-gpu virtio virtio_scsi virtio_blk virtio_pci virtio_net virtio_ring)
MODULES=(qxl bochs_drm virtio-gpu virtio virtio_scsi virtio_blk virtio_pci virtio_net virtio_ring)
# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image. This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=()
# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way. This is useful for config files.
FILES="/crypto_keyfile.bin"
# HOOKS
# This is the most important setting in this file. The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
## This setup specifies all modules in the MODULES setting above.
## No raid, lvm2, or encrypted root is needed.
# HOOKS=(base)
#
## This setup will autodetect all modules for your system and should
## work as a sane default
# HOOKS=(base udev autodetect block filesystems)
#
## This setup will generate a 'full' image which supports most systems.
## No autodetection is done.
# HOOKS=(base udev block filesystems)
#
## This setup assembles a pata mdadm array with an encrypted root FS.
## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
# HOOKS=(base udev block mdadm encrypt filesystems)
#
## This setup loads an lvm2 volume group on a usb device.
# HOOKS=(base udev block lvm2 filesystems)
#
## NOTE: If you have /usr on a separate partition, you MUST include the
# usr, fsck and shutdown hooks.
HOOKS="base udev autodetect modconf block keyboard keymap consolefont encrypt openswap resume filesystems fsck"
# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"
#COMPRESSION="zstd"
# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=()
$ sudo lsblk -o name,uuid
NAME UUID
sr0
vda
ââvda1 70DD-3D23
ââvda2 e5cb48a2-803e-44bc-b8a7-45f5c877a878
â ââluks-e5cb48a2-803e-44bc-b8a7-45f5c877a878
â a4363235-6895-4818-8716-65a479812825
ââvda3 45305eae-dba5-4a3f-8e83-ca7016814fb5
ââluks-45305eae-dba5-4a3f-8e83-ca7016814fb5
cbdeca38-b73c-4a2d-b816-73a4c19239c9
$ inxi -Fxxx
System:
Host: u1-standardpcq35ich92009 Kernel: 5.15.25-1-MANJARO x86_64 bits: 64
compiler: gcc v: 11.2.0 Desktop: GNOME 41.4 tk: GTK 3.24.31 wm: gnome-shell
dm: GDM 41.3 Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Kvm System: QEMU product: Standard PC (Q35 + ICH9, 2009)
v: pc-q35-6.2 serial: N/A Chassis: type: 1 v: pc-q35-6.2 serial: N/A
Mobo: N/A model: N/A serial: N/A UEFI: EFI Development Kit II / OVMF
v: 0.0.0 date: 02/06/2015
CPU:
Info: 2x 1-core model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64
type: SMP smt: <unsupported> arch: Zen 2 rev: 1 cache:
L1: 2x 128 KiB (256 KiB) L2: 2x 512 KiB (1024 KiB) L3: 2x 16 MiB (32 MiB)
Speed (MHz): avg: 2894 min/max: N/A cores: 1: 2894 2: 2894
bogomips: 11583
Flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: Red Hat Virtio GPU driver: virtio-pci v: 1 bus-ID: 00:01.0
chip-ID: 1af4:1050 class-ID: 0300
Display: server: X.org v: 1.21.1.3 compositor: gnome-shell driver: X:
loaded: modesetting alternate: fbdev,vesa gpu: virtio_gpu display-ID: :1
screens: 1
Screen-1: 0 s-res: 1920x1025 s-size: <missing: xdpyinfo>
Monitor-1: Virtual-1 model: QEMU Monitor res: 1920x1025 hz: 75 dpi: 142
size: 344x184mm (13.5x7.2") diag: 390mm (15.4") modes: max: 1920x1025
min: 640x480
OpenGL: renderer: llvmpipe (LLVM 13.0.1 256 bits) v: 4.5 Mesa 21.3.7
direct render: Yes
Audio:
Device-1: Intel 82801I HD Audio vendor: Red Hat QEMU Virtual Machine
driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:293e
class-ID: 0403
Sound Server-1: ALSA v: k5.15.25-1-MANJARO running: yes
Sound Server-2: JACK v: 1.9.20 running: no
Sound Server-3: PulseAudio v: 15.0 running: yes
Sound Server-4: PipeWire v: 0.3.47 running: no
Network:
Device-1: Red Hat Virtio network driver: virtio-pci v: 1 pcie:
speed: 2.5 GT/s lanes: 1 port: N/A bus-ID: 01:00.0 chip-ID: 1af4:1041
class-ID: 0200
IF-ID-1: enp1s0 state: up speed: -1 duplex: unknown
mac: 52:54:00:20:9f:81
Drives:
Local Storage: total: 25 GiB used: 6.59 GiB (26.3%)
ID-1: /dev/vda model: N/A size: 25 GiB speed: <unknown> type: N/A
serial: N/A scheme: GPT
Partition:
ID-1: / size: 21.71 GiB used: 6.59 GiB (30.3%) fs: ext4 dev: /dev/dm-0
mapped: luks-e5cb48a2-803e-44bc-b8a7-45f5c877a878
ID-2: /boot/efi size: 299.4 MiB used: 440 KiB (0.1%) fs: vfat
dev: /dev/vda1
Swap:
ID-1: swap-1 type: partition size: 2.47 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/dm-1 mapped: luks-45305eae-dba5-4a3f-8e83-ca7016814fb5
Sensors:
Message: No sensor data found. Is lm-sensors configured?
Info:
Processes: 186 Uptime: 10m wakeups: 310 Memory: 3.83 GiB
used: 1.06 GiB (27.7%) Init: systemd v: 250 Compilers: gcc: 11.2.0
clang: 13.0.1 Packages: pacman: 805 Shell: Zsh (sudo) v: 5.8.1
default: Bash v: 5.1.16 running-in: gnome-terminal inxi: 3.3.13
Update 3:
I just saw that there are new versions: 21.2.5 . Iâll try with them maybe the problem is solved. To be continuedâŚ
Update 4:
Nope; Problem is not solved.