initoverlayfs icon indicating copy to clipboard operation
initoverlayfs copied to clipboard

wrong options for zstd?

Open Sjoerd001 opened this issue 6 months ago • 1 comments

Around line 74 $CAT is defined as zstd to extract an initrd image, but should that not be zstdcat ?

 73   elif $skipcpio $file_path | zstd -q -c -t - >/dev/null 2>&1; then
 74     CAT="zstdcat" 
 75   elif $skipcpio $file_path | xzcat -t - >/dev/null 2>&1; then

Changing it on my system (Fedora 42) the innitoverlayfs image is created.

Sjoerd001 avatar Jul 19 '25 00:07 Sjoerd001

Just installed an updated kernel (6.15.7.200-fc42.x86_64)

Now its making an initoverlayfs image:

initoverlayfs.md

Some errors still exists

Processing var/lib/dracut/hooks/pre-pivot/01-fips-crypto-policies.sh ...
Processing var/lib/dracut/hooks/pre-pivot/01-fips-noboot.sh ...
Processing var/lib/dracut/hooks/pre-udev/01-fips-load-crypto.sh ...
Build completed.


Filesystem UUID: 661047ed-e16e-4f1e-b290-7e650dedc8b9
Filesystem total blocks: 19534 (of 4096-byte blocks)
Filesystem total inodes: 3467
Filesystem total metadata blocks: 1161
Filesystem total deduplicated bytes (of source files): 0

  • false
  • rm -rf /var/lib/initoverlayfs
    ++ sed -ne 's/^initrd_builder\s//pg' /etc/initoverlayfs.conf
  • initrd_builder='dracut -M -m "kernel-modules udev-rules initoverlayfs systemd base" -o "bash systemd-initrd i18n kernel-modules-extra rootfs-block dracut-systemd usrmount fs-lib microcode_ctl-fw_dir
  • /bin/bash -c 'dracut -M -m "kernel-modules udev-rules initoverlayfs systemd base" -o "bash systemd-initrd i18n kernel-modules-extra rootfs-block dracut-systemd usrmount fs-lib microcode_ctl-fw_dir_o /watcher.smb.conf: line 3: ...: command not found
    /watcher.smb.conf: line 6: [files]: command not found
    /watcher.smb.conf: line 7: path: command not found
    /watcher.smb.conf: line 8: writeable: command not found
    /watcher.smb.conf: line 9: browseable: command not found
    /watcher.smb.conf: line 10: valid: command not found
    /watcher.smb.conf: line 11: force: command not found
    /watcher.smb.conf: line 12: force: command not found
    /watcher.smb.conf: line 15: [pictures]: command not found
    /watcher.smb.conf: line 16: path: command not found
    /watcher.smb.conf: line 17: public: command not found
    /watcher.smb.conf: line 18: writeable: command not found
    /watcher.smb.conf: line 19: force: command not found
    /watcher.smb.conf: line 20: force: command not found
    dracut[E]: Module 'shell-interpreter' depends on module 'bash', which can't be installed
    dracut[E]: Module 'base' depends on module 'shell-interpreter', which can't be installed
    dracut[E]: Module 'base' cannot be installed.
    /usr/lib/kernel/install.d/94-initoverlayfs.install failed with exit status 1.

Cant believe it. My latest initioverlayfs created was initoverlayfs-6.14.4-100.fc40.x86_64.img

Sjoerd001 avatar Jul 23 '25 15:07 Sjoerd001