autoinstall.cfg 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #!/bin/sh
  2. # Void Linux Automatic Install Configuration
  3. # ===
  4. # Disk Configuration
  5. # ===
  6. # disk: the disk to install to
  7. # default: the first disk that isn't the installer
  8. #disk=/dev/hda
  9. # bootpartitionsize: controls how large the boot partition will be
  10. # default: 500M
  11. #bootpartitionsize=500M
  12. # swapsize: how large should the swap partition be
  13. # default: equal to the installed physical memory
  14. #swapsize=
  15. # ===
  16. # XBPS Configuration
  17. # ===
  18. # xbpsrepository: which repo should the install pull from
  19. # default: http://repo.voidlinux.eu/current
  20. # pkgs: additional packages to install into the target
  21. # default: none
  22. #pkgs=""
  23. # ===
  24. # Default User
  25. # ===
  26. # username: the username of the user to be created
  27. # default: voidlinux
  28. username="vagrant"
  29. # password: password to set for the new user
  30. # default: unset (will prompt during install)
  31. # Warning: This does not work in musl!
  32. password="vagrant"
  33. # ===
  34. # Misc. Options
  35. # ===
  36. # timezone: Timezone in TZ format
  37. # default: America/Chicago
  38. #timezone="America/Chicago"
  39. # keymap: Keymap to use by default
  40. # default: us
  41. #keymap
  42. # locale: initial glibc locale
  43. # default: en_US.UTF-8
  44. #libclocale=en.US.UTF-8
  45. # hostname: static hostname for the system
  46. # default: derived from DNS
  47. #hostname=VoidLinux
  48. # end_action: what to do at the end of the install
  49. # default: shutdown
  50. # alternate values: reboot, script
  51. end_action=func
  52. # end_script: script to optionally run at end of install
  53. # the user script must reside somewhere xbps-uhelper fetch
  54. # can retrieve it from
  55. # default: not set
  56. end_function() {
  57. printf "Linking default services"
  58. chroot ${target} ln -s /etc/sv/dhcpcd /etc/runit/runsvdir/default/dhcpcd
  59. chroot ${target} ln -s /etc/sv/sshd /etc/runit/runsvdir/default/sshd
  60. xbps-install -r ${target} -Sy dbus virtualbox-ose-guest
  61. chroot ${target} ln -s /etc/sv/dbus /etc/runit/runsvdir/default/dbus
  62. chroot ${target} ln -s /etc/sv/vboxservice /etc/runit/runsvdir/default/vboxservice
  63. sync
  64. reboot -f
  65. }