Dear Guilhem,

On 2023-05-03 10:40, Guilhem Moulin wrote:
Control: tag -1 unreproducible moreinfo

What does `lsinitramfs /initrd.img | grep -e{crypt,lvm}` return (after
removing your hook and rebuilding the initramfs image)?  And also

1.) Initramfs hook has been removed
`mv /etc/initramfs-tools/hooks/crypttab-fix.sh /root`

2.) Initramfs has been rebuild
`update-initramfs -c -k all`

3.) Output of `lsinitramfs /initrd.img | grep -e{crypt,lvm}`

-------------------------8<----------------BEGIN------------------->8-----------
cryptroot
cryptroot/crypttab
etc/lvm
etc/lvm/archive
etc/lvm/archive/asgardfs_00032-752010180.vg
etc/lvm/archive/asgardfs_00033-423131292.vg
etc/lvm/archive/asgardfs_00034-1808867818.vg
etc/lvm/archive/asgardfs_00035-432007737.vg
etc/lvm/archive/asgardfs_00036-1768906316.vg
etc/lvm/archive/asgardfs_00037-220665657.vg
etc/lvm/archive/asgardfs_00038-1744649197.vg
etc/lvm/archive/asgardfs_00039-1539207819.vg
etc/lvm/archive/asgardfs_00040-1386491380.vg
etc/lvm/archive/asgardfs_00041-15080506.vg
etc/lvm/archive/backupvg_00000-1958666398.vg
etc/lvm/archive/backupvg_00001-2094833855.vg
etc/lvm/archive/backupvg_00002-2077817437.vg
etc/lvm/backup
etc/lvm/backup/asgardfs
etc/lvm/backup/backupvg
etc/lvm/lvm.conf
etc/lvm/lvm.conf~
etc/lvm/lvmlocal.conf
etc/lvm/profile
etc/lvm/profile/cache-mq.profile
etc/lvm/profile/cache-smq.profile
etc/lvm/profile/command_profile_template.profile
etc/lvm/profile/lvmdbusd.profile
etc/lvm/profile/metadata_profile_template.profile
etc/lvm/profile/thin-generic.profile
etc/lvm/profile/thin-performance.profile
etc/lvm/profile/vdo-small.profile
scripts/local-block/cryptroot
scripts/local-bottom/cryptgnupg-sc
scripts/local-bottom/cryptopensc
scripts/local-bottom/cryptroot
scripts/local-top/cryptopensc
scripts/local-top/cryptroot
usr/bin/cryptroot-unlock
usr/lib/cryptsetup
usr/lib/cryptsetup/askpass
usr/lib/cryptsetup/functions
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/aegis128-aesni.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/aesni-intel.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/blowfish-x86_64.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/camellia-aesni-avx-x86_64.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/camellia-aesni-avx2.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/camellia-x86_64.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/cast5-avx-x86_64.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/cast6-avx-x86_64.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/chacha-x86_64.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/crc32-pclmul.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/crc32c-intel.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/crct10dif-pclmul.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/curve25519-x86_64.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/des3_ede-x86_64.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/ghash-clmulni-intel.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/nhpoly1305-avx2.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/nhpoly1305-sse2.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/poly1305-x86_64.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/serpent-avx-x86_64.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/serpent-avx2.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/serpent-sse2-x86_64.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/sha1-ssse3.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/sha256-ssse3.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/sha512-ssse3.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/twofish-avx-x86_64.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/twofish-x86_64-3way.ko
usr/lib/modules/6.1.0-7-amd64/kernel/arch/x86/crypto/twofish-x86_64.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/adiantum.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/aegis128.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/aes_ti.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/af_alg.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/algif_aead.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/algif_hash.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/algif_rng.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/algif_skcipher.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/ansi_cprng.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/asymmetric_keys
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/asymmetric_keys/pkcs8_key_parser.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/async_tx
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/async_tx/async_memcpy.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/async_tx/async_pq.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/async_tx/async_raid6_recov.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/async_tx/async_tx.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/async_tx/async_xor.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/authenc.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/authencesn.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/blake2b_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/blowfish_common.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/blowfish_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/camellia_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/cast5_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/cast6_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/cast_common.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/ccm.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/cfb.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/chacha20poly1305.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/chacha_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/cmac.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/crc32_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/crc32c_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/crc64_rocksoft_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/crct10dif_common.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/crct10dif_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/cryptd.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/crypto_engine.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/crypto_simd.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/crypto_user.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/ctr.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/cts.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/curve25519-generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/des_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/drbg.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/ecb.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/ecc.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/ecdh_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/echainiv.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/ecrdsa_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/essiv.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/fcrypt.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/gcm.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/gf128mul.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/ghash-generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/jitterentropy_rng.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/keywrap.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/lrw.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/lz4.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/lz4hc.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/md4.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/michael_mic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/nhpoly1305.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/ofb.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/pcbc.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/pcrypt.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/poly1305_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/rmd160.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/seqiv.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/serpent_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/sha3_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/sha512_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/streebog_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/tcrypt.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/twofish_common.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/twofish_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/vmac.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/wp512.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/xcbc.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/xor.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/xts.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/xxhash_generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/crypto/zstd.ko
usr/lib/modules/6.1.0-7-amd64/kernel/drivers/md/dm-crypt.ko
usr/lib/modules/6.1.0-7-amd64/kernel/lib/crypto
usr/lib/modules/6.1.0-7-amd64/kernel/lib/crypto/libarc4.ko
usr/lib/modules/6.1.0-7-amd64/kernel/lib/crypto/libchacha.ko
usr/lib/modules/6.1.0-7-amd64/kernel/lib/crypto/libchacha20poly1305.ko
usr/lib/modules/6.1.0-7-amd64/kernel/lib/crypto/libcurve25519-generic.ko
usr/lib/modules/6.1.0-7-amd64/kernel/lib/crypto/libdes.ko
usr/lib/modules/6.1.0-7-amd64/kernel/lib/crypto/libpoly1305.ko
usr/lib/udev/rules.d/56-lvm.rules
usr/lib/udev/rules.d/69-lvm.rules
usr/lib/x86_64-linux-gnu/libcrypto.so.3
usr/lib/x86_64-linux-gnu/libcryptsetup.so.12
usr/lib/x86_64-linux-gnu/libcryptsetup.so.12.9.0
usr/lib/x86_64-linux-gnu/libgcrypt.so.20
usr/lib/x86_64-linux-gnu/libgcrypt.so.20.4.1
usr/sbin/cryptsetup
usr/sbin/lvm

-------------------------8<------------------END------------------->8-----------
        install -m0700 -d /tmp/initramfs
        unmkinitramfs /initrd.img /tmp/initramfs
        cat /tmp/initramfs/cryptroot/crypttab

5.) Output of `cat /tmp/initramfs/cryptroot/crypttab` after doing all the previous steps

-------------------------8<----------------BEGIN------------------->8-----------

cat: /tmp/initramfs/cryptroot/crypttab: No such file or directory

-------------------------8<------------------END------------------->8-----------

But I think that you have missed one of the directories here.

6.) Output of `cat /tmp/initramfs/main/cryptroot/crypttab` (please denote the extra `main` folder in the path)

-------------------------8<----------------BEGIN------------------->8-----------

1Tnvme UUID=1cb8215e-4bb9-479b-ad06-36ae1b3fc957 none luks,discard

-------------------------8<------------------END------------------->8-----------

And also

        dpkg -l | grep -e{cryptsetup,lvm}


7.) output of `dpkg -l | grep -e{cryptsetup,lvm}`

-------------------------8<----------------BEGIN------------------->8-----------

ii  cryptsetup 2:2.6.1-4~deb12u1                      amd64        disk encryption support - startup scripts ii  cryptsetup-bin 2:2.6.1-4~deb12u1                      amd64        disk encryption support - command line tools ii  cryptsetup-initramfs 2:2.6.1-4~deb12u1                      all          disk encryption support - initramfs integration ii  libcryptsetup12:amd64 2:2.6.1-4~deb12u1                      amd64        disk encryption support - shared library ii  libllvm14:amd64 1:14.0.6-12                            amd64        Modular compiler and toolchain technologies, runtime library ii  libllvm15:amd64 1:15.0.6-4+b1                          amd64        Modular compiler and toolchain technologies, runtime library ii  liblvm2cmd2.03:amd64 2.03.16-2                              amd64        LVM2 command library ii  lvm2 2.03.16-2                              amd64        Linux Logical Volume Manager

-------------------------8<------------------END------------------->8-----------

Please do let me know if you need any further information!

Regards,
János Pásztor

Reply via email to