mount-dirs.sh 556 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. # Source Qubes library.
  3. . /usr/lib/qubes/init/functions
  4. set -e
  5. /usr/lib/qubes/init/setup-rwdev.sh
  6. if [ -e /dev/xvdb ] ; then mount /rw ; fi
  7. /usr/lib/qubes/init/setup-rw.sh
  8. if qsvc qubes-dvm; then
  9. /usr/lib/qubes/init/setup-dvm-home.sh
  10. echo "Mounting /home_volatile onto /home" >&2
  11. mount --bind /home_volatile /home
  12. else
  13. echo "Mounting /home" >&2
  14. mount /home
  15. # https://github.com/QubesOS/qubes-issues/issues/1328#issuecomment-169483029
  16. # Do none of the following in a DispVM.
  17. /usr/lib/qubes/init/bind-dirs.sh
  18. fi