From aba5ce6048b1e2d2575cac332e8f0c81f86a00fe Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Tue, 22 May 2012 16:49:03 +0200 Subject: [PATCH] vm/systemd: generate opts for GUI based on debug-mode (#567) --- vm-systemd/qubes-sysinit.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vm-systemd/qubes-sysinit.sh b/vm-systemd/qubes-sysinit.sh index 02e2a9a..1fb463c 100755 --- a/vm-systemd/qubes-sysinit.sh +++ b/vm-systemd/qubes-sysinit.sh @@ -61,3 +61,11 @@ if [ -n "$timezone" ]; then echo "# Clock configuration autogenerated based on Qubes dom0 settings" > /etc/sysconfig/clock echo "ZONE=\"$timezone\"" >> /etc/sysconfig/clock fi + +# Prepare environment for other services +echo > /var/run/qubes-service-environment + +debug_mode=`$XS_READ qubes-debug-mode 2> /dev/null` +if [ -n "$debug_mode" -a "$debug_mode" -gt 0 ]; then + echo "GUI_OPTS=-vv" >> /var/run/qubes-service-environment +fi