Skip to content

Native ZFS encryption support (Cryptrebooting fails with "No such file or directory @ dir_chdir") #10

@martinhoefling

Description

@martinhoefling

Trying to cryptreboot fails with the following error:

Extracting initramfs... To speed things up, future versions will employ cache.
Running (echo lz4 \"-t\"; strace -f --trace=execve -z -qq --signal=\!all unmkinitramfs /boot/initrd.img-6.8.12-10-pve /tmp/d20250503-1661553-u8qwpo) 2>&1 | grep --line-buffered lz4
        lz4 "-t"
Finished in 12.978 seconds with exit status 0 (successful)
Running mount -t ramfs -o mode\=700 none /tmp/d20250503-1661553-xgpdqm
Finished in 0.005 seconds with exit status 0 (successful)
Running umount /tmp/d20250503-1661553-xgpdqm
Finished in 0.004 seconds with exit status 0 (successful)
/var/lib/gems/3.1.0/gems/crypt_reboot-0.3.1/lib/crypt_reboot/initramfs/archiver.rb:10:in `chdir': No such file or directory @ dir_chdir - /tmp/d20250503-1661553-xgpdqm/files (Errno::ENOENT)
        from /var/lib/gems/3.1.0/gems/crypt_reboot-0.3.1/lib/crypt_reboot/initramfs/archiver.rb:10:in `call'
        from /var/lib/gems/3.1.0/gems/crypt_reboot-0.3.1/lib/crypt_reboot/initramfs/patcher.rb:14:in `block in call'
        from /var/lib/gems/3.1.0/gems/crypt_reboot-0.3.1/lib/crypt_reboot/safe_temp/directory.rb:13:in `block (2 levels) in call'
        from /var/lib/gems/3.1.0/gems/crypt_reboot-0.3.1/lib/crypt_reboot/safe_temp/mounter.rb:17:in `run'
        from /var/lib/gems/3.1.0/gems/crypt_reboot-0.3.1/lib/crypt_reboot/safe_temp/mounter.rb:11:in `call'
        from /var/lib/gems/3.1.0/gems/crypt_reboot-0.3.1/lib/crypt_reboot/safe_temp/directory.rb:12:in `block in call'
        from /usr/lib/ruby/3.1.0/tmpdir.rb:96:in `mktmpdir'
        from /var/lib/gems/3.1.0/gems/crypt_reboot-0.3.1/lib/crypt_reboot/safe_temp/directory.rb:11:in `call'
        from /var/lib/gems/3.1.0/gems/crypt_reboot-0.3.1/lib/crypt_reboot/safe_temp/directory.rb:11:in `call'
        from /var/lib/gems/3.1.0/gems/crypt_reboot-0.3.1/lib/crypt_reboot/initramfs/patcher.rb:11:in `call'
        from /var/lib/gems/3.1.0/gems/crypt_reboot-0.3.1/lib/crypt_reboot/patched_initramfs_generator.rb:8:in `call'
        from /var/lib/gems/3.1.0/gems/crypt_reboot-0.3.1/lib/crypt_reboot/kexec_patching_loader.rb:12:in `call'
        from /var/lib/gems/3.1.0/gems/crypt_reboot-0.3.1/lib/crypt_reboot/cli/params_parsing_executor.rb:25:in `configure_and_exec'
        from /var/lib/gems/3.1.0/gems/crypt_reboot-0.3.1/lib/crypt_reboot/cli/params_parsing_executor.rb:9:in `call'
        from /var/lib/gems/3.1.0/gems/crypt_reboot-0.3.1/exe/cryptreboot:8:in `<top (required)>'
        from /usr/local/bin/cryptreboot:25:in `load'
        from /usr/local/bin/cryptreboot:25:in `<main>'

tmp is mounted

rpool/var/tmp on /var/tmp type zfs (rw,relatime,xattr,posixacl,casesensitive)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,size=65625572k,nr_inodes=409600,inode64)

various kernel (pve / proxmox) are present:

config-5.13.19-6-pve  efi                       initrd.img-6.8.12-10-pve  System.map-5.13.19-6-pve  vmlinuz-5.13.19-6-pve
config-5.15.30-1-pve  efi2                      initrd.img-6.8.12-4-pve   System.map-5.15.30-1-pve  vmlinuz-5.15.30-1-pve
config-6.8.12-10-pve  grub                      initrd.img-6.8.12-9-pve   System.map-6.8.12-10-pve  vmlinuz-6.8.12-10-pve
config-6.8.12-4-pve   initrd.img-5.13.19-6-pve  lost+found                System.map-6.8.12-4-pve   vmlinuz-6.8.12-4-pve
config-6.8.12-9-pve   initrd.img-5.15.30-1-pve  pve                       System.map-6.8.12-9-pve   vmlinuz-6.8.12-9-pve

System is a fully updated bookworm / proxmox.

Let me know if should provide further information to debug the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions