Empty /etc/openswap.conf: Manjaro-Xfce/Gnome-21.2.4/5-minimal-220301-linux515.iso: Default Install+FDE+NoHibernation on EFI baremetal or KVM: Boot device does not exists

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? :woozy_face:

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.

Below the error message and the info of 21.2.5 Gnome minimal installation:
Error Messages:


/etc/fstab:

# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=DB7C-8E9D                            /boot/efi      vfat    umask=0077 0 2
/dev/mapper/luks-9380def9-db67-404c-99f2-3583072f3b58 /              ext4    defaults,noatime 0 1
/dev/mapper/luks-49c1c4bd-924a-4d1a-ac71-20374181d8de swap           swap    defaults,noatime 0 0

/etc/crypttab:

# <name>               <device>                         <password> <options>
luks-9380def9-db67-404c-99f2-3583072f3b58 UUID=9380def9-db67-404c-99f2-3583072f3b58     /crypto_keyfile.bin luks
luks-49c1c4bd-924a-4d1a-ac71-20374181d8de UUID=49c1c4bd-924a-4d1a-ac71-20374181d8de     /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=9380def9-db67-404c-99f2-3583072f3b58:luks-9380def9-db67-404c-99f2-3583072f3b58 root=/dev/mapper/luks-9380def9-db67-404c-99f2-3583072f3b58 resume=/dev/mapper/luks-49c1c4bd-924a-4d1a-ac71-20374181d8de 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

/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=()

lsblk results:

$ sudo lsblk -f 
NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sr0                                                                         
vda                                                                         
├─vda1
│    vfat   FAT32 NO_LABEL
│                       DB7C-8E9D                               299M     0% /boot/efi
├─vda2
│    crypto 1           9380def9-db67-404c-99f2-3583072f3b58                
│ └─luks-9380def9-db67-404c-99f2-3583072f3b58
│    ext4   1.0         543514ab-09c1-4b47-88de-2d8c711d5cb3     14G    30% /
└─vda3
     crypto 1           49c1c4bd-924a-4d1a-ac71-20374181d8de                
  └─luks-49c1c4bd-924a-4d1a-ac71-20374181d8de
     swap   1     swap  e0f0d68e-584a-4461-b390-705a85847b36                [SWAP]
$ sudo lsblk -o name,uuid 

NAME                                          UUID
sr0                                           
vda                                           
├─vda1                                        DB7C-8E9D
├─vda2                                        9380def9-db67-404c-99f2-3583072f3b58
│ └─luks-9380def9-db67-404c-99f2-3583072f3b58 543514ab-09c1-4b47-88de-2d8c711d5cb3
└─vda3                                        49c1c4bd-924a-4d1a-ac71-20374181d8de
  └─luks-49c1c4bd-924a-4d1a-ac71-20374181d8de e0f0d68e-584a-4461-b390-705a85847b36

inxi results:

$ sudo inxi -Fxxxz 
System:
  Kernel: 5.16.14-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.2.0
    Desktop: GNOME 41.4 tk: GTK 3.24.33 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.16.14-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.48 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: <filter>
Drives:
  Local Storage: total: 25 GiB used: 6.61 GiB (26.4%)
  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.61 GiB (30.4%) fs: ext4 dev: /dev/dm-0
    mapped: luks-9380def9-db67-404c-99f2-3583072f3b58
  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-49c1c4bd-924a-4d1a-ac71-20374181d8de
Sensors:
  Message: No sensor data found. Is lm-sensors configured?
Info:
  Processes: 181 Uptime: 13m wakeups: 372 Memory: 3.83 GiB
  used: 1.01 GiB (26.3%) Init: systemd v: 250 Compilers: gcc: 11.2.0
  clang: 13.0.1 Packages: pacman: 808 Shell: Zsh (sudo) v: 5.8.1
  default: Bash v: 5.1.16 running-in: gnome-terminal inxi: 3.3.13

Got it! :grinning:

The problem was that the /etc/openswap.conf file is empty and hence the encrypted swap partition can’t be found.

It should look similar to this:

$ cat /etc/openswap.conf
## cryptsetup open $swap_device $crypt_swap_name
# cryptsetup open $swap_device $crypt_swap_name
## get uuid using e.g. lsblk -f
swap_device=/dev/disk/by-uuid/49c1c4bd-924a-4d1a-ac71-20374181d8de
crypt_swap_name=luks-49c1c4bd-924a-4d1a-ac71-20374181d8de

## one can optionally provide a keyfile device and path on this device
## to the keyfile
keyfile_device=/dev/mapper/luks-9380def9-db67-404c-99f2-3583072f3b58
keyfile_filename=crypto_keyfile.bin

## additional arguments are given to mount for keyfile_device
## has to start with --options (if so desired)
#keyfile_device_mount_options="--options=subvol=__active/__"

## additional arguments are given to cryptsetup
## --allow-discards options is desired in case swap is on SSD partition
cryptsetup_options="--type luks"

Note: The keyfile_device is the root device ( / ).

Hi @Fabby , I couldn’t find how to inform the development team. I think they should be informed, because this bug is in the ISOs version 21.2.4 and 21.2.5 minimal and effects every boot not only resume.

3 Likes

No idea how that happened, its not empty in the package:

Hmm, but it’s empty after installation in both Xfce and Gnome minimal flavor. I took /etc/openswap.conf as template from Manjaro Xfce installation (my workhorse installed a couple of years ago).

Hi Yochanan,
to me it looks like the installer code, which creates openswap.conf based on the actual installation, is to blame. Where is that coded?

Look at the install file and hook in the main directory:

That script expects a configured openswap.conf. BTW I just tested with full Manjaro Gnome version. It’s the same there, the difference is that a user won’t see it because the Linux cmdline contains “quite” and “splash”. Back to square zero…

Now I think is a problem with logic in Calamares config screen. There are possible options: “NoSwap”, “With Hibernation”, and “NoHibernation”. I assume it’s there that parameter are set for the post inst. scripts. Just an idea.

I have the same error, but your solution isn’t working for me, or I am too dumb to adapt it for me.

Thanks for your thoughts on that

My /etc/openswap.conf:

## cryptsetup open $swap_device $crypt_swap_name
# cryptsetup open $swap_device $crypt_swap_name
## get uuid using e.g. lsblk -f
swap_device=/dev/disk/by-uuid/7eb458c5-e8be-4c7c-9d25-df4aa4f65643
crypt_swap_name=luks-7eb458c5-e8be-4c7c-9d25-df4aa4f65643

## one can optionally provide a keyfile device and path on this device
## to the keyfile
keyfile_device=/dev/mapper/luks-eb74cab4-8dc0-49b2-8882-e7c5f1b8955e
keyfile_filename=crypto_keyfile.bin

## additional arguments are given to mount for keyfile_device
## has to start with --options (if so desired)
#keyfile_device_mount_options="--options=subvol=__active/__"

## additional arguments are given to cryptsetup
## --allow-discards options is desired in case swap is on SSD partition
cryptsetup_options="--type luks"

lsblk -l

NAME                        MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
sda                           8:0    0 119,2G  0 disk  
sda1                          8:1    0 111,4G  0 part  
sda2                          8:2    0   7,8G  0 part  
sr0                          11:0    1  1024M  0 rom   
luks-eb74cab4-8dc0-49b2-8882-e7c5f1b8955e
                            254:0    0 111,4G  0 crypt /
luks-7eb458c5-e8be-4c7c-9d25-df4aa4f65643
                            254:1    0   7,8G  0 crypt [SWAP]

Hi webwalker,

did you run sudo mkinitcpio -P too?

1 Like

Not until now, many thanks it’s solved now =)
@Devs: I experienced this with the xfce image from 01.04.2022

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.