Added proper flags to mmdebstrap
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user