Skip to content

Commit

Permalink
fix env path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AlkenePan committed Oct 25, 2022
1 parent 67297db commit 083c723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rasp/mount_script
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ while read A B C SUBROOT MOUNT JUNK
[ $MOUNT = $FILESYS ] # More sanity check!
SUBPATH=$(echo $REALPATH | sed s,^$FILESYS,,)
DEVDEC=$(printf "%d %d" $(stat --format "0x%t 0x%T" $DEV))
run_command="$NSENTER_PATH --target $PID --mount --uts --ipc --net --pid -- sh -c"
run_command="$NSENTER_PATH --target $PID --mount --uts --ipc --net --pid -- /bin/sh -c"
if [ `$run_command "export PATH=/usr/bin:/bin:/sbin;mount|grep $CONTPATH|wc -l"` -ne 0 ];then
echo "container mount dir $CONTPATH is mounting!"
exit 0
Expand Down

0 comments on commit 083c723

Please sign in to comment.