소스 검색

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
Patrick Schleizer 8 년 전
부모
커밋
184f49dbbd
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      vm-systemd/bind-dirs.sh

+ 7 - 0
vm-systemd/bind-dirs.sh

@@ -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() {