module-setup.sh 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #!/bin/bash
  2. # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
  3. # ex: ts=8 sw=4 sts=4 et filetype=sh
  4. check() {
  5. return 255
  6. }
  7. depends() {
  8. return 0
  9. }
  10. install() {
  11. inst /usr/bin/awk
  12. inst /usr/bin/basename
  13. inst /usr/bin/bash
  14. inst /usr/bin/cat
  15. inst /usr/bin/cfdisk
  16. inst /usr/bin/chroot
  17. inst /usr/bin/clear
  18. inst /usr/bin/cut
  19. inst /usr/bin/cp
  20. inst /usr/bin/dhcpcd
  21. inst /usr/bin/dialog
  22. inst /usr/bin/echo
  23. inst /usr/bin/env
  24. inst /usr/bin/find
  25. inst /usr/bin/find
  26. inst /usr/bin/grep
  27. inst /usr/bin/head
  28. inst /usr/bin/id
  29. inst /usr/bin/ln
  30. inst /usr/bin/ls
  31. inst /usr/bin/lsblk
  32. inst /usr/bin/mke2fs
  33. inst /usr/bin/mkfs.btrfs
  34. inst /usr/bin/mkfs.f2fs
  35. inst /usr/bin/mkfs.vfat
  36. inst /usr/bin/mkfs.xfs
  37. inst /usr/bin/mkswap
  38. inst /usr/bin/mktemp
  39. inst /usr/bin/mount
  40. inst /usr/bin/reboot
  41. inst /usr/bin/rm
  42. inst /usr/bin/sed
  43. inst /usr/bin/sort
  44. inst /usr/bin/sync
  45. inst /usr/bin/stdbuf
  46. inst /usr/bin/sleep
  47. inst /usr/bin/touch
  48. inst /usr/bin/xargs
  49. inst /usr/bin/xbps-install
  50. inst /usr/bin/xbps-reconfigure
  51. inst /usr/bin/xbps-remove
  52. inst /usr/bin/xbps-uhelper
  53. inst /usr/libexec/dhcpcd-hooks/20-resolv.conf
  54. inst /usr/libexec/dhcpcd-run-hooks
  55. inst /usr/libexec/coreutils/libstdbuf.so
  56. inst_multiple /var/db/xbps/keys/*
  57. inst_multiple /usr/share/xbps.d/*
  58. inst_multiple /usr/share/zoneinfo/*/*
  59. inst_multiple /etc/ssl/certs/*
  60. inst /etc/ssl/certs.pem
  61. inst /etc/default/libc-locales
  62. inst /etc/group
  63. # We need to remove a choice here since the installer's initrd
  64. # can't function as a local source. Strictly we shouldn't be
  65. # doing this from dracut's installation function, but this is the
  66. # last place that file really exists 'on disk' in the sense that
  67. # we can modify it, so this change is applied here.
  68. sed -i '/Packages from ISO image/d' "$moddir/installer.sh"
  69. # The system doesn't have a real init up so the reboot is going to
  70. # be rough, we make it an option though if the end user wants to
  71. # do this...
  72. sed -i "s:shutdown -r now:sync && reboot -f:" "$moddir/installer.sh"
  73. inst "$moddir/installer.sh" /usr/bin/void-installer
  74. inst_hook pre-mount 05 "$moddir/netmenu.sh"
  75. }