Files
Rubén Cabrera 110fb9d75e Fix debian-systemd element for non-root user
cat to the extra_settings file fails with Permission denied when
creating image as non-root user.

Change-Id: Ie08ad40ae919aca170924f774b2deed9137af897
2025-06-18 23:41:08 +01:00

12 lines
203 B
Bash
Executable File

#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
cat << EOF | sudo tee ${TARGET_ROOT}/.extra_settings > /dev/null
DIB_DEBIAN_ALT_INIT_PACKAGE=systemd-sysv
EOF