Compare commits

...

2 commits

Author SHA1 Message Date
pedro 3688088958 workbench deploy: detect ubuntu and guide user 2024-09-19 13:06:25 -03:00
pedro b005a5e158 workbench deploy: bugfix workbench-script copy
create directory and enforce that it is copied in directory
2024-09-19 13:05:52 -03:00

View file

@ -260,8 +260,9 @@ prepare_app() {
# prepare app during prepare_chroot_env
# Install hardware_metadata module
workbench_dir="${ISO_PATH}/chroot/opt/workbench"
${SUDO} cp workbench-script.py "${workbench_dir}"
${SUDO} cp requirements.txt "${workbench_dir}"
${SUDO} mkdir -p "${workbench_dir}"
${SUDO} cp workbench-script.py "${workbench_dir}/"
${SUDO} cp requirements.txt "${workbench_dir}/"
# startup script execution
cat > "${ISO_PATH}/chroot/root/.profile" <<END
@ -389,6 +390,11 @@ prepare_chroot_env() {
if [ -z "${VERSION_CODENAME:-}" ]; then
. /etc/os-release
echo "TAKING OS-RELEASE FILE"
if [ "${ID}" = "debian" ]; then
echo "ERROR: ubuntu detected, then you are enforced to specify debian variant"
echo " use for example \`VERSION_CODENAME='bookworm'\` or similar"
exit 1
fi
fi
chroot_path="${ISO_PATH}/chroot"