Description of problem: $ dnf install --installroot=… reports error in scriptlets: Installing : util-linux-core-2.38-0.2.fc36.x86_64 142/166 Running scriptlet: util-linux-core-2.38-0.2.fc36.x86_64 142/166 /var/tmp/rpm-tmp.97khRx: line 2: ln: command not found If it can't be rewritten in lua, then please at least redirect all errors to /dev/null. util-linux-core doesn't declare a dependency on coretuils, so ln not being there is totally expected. But more dependencies in basic tools is a bad thing, please don't add it. I hope nothing using /etc/mtab, so silently skipping the creation of the symlink should be OK too. Version-Release number of selected component (if applicable): util-linux-core-2.38-0.2.fc36.x86_64 How reproducible: deterministic Steps to Reproduce: 1. sudo dnf install --releasever=rawhide --repo=fedora --installroot=/var/tmp/f36-test3 --nogpgcheck --setopt install_weak_deps=True rpm systemd systemd-resolved
https://src.fedoraproject.org/rpms/util-linux/pull-request/11 was handling this, and was merged. So this should be fixed soon, if not already.
Thanks, Zbigniew for all the help! :-)