module-setup.sh 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. echo network
  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/sh
  44. inst /usr/bin/sort
  45. inst /usr/bin/sync
  46. inst /usr/bin/stdbuf
  47. inst /usr/bin/sleep
  48. inst /usr/bin/touch
  49. inst /usr/bin/xargs
  50. inst /usr/bin/xbps-install
  51. inst /usr/bin/xbps-reconfigure
  52. inst /usr/bin/xbps-remove
  53. inst /usr/bin/xbps-uhelper
  54. inst /usr/libexec/dhcpcd-hooks/20-resolv.conf
  55. inst /usr/libexec/dhcpcd-run-hooks
  56. inst /usr/libexec/coreutils/libstdbuf.so
  57. inst_multiple /var/db/xbps/keys/*
  58. inst_multiple /usr/share/xbps.d/*
  59. inst_multiple /usr/share/zoneinfo/*/*
  60. inst_multiple /etc/ssl/certs/*
  61. inst /etc/ssl/certs.pem
  62. inst /etc/default/libc-locales
  63. inst /etc/group
  64. # We need to remove a choice here since the installer's initrd
  65. # can't function as a local source. Strictly we shouldn't be
  66. # doing this from dracut's installation function, but this is the
  67. # last place that file really exists 'on disk' in the sense that
  68. # we can modify it, so this change is applied here.
  69. sed -i '/Packages from ISO image/d' "$moddir/installer.sh"
  70. # The system doesn't have a real init up so the reboot is going to
  71. # be rough, we make it an option though if the end user wants to
  72. # do this...
  73. sed -i "s:shutdown -r now:sync && reboot -f:" "$moddir/installer.sh"
  74. inst "$moddir/installer.sh" /usr/bin/void-installer
  75. inst_hook pre-mount 05 "$moddir/netmenu.sh"
  76. }