]> rtime.felk.cvut.cz Git - hercules2020/jailhouse-build.git/commitdiff
Use absolute paths in jailhouse init script
authorMichal Sojka <michal.sojka@cvut.cz>
Sat, 26 May 2018 22:09:37 +0000 (00:09 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Sat, 26 May 2018 22:18:55 +0000 (00:18 +0200)
Useful when the script is run over SSH. For some reason *sbin is not in
the path.

build/rootfs-overlay/etc/init.d/S20jailhouse.sh

index c626ec49c8d1d87c8a4a87f3a585264329d0af25..c415e86f0ad892e46771d9a957c9b4677aa23e75 100644 (file)
@@ -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