D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
lib
/
leapp
/
el8userspace
/
lib
/
dracut
/
modules.d
/
95nfs
/
Filename :
nfsroot-cleanup.sh
back
Copy
#!/bin/sh type incol2 >/dev/null 2>&1 || . /lib/dracut-lib.sh [ -f /tmp/nfs.rpc_pipefs_path ] && rpcpipefspath=`cat /tmp/nfs.rpc_pipefs_path` [ -z "$rpcpipefspath" ] && rpcpipefspath=var/lib/nfs/rpc_pipefs pid=$(pidof rpc.statd) [ -n "$pid" ] && kill $pid pid=$(pidof rpc.idmapd) [ -n "$pid" ] && kill $pid pid=$(pidof rpcbind) [ -n "$pid" ] && kill $pid if incol2 /proc/mounts /var/lib/nfs/rpc_pipefs; then # try to create the destination directory [ -d $NEWROOT/$rpcpipefspath ] || \ mkdir -m 0755 -p $NEWROOT/$rpcpipefspath 2>/dev/null if [ -d $NEWROOT/$rpcpipefspath ]; then # mount --move does not seem to work??? mount --bind /var/lib/nfs/rpc_pipefs $NEWROOT/$rpcpipefspath umount /var/lib/nfs/rpc_pipefs 2>/dev/null else umount /var/lib/nfs/rpc_pipefs 2>/dev/null fi fi
Name
Size
Last Modified
Owner
Permissions
Actions
module-setup.sh
4.293
KB
March 31 2023 7:20:40
root
0755
nfs-lib.sh
4.535
KB
March 31 2023 7:20:39
root
0755
nfs-start-rpc.sh
0.85
KB
October 08 2018 1:38:33
root
0755
nfsroot-cleanup.sh
0.825
KB
October 08 2018 1:38:33
root
0755
nfsroot.sh
0.698
KB
October 08 2018 1:38:33
root
0755
parse-nfsroot.sh
3.255
KB
October 08 2018 1:38:33
root
0755
2017 © D7net | D704T team