From 11ae1f45fc5f02d29a19009d9a2f204a202a0e60 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sun, 23 Sep 2012 23:25:39 +0200 Subject: [PATCH] vm/systemd: early user-configurable init script --- vm-systemd/misc-post.sh | 1 + vm-systemd/qubes-sysinit.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/vm-systemd/misc-post.sh b/vm-systemd/misc-post.sh index b86e6a7f..7db58d2c 100755 --- a/vm-systemd/misc-post.sh +++ b/vm-systemd/misc-post.sh @@ -21,6 +21,7 @@ if [ -e /dev/xvdb ] ; then mkdir -p /rw/config touch /rw/config/rc.local + touch /rw/config/rc.local-early mkdir -p /rw/home cp -a /home.orig/user /home diff --git a/vm-systemd/qubes-sysinit.sh b/vm-systemd/qubes-sysinit.sh index 77dac3f4..b785a25c 100755 --- a/vm-systemd/qubes-sysinit.sh +++ b/vm-systemd/qubes-sysinit.sh @@ -69,3 +69,6 @@ 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 + +[ -x /rw/config/rc.local-early ] && /rw/config/rc.local-early +