diff --git a/base-elementary.sh b/base-elementary.sh index 0fa8675..4fda5eb 100755 --- a/base-elementary.sh +++ b/base-elementary.sh @@ -9,9 +9,40 @@ source \ "${BASEDIR}/system.conf" +packages=(\ +console-setup \ +cryptsetup \ +curl \ +dosfstools \ +dpkg-dev \ +efibootmgr \ +ethtool \ +flatpak \ +keyboard-configuration \ +linux-generic \ +locales \ +nano \ +network-manager \ +openssh-{client,server} \ +popularity-contest \ +zfs-initramfs \ +zstd\ +) + + +include="--include=${packages[0]}" + +for ((i=1;i<${#packages[@]};i++)); do + include+=" --include=${packages[${i}]}" +done + if [[ "${1}" == '-1' ]]; then mmdebstrap \ - --include='' \ + --skip=check/empty \ + --components=main,restricted,universe,multiverse \ + --mode=root \ + --format=directory \ + ${include} \ "${UBUNTU_VERSION_CODENAME}" \ /mnt elif [[ "${1}" == '-2' ]]; then