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
unset ROOT_PASSWORD
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
brub-install
mkdir /snap
@ -145,11 +146,3 @@ function post_install_stage(){
umount -l $LINE;
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
}