Compare commits
2 commits
a9af55d109
...
3688088958
Author | SHA1 | Date | |
---|---|---|---|
3688088958 | |||
b005a5e158 |
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue