From: Michal Sojka Date: Sat, 26 May 2018 22:09:37 +0000 (+0200) Subject: Use absolute paths in jailhouse init script X-Git-Tag: 0.0~8 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/hercules2020/jailhouse-build.git/commitdiff_plain/b4b9a86c657ee1ce36df648bf248145fa93495a6 Use absolute paths in jailhouse init script Useful when the script is run over SSH. For some reason *sbin is not in the path. --- diff --git a/build/rootfs-overlay/etc/init.d/S20jailhouse.sh b/build/rootfs-overlay/etc/init.d/S20jailhouse.sh index c626ec4..c415e86 100644 --- a/build/rootfs-overlay/etc/init.d/S20jailhouse.sh +++ b/build/rootfs-overlay/etc/init.d/S20jailhouse.sh @@ -6,17 +6,17 @@ fi case "$1" in start) printf "Starting Jailhouse: " - modprobe jailhouse + /sbin/modprobe jailhouse # Switch on Denver cores echo 1 > /sys/devices/system/cpu/cpu1/online echo 1 > /sys/devices/system/cpu/cpu2/online - jailhouse enable /jailhouse/configs/jetson-tx2.cell + /usr/sbin/jailhouse enable /jailhouse/configs/jetson-tx2.cell [ $? = 0 ] && echo "OK" || echo "FAIL" ;; stop) printf "Stopping Jailhouse: " - jailhouse disable /jailhouse/configs/jetson-tx2.cell - rmmod jailhouse + /usr/sbin/jailhouse disable /jailhouse/configs/jetson-tx2.cell + /sbin/rmmod jailhouse [ $? = 0 ] && echo "OK" || echo "FAIL" ;; esac