fix
This commit is contained in:
parent
f6dd769204
commit
336c269284
@ -181,6 +181,11 @@ decryptBoot() {
|
|||||||
configure-repository() {
|
configure-repository() {
|
||||||
echo 'force-unsafe-io' >$TARGET/etc/dpkg/dpkg.cfg.d/docker-apt-speedup
|
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
|
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
|
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
|
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_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_ENABLE_CRYPTODISK=n" >>/etc/default/grub
|
||||||
echo "GRUB_DISABLE_OS_PROBER=true" >>/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/grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=debian
|
||||||
/sbin/update-grub
|
/sbin/update-grub
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user