diff --git a/pi-gen-overlay/stage3/20-install-ros/03-run.sh b/pi-gen-overlay/stage3/20-install-ros/03-run.sh index 84bf82d..005c4dc 100755 --- a/pi-gen-overlay/stage3/20-install-ros/03-run.sh +++ b/pi-gen-overlay/stage3/20-install-ros/03-run.sh @@ -14,7 +14,9 @@ tar -xf "$ROOTFS_DIR"/tmp/install/ros.tar -C "$ROOTFS_DIR"/opt/ros/kinetic on_chroot <<-EOF rosdep init - su pi -c "rosdep update" + + su - pi - su pi -c "rosdep install --from-paths /opt/ros/kinetic/share --ignore-src --rosdistro kinetic -y --os=debian:stretch" + rosdep update + rosdep install --from-paths /opt/ros/kinetic/share --ignore-src --rosdistro kinetic -y --os=debian:stretch EOF \ No newline at end of file