diff --git a/entry.sh b/entry.sh index 6d44274..0cb9a07 100755 --- a/entry.sh +++ b/entry.sh @@ -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 -}