Core library for building Devuan images
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

86 lines
2.0 KiB

  1. #!/usr/bin/env zsh
  2. # shellcheck shell=bash
  3. # Copyright (c) 2016-2021 Ivan J. <parazyd@dyne.org>
  4. # This file is part of libdevuansdk
  5. #
  6. # This source code is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation, either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This software is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this source code. If not, see <http://www.gnu.org/licenses/>.
  18. vars+=(release version mirror section blend_name image_name vm_name)
  19. vars+=(arch earch)
  20. vars+=(usercredentials rootcredentials)
  21. vars+=(COMPRESS_IMAGE CPIO_STAGE4 MKEFI)
  22. arrs+=(core_packages base_packages purge_packages blend_packages)
  23. arrs+=(core_packages_option base_packages_option purge_packages_option blend_packages_option)
  24. os="devuan"
  25. release="beowulf"
  26. version="3.0.0"
  27. mirror="https://pkgmaster.devuan.org/merged"
  28. section="main contrib non-free"
  29. image_name="${os}_${release}_${version}_${arch}"
  30. [[ -n "$blend_name" ]] && image_name="${image_name}_${blend_name}"
  31. [[ -n "$device_name" ]] && image_name="${image_name}_${device_name}"
  32. vm_name="${os}_${release}_${version}_${arch}_virtual"
  33. [[ -n "$blend_name" ]] && vm_name="${vm_name}_${blend_name}"
  34. rootcredentials="root:toor"
  35. core_packages_option=()
  36. core_packages=(
  37. devuan-keyring
  38. debian-keyring
  39. ca-certificates
  40. initramfs-tools
  41. e2fsprogs
  42. bzip2
  43. curl
  44. less
  45. vim
  46. nano
  47. sysvinit
  48. )
  49. base_packages_option=()
  50. base_packages=(
  51. apt-utils
  52. parted
  53. openssh-server
  54. openssh-client
  55. sudo
  56. alsa-utils
  57. mawk
  58. tmux
  59. screen
  60. ntp
  61. wpasupplicant
  62. wireless-tools
  63. lynx
  64. firmware-linux-free
  65. btrfs-tools
  66. zsh
  67. rsync
  68. git-core
  69. mlocate
  70. locales
  71. htop
  72. )
  73. purge_packages_option=()
  74. purge_packages+=(
  75. dbus
  76. )