Page MenuHomePureOS Tracker

Installing btrfs-progs breaks disk decryption using LibremKey
Closed, DuplicatePublic

Description

On a Librem14 using PureOS Byzantium, PureBoot and a LibremKey to decrypt the LUKS root volume installing btrfs-progs breaks the disk decryption using the LibremKey.

https://forums.puri.sm/t/amber-byzantium-upgrade-libremkey/14602/8?u=chrichri

$ apt-cache show btrfs-progs
Package: btrfs-progs
Version: 5.10.1-2
Installed-Size: 3959
Maintainer: Adam Borowski <kilobyte@angband.pl>
Architecture: amd64
Depends: libblkid1 (>= 2.17.2), libc6 (>= 2.8), libcom-err2 (>= 1.43.9), libext2fs2 (>= 1.42), liblzo2-2 (>= 2.02), libmount1 (>= 2.24.2), libuuid1 (>= 2.16), libzstd1 (>= 1.4.0), zlib1g (>= 1:1.2.0), libgcc-s1 (>> 10-20200211)
Suggests: duperemove
Breaks: btrbk (<= 0.25.0), initramfs-tools (<< 0.137~),

btrfs-progs breaks initramfs-tools << 0.137.

Looking at the available packages in Bullseye and Byzantium one finds:

$ apt policy initramfs-tools
initramfs-tools:
  Installiert:           0.140
  Installationskandidat: 0.140
  Versionstabelle:
 *** 0.140 100
          2 http://ftp.gwdg.de/debian bullseye/main amd64 Packages
          2 http://ftp.gwdg.de/debian bullseye/main armhf Packages
          2 http://ftp.gwdg.de/debian bullseye/main arm64 Packages
          2 http://ftp.gwdg.de/debian bullseye/main i386 Packages
        100 /var/lib/dpkg/status
     0.132pureos1 989
        989 https://repo.puri.sm/pureos byzantium/main amd64 Packages
        989 https://repo.pureos.net/pureos byzantium/main amd64 Packages

In Byzantium there is only initramfs-tools 0.132 which would be broken by btrfs-progs.

This is resolved by apt by de-installing initramfs-tools 0.132 (because it would be broken by btrfs-progs) and installing the alternate package dracut, which also provides linux-initramfs-tools to fullfill the dependencies of the rest of the system.

$ apt-cache show dracut
Package: dracut
Version: 051-1
Installed-Size: 26
Maintainer: Thomas Lange <lange@debian.org>
Architecture: all
Provides: linux-initramfs-tool

But an initrd build with dracut does not contain the necessary components to decrypt a disk by using the LibremKey.

Event Timeline

ChriChri triaged this task as Unbreak Now! priority.Sun, Oct 31, 15:09
ChriChri created this task.

@ChriChri Just for some extra context:

IRCC You upgraded your PureOS install from PureOS Amber to Byzantium on another device before moving the storage unit to the L14 correct.

Asking that because it might have been issues with btrfs-progs in the transition.