diff --git a/debian.sh b/debian.sh index 821a8d4..10bafbe 100755 --- a/debian.sh +++ b/debian.sh @@ -181,6 +181,11 @@ decryptBoot() { configure-repository() { echo 'force-unsafe-io' >$TARGET/etc/dpkg/dpkg.cfg.d/docker-apt-speedup + #Prevent this Kernel from being automatically installed + echo "Package: linux-image-rt-amd64" > $TARGET/etc/apt/preferences + echo "Pin: release *" >> $TARGET/etc/apt/preferences + echo "Pin-Priority: -1" >> $TARGET/etc/apt/preferences + if [ "$DEBIAN_RELEASE" == "testing" ]; then echo "deb https://deb.debian.org/debian $DEBIAN_RELEASE main contrib non-free non-free-firmware" >$TARGET/etc/apt/sources.list chroot $TARGET /usr/bin/apt update @@ -310,7 +315,6 @@ bootloader() { echo "GRUB_CMDLINE_LINUX=cryptdevice=UUID=$(/sbin/blkid | grep $BTRFS | cut -d '"' -f2):$ROOT_MAPPER_NAME root=UUID=$(/sbin/blkid | grep $ROOT_MAPPER_NAME | cut -d '"' -f4) rootflags=subvol@${ROOT_NAME} mitigations=-off" >>/etc/default/grub echo "GRUB_ENABLE_CRYPTODISK=n" >>/etc/default/grub echo "GRUB_DISABLE_OS_PROBER=true" >>/etc/default/grub - echo "GRUB_THEME=/boot/grub/themes/theme.txt" >>/etc/default/grub /sbin/grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=debian /sbin/update-grub fi