diff options
Diffstat (limited to 'scripts/runqemu-export-rootfs')
-rwxr-xr-x | scripts/runqemu-export-rootfs | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/scripts/runqemu-export-rootfs b/scripts/runqemu-export-rootfs index 384c091713..c1fff7fcb3 100755 --- a/scripts/runqemu-export-rootfs +++ b/scripts/runqemu-export-rootfs | |||
@@ -74,26 +74,11 @@ MOUNTD_PORT=${MOUNTD_PORT:=$[ 3048 + 2 * $NFS_INSTANCE ]} | |||
74 | 74 | ||
75 | ## For debugging you would additionally add | 75 | ## For debugging you would additionally add |
76 | ## --debug all | 76 | ## --debug all |
77 | UNFSD_OPTS="-p -N -i $NFSPID -e $EXPORTS -n $NFSD_PORT -m $MOUNTD_PORT" | 77 | UNFSD_OPTS="-p -i $NFSPID -e $EXPORTS -n $NFSD_PORT -m $MOUNTD_PORT" |
78 | 78 | ||
79 | # See how we were called. | 79 | # See how we were called. |
80 | case "$1" in | 80 | case "$1" in |
81 | start) | 81 | start) |
82 | PORTMAP_RUNNING=`ps -ef | grep portmap | grep -v grep` | ||
83 | RPCBIND_RUNNING=`ps -ef | grep rpcbind | grep -v grep` | ||
84 | if [[ "x$PORTMAP_RUNNING" = "x" && "x$RPCBIND_RUNNING" = "x" ]]; then | ||
85 | echo "=======================================================" | ||
86 | echo "Error: neither rpcbind nor portmap appear to be running" | ||
87 | echo "Please install and start one of these services first" | ||
88 | echo "=======================================================" | ||
89 | echo "Tip: for recent Ubuntu hosts, run:" | ||
90 | echo " sudo apt-get install rpcbind" | ||
91 | echo "Then add OPTIONS=\"-i -w\" to /etc/default/rpcbind and run" | ||
92 | echo " sudo service portmap restart" | ||
93 | |||
94 | exit 1 | ||
95 | fi | ||
96 | |||
97 | echo "Creating exports file..." | 82 | echo "Creating exports file..." |
98 | echo "$NFS_EXPORT_DIR (rw,no_root_squash,no_all_squash,insecure)" > $EXPORTS | 83 | echo "$NFS_EXPORT_DIR (rw,no_root_squash,no_all_squash,insecure)" > $EXPORTS |
99 | 84 | ||