Bug 2055070

Summary: util-linux-core scriptlet should be converted to lua?
Product: [Fedora] Fedora Reporter: Zbigniew Jędrzejewski-Szmek <zbyszek>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jonathan, kzak
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: util-linux-2.38-2.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-07 09:07:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2018913    

Description Zbigniew Jędrzejewski-Szmek 2022-02-16 09:29:36 UTC
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

Comment 1 Zbigniew Jędrzejewski-Szmek 2022-04-06 15:31:18 UTC
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.

Comment 2 Karel Zak 2022-04-07 09:07:57 UTC
Thanks, Zbigniew for all the help! :-)