debian: Add default configuration for acrnlog

Tracked-On: #6688
Signed-off-by: Helmut Buchsbaum <helmut.buchsbaum@opensource.tttech-industrial.com>
This commit is contained in:
Helmut Buchsbaum 2022-05-05 09:10:31 +02:00 committed by acrnsi-robot
parent 4c37d72bdc
commit f0b3adc501
3 changed files with 11 additions and 1 deletions

View File

@ -12,3 +12,4 @@ lib/systemd/system/acrnprobe.service
lib/systemd/system/usercrash.service
usr/share/defaults/telemetrics/acrnprobe.xml
usr/share/acrn/scripts/*
etc/default/acrnlog

4
debian/acrnlog/acrnlog.default vendored Normal file
View File

@ -0,0 +1,4 @@
# Customizations for the acrnlog.service systemd unit
# e.g. ACRNLOG_ARGS="-n 8 -s 4"
ACRNLOG_ARGS=""

7
debian/rules vendored
View File

@ -297,7 +297,12 @@ override_dh_auto_install-arch:
misc/debug_tools/acrn_crashlog/data/acrnprobe.xml; \
install -d $(DESTDIR)$(datadir)/acrn/scripts; \
cp -a misc/debug_tools/acrn_trace/scripts/* \
$(DESTDIR)$(datadir)/acrn/scripts \
$(DESTDIR)$(datadir)/acrn/scripts; \
install -d $(DESTDIR)$(sysconfdir)/default; \
cp debian/acrnlog/acrnlog.default \
$(DESTDIR)$(sysconfdir)/default/acrnlog; \
sed -i -e 's#ExecStart=.*#EnvironmentFile=$(sysconfdir)/default/acrnlog\nExecStart=$(bindir)/acrnlog $${ACRNLOG_ARGS}#' \
$(DESTDIR)$(systemd_unitdir)/system/acrnlog.service \
)
### binary-indep #############################################################