Merge branch 'mmdebstrap' into 'main'

This commit is contained in:
2025-07-19 14:42:08 -04:00
parent 043af45213
commit 7442994d18
4 changed files with 38 additions and 29 deletions

View File

@@ -40,8 +40,8 @@ else
fi
if [[ "${ID}" == 'debian' ]]; then
if [[ ! "${HOST}" == "debian-live" ]]; then
cat << EOF | tee /mnt/etc/apt/sources.list.d/contrib.sources &> /dev/null
if [[ ! "$(hostname)" == "debian-live" ]]; then
cat << EOF | tee /etc/apt/sources.list.d/contrib.sources 1> /dev/null
Enabled: yes
Types: deb
URIs: http://deb.debian.org/debian/
@@ -66,7 +66,7 @@ if [[ "${ID}" == 'debian' ]]; then
apt \
install \
--yes \
debootstrap \
mmdebstrap \
gdisk \
zfsutils-linux \
systemd-timesyncd
@@ -100,7 +100,7 @@ fi
timedatectl
if [[ ! "${HOST}" == "debian-live" ]]; then
if [[ ! "$(hostname)" == "debian-live" ]]; then
zgenhostid \
-f \
0x00bab10c
@@ -428,11 +428,36 @@ mkdir \
/mnt/run/lock
if [[ "${ID}" == 'elementary' ]]; then
debootstrap \
mmdebstrap \
--include='' \
"${UBUNTU_VERSION_CODENAME}" \
/mnt
elif [[ "${ID}" == 'debian' ]]; then
debootstrap \
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 \
"${VERSION_CODENAME}" \
/mnt
fi
@@ -502,6 +527,8 @@ Suites: ${VERSION_CODENAME}-updates
Components: main non-free-firmware contrib
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
EOF
rm /mnt/etc/apt/sources.list
fi
mount \