Put packages to include via mmdebstrap into array
This commit is contained in:
@@ -9,32 +9,44 @@ source \
|
||||
"${BASEDIR}/system.conf"
|
||||
|
||||
|
||||
packages=(\
|
||||
console-setup \
|
||||
cryptsetup \
|
||||
curl \
|
||||
dosfstools \
|
||||
dpkg-dev \
|
||||
efibootmgr \
|
||||
ethtool \
|
||||
firmware-{ast,atheros,bnx{2,2x},brcm80211,iwlwifi,libertas,linux,realtek,zd1211} \
|
||||
flatpak \
|
||||
keyboard-configuration \
|
||||
linux-{headers,image}-amd64 \
|
||||
locales \
|
||||
nano \
|
||||
network-manager \
|
||||
openssh-{client,server} \
|
||||
popularity-contest \
|
||||
printer-driver-all \
|
||||
systemd-timesyncd \
|
||||
tasksel \
|
||||
zfs-initramfs \
|
||||
zstd\
|
||||
)
|
||||
|
||||
|
||||
include="--include=${packages[0]}"
|
||||
|
||||
for ((i=1;i<${#packages[@]};i++)); do
|
||||
include+=" --include=${packages[${i}]}"
|
||||
done
|
||||
|
||||
if [[ "${1}" == '-1' ]]; then
|
||||
mmdebstrap \
|
||||
--skip=check/empty \
|
||||
--components=main,non-free-firmware,contrib \
|
||||
--mode=root \
|
||||
--format=directory \
|
||||
--include=console-setup \
|
||||
--include=cryptsetup \
|
||||
--include=curl \
|
||||
--include=dosfstools \
|
||||
--include=dpkg-dev \
|
||||
--include=efibootmgr \
|
||||
--include=ethtool \
|
||||
--include=firmware-{ast,atheros,bnx{2,2x},brcm80211,iwlwifi,libertas,linux,realtek,zd1211} \
|
||||
--include=flatpak \
|
||||
--include=keyboard-configuration \
|
||||
--include=linux-{headers,image}-amd64 \
|
||||
--include=locales \
|
||||
--include=nano \
|
||||
--include=network-manager \
|
||||
--include=openssh-{client,server} \
|
||||
--include=popularity-contest \
|
||||
--include=printer-driver-all \
|
||||
--include=systemd-timesyncd \
|
||||
--include=tasksel \
|
||||
--include=zstd \
|
||||
${include} \
|
||||
"${VERSION_CODENAME}" \
|
||||
/mnt
|
||||
elif [[ "${1}" == '-2' ]]; then
|
||||
|
||||
Reference in New Issue
Block a user