This commit is contained in:
j3d1 2020-02-06 12:08:56 +01:00
parent 713c8a8041
commit 0c0c23554a

View file

@ -110,7 +110,8 @@ function second_stage(){
) | passwd ) | passwd
unset ROOT_PASSWORD unset ROOT_PASSWORD
echo -n > /etc/motd echo -n > /etc/motd
update_sources sed -i 's/main/main contrib non-free/g' /etc/apt/sources.list
apt update
apt install -y linux-image-amd64 grub2 cryptsetup btrfs-progs lvm2 firmware-iwlwifi locales tzdata keyboard-configuration console-common zsh apt install -y linux-image-amd64 grub2 cryptsetup btrfs-progs lvm2 firmware-iwlwifi locales tzdata keyboard-configuration console-common zsh
brub-install brub-install
mkdir /snap mkdir /snap
@ -145,11 +146,3 @@ function post_install_stage(){
umount -l $LINE; umount -l $LINE;
done done
} }
function update_sources(){
if [ ! grep -Fxq "contrib" /etc/apt/sources.list ]
then
sed -i 's/main/main contrib non-free/g' /etc/apt/sources.list
apt update
fi
}