diff --git a/buildroot-external/scripts/rootfs-layer.sh b/buildroot-external/scripts/rootfs-layer.sh index 47243cfb5..55c669895 100644 --- a/buildroot-external/scripts/rootfs-layer.sh +++ b/buildroot-external/scripts/rootfs-layer.sh @@ -31,4 +31,8 @@ function fix_rootfs() { function install_hassos_cli() { sed -i "s|\(root.*\)/bin/sh|\1/usr/sbin/hassos-cli|" ${TARGET_DIR}/etc/passwd + + if ! grep "hassos-cli" ${TARGET_DIR}/etc/shells; then + echo "/usr/sbin/hassos-cli" >> ${TARGET_DIR}/etc/shells + fi }