Split off more Debian-related tasks into 'debian.sh'

This commit is contained in:
2025-12-24 16:32:44 -05:00
parent 16018759fb
commit 8305fa16cd
4 changed files with 97 additions and 88 deletions

View File

@@ -112,19 +112,7 @@ if [[ "${ID}" == 'fedora' ]]; then
fi
if [[ "${ID}" == 'debian' ]] || [[ "${ID}" == 'elementary' ]]; then
cat << EOF
Regardless of the language(s) you choose, be sure to enable 'en_US.UTF-8'!
Press any key to continue...
EOF
read -srn 1
dpkg-reconfigure \
locales \
tzdata \
keyboard-configuration \
console-setup
"${baseDir}/debian.sh" --dpkg-reconfigure
fi
if [[ "${ID}" == 'debian' ]]; then
@@ -155,10 +143,7 @@ mount \
/boot/efi
if [[ "${ID}" == 'debian' ]] || [[ "${ID}" == 'elementary' ]]; then
apt \
purge \
--yes \
os-prober
"${baseDir}/debian.sh" --purge-os-prober
fi
printf \
@@ -185,14 +170,7 @@ if [[ "${enableSwap}" == "yes" ]]; then
fi
if [[ "${ID}" == 'debian' ]]; then
cp \
/etc/NetworkManager/NetworkManager.conf \
/etc/NetworkManager/NetworkManager.conf.orig
cat \
/etc/NetworkManager/NetworkManager.conf.orig | \
sed 's|managed=false|managed=true|' | \
tee /etc/NetworkManager/NetworkManager.conf &> /dev/null
"${baseDir}/debian.sh" --network-manager
fi
if [[ "${ID}" == 'debian' ]] || [[ "${ID}" == 'elementary' ]]; then