Skip to content

Commit

Permalink
fix(nfs): require and install needed binaries
Browse files Browse the repository at this point in the history
parse-nfsroot.sh requires sed, chmod and chown.
  • Loading branch information
aafeijoo-suse authored and johannbg committed Apr 21, 2022
1 parent 79f9d9e commit 0e4df7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules.d/95nfs/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ get_nfs_type() {
check() {
# If our prerequisites are not met, fail anyways.
require_any_binary rpcbind portmap || return 1
require_binaries rpc.statd mount.nfs mount.nfs4 umount || return 1
require_binaries rpc.statd mount.nfs mount.nfs4 umount sed chmod chown || return 1

[[ $hostonly ]] || [[ $mount_needs ]] && {
[[ "$(get_nfs_type)" ]] && return 0
Expand Down Expand Up @@ -76,7 +76,7 @@ cmdline() {
# called by dracut
install() {
local _nsslibs
inst_multiple -o rpc.idmapd mount.nfs mount.nfs4 umount sed /etc/netconfig chmod "$tmpfilesdir/rpcbind.conf"
inst_multiple -o rpc.idmapd mount.nfs mount.nfs4 umount sed /etc/netconfig chmod chown "$tmpfilesdir/rpcbind.conf"
inst_multiple -o /etc/idmapd.conf
inst_multiple -o /etc/services /etc/nsswitch.conf /etc/rpc /etc/protocols
inst_multiple -o /usr/etc/services /usr/etc/nsswitch.conf /usr/etc/rpc /usr/etc/protocols
Expand Down

0 comments on commit 0e4df7a

Please sign in to comment.