qubes-core-early 945 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #!/bin/bash
  2. #
  3. # chkconfig: 345 84 84
  4. # description: Executes early necessary Qubes core scripts at VM boot
  5. #
  6. # Source function library.
  7. # shellcheck disable=SC1091
  8. . /etc/rc.d/init.d/functions
  9. # Source Qubes library.
  10. # shellcheck source=init/functions
  11. . /usr/lib/qubes/init/functions
  12. start()
  13. {
  14. have_qubesdb || return
  15. echo -n $"Adjusting root filesystem size:"
  16. # shellcheck disable=SC2015
  17. /usr/lib/qubes/init/resize-rootfs-if-needed.sh && success || failure
  18. echo
  19. echo -n $"Setting up Qubes persistent file systems:"
  20. # shellcheck disable=SC2015
  21. /usr/lib/qubes/init/mount-dirs.sh && success || failure
  22. echo
  23. echo -n $"Executing Qubes random seed scripts:"
  24. # shellcheck disable=SC2015
  25. /usr/lib/qubes/init/qubes-random-seed.sh && success || failure
  26. echo
  27. }
  28. stop()
  29. {
  30. return 0
  31. }
  32. case "$1" in
  33. start)
  34. start
  35. ;;
  36. stop)
  37. stop
  38. ;;
  39. *)
  40. echo $"Usage: $0 {start|stop}"
  41. exit 3
  42. ;;
  43. esac
  44. # shellcheck disable=SC2086
  45. exit $RETVAL