[Dev] cryptsetup-2.0.0-1 makes system unbootable.

Attic Hermit fjdksl at cock.li
Wed Dec 13 05:19:32 GMT 2017


Dear Parabola hackers.

I think there's a bug in the latest update related with cryptsetup and
linux-libre-4.14.4_gnu-1, which makes fully encrypted systems
unbootable.

My system configuration is like below:

/dev/sda1 : GRUB-BIOS
/dev/sda2 : /boot (plain)
/dev/sda3 : /     (encrypted)

The latest update of Parabola makes my system unbootable. When I booted
the system, system kept prompting that the kernel doesn't support
aes-xts-plain. So I booted into the system with the rescue USB thumb,
and tried to reinstall the kernel, linux-libre-4.14.4_gnu-1 and saw the
error like below:

[2017-12-13 13:38] [ALPM-SCRIPTLET] ==> ERROR: binary dependency `libcryptsetup.so.4' not found for `/usr/lib/systemd/systemd-udevd'
[2017-12-13 13:38] [ALPM-SCRIPTLET] ==> ERROR: binary dependency `libcryptsetup.so.4' not found for `/usr/bin/udevadm'
[2017-12-13 13:38] [ALPM-SCRIPTLET] ==> ERROR: binary dependency `libcryptsetup.so.4' not found for `/usr/bin/systemd-tmpfiles'

I thought the above was probably caused by cryptsetup-2.0.0-1 which
updated recently, so I downgraded it to cryptsetup-1.7.5-2 and
reinstalled the kernel, and successfully booted into the system.

Here's the full log message where I got the error:

[2017-12-13 13:38] [ALPM] reinstalled linux-libre (4.14.4_gnu-1)
[2017-12-13 13:38] [ALPM-SCRIPTLET] /tmp/alpm_fZaZCJ/.INSTALL: line 6: syntax error near unexpected token `}'
[2017-12-13 13:38] [ALPM-SCRIPTLET] /tmp/alpm_fZaZCJ/.INSTALL: line 6: `}'
[2017-12-13 13:38] [ALPM-SCRIPTLET] /usr/bin/bash: post_upgrade: command not found
[2017-12-13 13:38] [ALPM] transaction completed
[2017-12-13 13:38] [ALPM] running '60-linux-libre.hook'...
[2017-12-13 13:38] [ALPM] running '90-linux-libre.hook'...
[2017-12-13 13:38] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-libre.preset: 'default'
[2017-12-13 13:38] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux-libre -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-libre.img
[2017-12-13 13:38] [ALPM-SCRIPTLET] ==> Starting build: 4.14.4-gnu-1
[2017-12-13 13:38] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2017-12-13 13:38] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2017-12-13 13:38] [ALPM-SCRIPTLET] ==> ERROR: binary dependency `libcryptsetup.so.4' not found for `/usr/lib/systemd/systemd-udevd'
[2017-12-13 13:38] [ALPM-SCRIPTLET] ==> ERROR: binary dependency `libcryptsetup.so.4' not found for `/usr/bin/udevadm'
[2017-12-13 13:38] [ALPM-SCRIPTLET] ==> ERROR: binary dependency `libcryptsetup.so.4' not found for `/usr/bin/systemd-tmpfiles'
[2017-12-13 13:38] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2017-12-13 13:38] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2017-12-13 13:38] [ALPM-SCRIPTLET]   -> Running build hook: [keymap]
[2017-12-13 13:38] [ALPM-SCRIPTLET]   -> Running build hook: [consolefont]
[2017-12-13 13:38] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2017-12-13 13:38] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2017-12-13 13:38] [ALPM-SCRIPTLET]   -> Running build hook: [encrypt]
[2017-12-13 13:38] [ALPM-SCRIPTLET] ==> ERROR: module not found: `dm_crypt'
[2017-12-13 13:38] [ALPM-SCRIPTLET]   -> Running build hook: [lvm2]
[2017-12-13 13:38] [ALPM-SCRIPTLET] ==> ERROR: module not found: `dm_snapshot'
[2017-12-13 13:38] [ALPM-SCRIPTLET] ==> ERROR: module not found: `dm_cache'
[2017-12-13 13:38] [ALPM-SCRIPTLET] ==> ERROR: module not found: `dm_cache_smq'
[2017-12-13 13:38] [ALPM-SCRIPTLET] ==> ERROR: module not found: `dm_thin_pool'
[2017-12-13 13:38] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2017-12-13 13:38] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2017-12-13 13:38] [ALPM-SCRIPTLET] ==> WARNING: No modules were added to the image. This is probably not what you want.
[2017-12-13 13:38] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-libre.img
[2017-12-13 13:38] [ALPM-SCRIPTLET] ==> WARNING: errors were encountered during the build. The image may not be complete.

Here's the full log message after the downgrade:

[2017-12-13 13:43] [PACMAN] Running 'pacman -U cryptsetup-1.7.5-2-x86_64.pkg.tar.xz'
[2017-12-13 13:43] [ALPM] transaction started
[2017-12-13 13:43] [ALPM] downgraded cryptsetup (2.0.0-1 -> 1.7.5-2)
[2017-12-13 13:43] [ALPM] transaction completed
[2017-12-13 13:43] [ALPM] running '90-linux-libre.hook'...
[2017-12-13 13:43] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-libre.preset: 'default'
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux-libre -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-libre.img
[2017-12-13 13:43] [ALPM-SCRIPTLET] ==> Starting build: 4.13.11-gnu-1
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [keymap]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [consolefont]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [encrypt]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [lvm2]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2017-12-13 13:43] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2017-12-13 13:43] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-libre.img
[2017-12-13 13:43] [ALPM-SCRIPTLET] ==> Image generation successful
[2017-12-13 13:43] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-libre.preset: 'fallback'
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux-libre -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-libre-fallback.img -S autodetect
[2017-12-13 13:43] [ALPM-SCRIPTLET] ==> Starting build: 4.13.11-gnu-1
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [keymap]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [consolefont]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2017-12-13 13:43] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: isci
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [encrypt]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [lvm2]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2017-12-13 13:43] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2017-12-13 13:43] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2017-12-13 13:43] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-libre-fallback.img
[2017-12-13 13:43] [ALPM-SCRIPTLET] ==> Image generation successful
[2017-12-13 13:43] [ALPM] running 'systemd-update.hook'...

P.S. I'm not confident that this is the right ML to post a bug like
this.

-- 
Attic Hermit



More information about the Dev mailing list