Added proper flags to mmdebstrap

This commit is contained in:
2025-10-13 19:53:01 -04:00
parent 939359b94e
commit 5b4a77f615

View File

@@ -9,9 +9,40 @@ source \
"${BASEDIR}/system.conf" "${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 if [[ "${1}" == '-1' ]]; then
mmdebstrap \ mmdebstrap \
--include='' \ --skip=check/empty \
--components=main,restricted,universe,multiverse \
--mode=root \
--format=directory \
${include} \
"${UBUNTU_VERSION_CODENAME}" \ "${UBUNTU_VERSION_CODENAME}" \
/mnt /mnt
elif [[ "${1}" == '-2' ]]; then elif [[ "${1}" == '-2' ]]; then