From 4b3c60f80f6bf81dda0854be5edb88a4a23feedc Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 31 Dec 2022 15:49:20 -0700 Subject: [PATCH] fix --- debian.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian.sh b/debian.sh index 2bbce17..52207f9 100755 --- a/debian.sh +++ b/debian.sh @@ -156,6 +156,7 @@ install() { echo "deb https://deb.debian.org/debian $DEBIAN_RELEASE main contrib non-free" >>$TARGET/etc/apt/sources.list chroot $TARGET /usr/bin/apt update chroot $TARGET /usr/bin/bash -c "export DEBIAN_FRONTEND=noninteractive;/usr/bin/apt install -y $PACKAGES" + wget -q https://github.com/AdisonCavani/distro-grub-themes/raw/master/themes/debian.tar -O $TARGET/etc/default/debian.tar locale accounts auto_login @@ -176,6 +177,9 @@ desktop(){ systemctl disable --now redis-server systemctl disable --now postgresql systemctl disable --now apparmor + systemctl disable --now nfs-server + systemctl disable --now smbd + systemctl disable --now rpbind apt -y purge apparmor } @@ -221,11 +225,14 @@ kernel-packages(){ } bootloader() { + mkdir /boot/grub/themes + tar xf /etc/default/debian.tar -C /boot/grub/themes/ echo "root UUID=$(/sbin/blkid | grep $BTRFS | cut -d '"' -f2) none luks" > /etc/crypttab /sbin/update-initramfs -c -k all echo "GRUB_CMDLINE_LINUX_DEFAULT=\"quiet splash\"" >/etc/default/grub echo "GRUB_CMDLINE_LINUX=cryptdevice=UUID=$(/sbin/blkid | grep $BTRFS | cut -d '"' -f2):root root=UUID=$(/sbin/blkid | grep root | cut -d '"' -f4) rootflags=subvol@${ROOT_NAME} mitigations=-off" >>/etc/default/grub echo "GRUB_ENABLE_CRYPTODISK=y" >>/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 }