also exit from bind-directories if file /var/run/qubes-service/qubes-dvm exists

Thanks to @marmarek for the suggestion!

https://github.com/QubesOS/qubes-issues/issues/1328#issuecomment-169483029
This commit is contained in:
Patrick Schleizer 2016-01-06 23:08:33 +00:00
parent 7e8649f8c7
commit 184f49dbbd
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -31,6 +31,13 @@ prerequisite() {
true "No TemplateBasedVM detected. Exiting."
exit 0
fi
if [ -f "/var/run/qubes-service/qubes-dvm" ]; then
# https://github.com/QubesOS/qubes-issues/issues/1328#issuecomment-169483029
# Do none of the following in a DispVM.
# During DispVM savefile generation, 'qubesdb-read /qubes-vm-persistence'
# outputs 'rw'.
exit 0
fi
}
init() {