summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-export-rootfs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/runqemu-export-rootfs')
-rwxr-xr-xscripts/runqemu-export-rootfs25
1 files changed, 3 insertions, 22 deletions
diff --git a/scripts/runqemu-export-rootfs b/scripts/runqemu-export-rootfs
index 384c091713..6a8acd0d5a 100755
--- a/scripts/runqemu-export-rootfs
+++ b/scripts/runqemu-export-rootfs
@@ -34,16 +34,12 @@ if [ -z "$SYSROOT_SETUP_SCRIPT" ]; then
34 echo "Did you forget to source your build environment setup script?" 34 echo "Did you forget to source your build environment setup script?"
35 exit 1 35 exit 1
36fi 36fi
37. $SYSROOT_SETUP_SCRIPT meta-ide-support 37. $SYSROOT_SETUP_SCRIPT qemu-helper-native
38 38
39if [ ! -e "$OECORE_NATIVE_SYSROOT/usr/bin/unfsd" ]; then 39if [ ! -e "$OECORE_NATIVE_SYSROOT/usr/bin/unfsd" ]; then
40 echo "Error: Unable to find unfsd binary in $OECORE_NATIVE_SYSROOT/usr/bin/" 40 echo "Error: Unable to find unfsd binary in $OECORE_NATIVE_SYSROOT/usr/bin/"
41 41
42 if [ "x$OECORE_DISTRO_VERSION" = "x" ]; then 42 echo "This shouldn't happen - something is missing from your toolchain installation"
43 echo "Have you run 'bitbake meta-ide-support'?"
44 else
45 echo "This shouldn't happen - something is missing from your toolchain installation"
46 fi
47 exit 1 43 exit 1
48fi 44fi
49 45
@@ -74,26 +70,11 @@ MOUNTD_PORT=${MOUNTD_PORT:=$[ 3048 + 2 * $NFS_INSTANCE ]}
74 70
75## For debugging you would additionally add 71## For debugging you would additionally add
76## --debug all 72## --debug all
77UNFSD_OPTS="-p -N -i $NFSPID -e $EXPORTS -n $NFSD_PORT -m $MOUNTD_PORT" 73UNFSD_OPTS="-p -i $NFSPID -e $EXPORTS -n $NFSD_PORT -m $MOUNTD_PORT"
78 74
79# See how we were called. 75# See how we were called.
80case "$1" in 76case "$1" in
81 start) 77 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..." 78 echo "Creating exports file..."
98 echo "$NFS_EXPORT_DIR (rw,no_root_squash,no_all_squash,insecure)" > $EXPORTS 79 echo "$NFS_EXPORT_DIR (rw,no_root_squash,no_all_squash,insecure)" > $EXPORTS
99 80