Use system live-build if running on Debian

This commit is contained in:
Aleksey Samoilov 2023-02-10 00:03:31 +04:00
parent e50a183e72
commit a1524ad10a

View file

@ -23,9 +23,18 @@ echo -e "
#----------------------#
"
apt-get update
# Use system live-build if running on Debian
dist="$(lsb_release -i -s)"
if [ $dist == "Debian" ]; then
apt-get install -y binutils zstd live-build
dpkg -i ./debs/ubuntu-keyring*.deb
elif [ $dist == "Ubuntu" ]; then
apt-get install -y binutils zstd
dpkg -i ./debs/*.deb
else
echo "E: Unsupported distribution for building"
fi
ln -sfn /usr/share/debootstrap/scripts/gutsy /usr/share/debootstrap/scripts/lunar