22 lines
828 B
Bash
Executable File
22 lines
828 B
Bash
Executable File
#!/bin/sh
|
|
dracut_install rpcbind rpc.statd mount.nfs mount.nfs4 umount
|
|
dracut_install /etc/netconfig /etc/passwd /etc/services
|
|
dracut_install rpc.idmapd /etc/idmapd.conf
|
|
|
|
instmods nfs
|
|
inst_hook cmdline 90 "$moddir/parse-nfsroot.sh"
|
|
inst_hook netroot 90 "$moddir/nfs-netroot.sh"
|
|
inst_hook pre-pivot 70 "$moddir/nfsroot-cleanup.sh"
|
|
inst "$moddir/nfsroot" "/sbin/nfsroot"
|
|
mkdir -p "$initdir/var/lib/nfs/rpc_pipefs"
|
|
mkdir -p "$initdir/var/lib/rpcbind"
|
|
mkdir -p "$initdir/var/lib/nfs/statd/sm"
|
|
|
|
# Rather than copy the passwd file in, just set a user for rpcbind
|
|
# We'll save the state and restart the daemon from the root anyway
|
|
#echo "rpc:x:32:32:Rpcbind:/var/lib/rpcbind:/bin/false" >> "$initdir/etc/passwd"
|
|
|
|
# rpc user needs to be able to write to this directory to save the warmstart
|
|
# file
|
|
chmod 777 "$initdir/var/lib/rpcbind"
|