cat to the extra_settings file fails with Permission denied when creating image as non-root user. Change-Id: Ie08ad40ae919aca170924f774b2deed9137af897
12 lines
203 B
Bash
Executable File
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
|