fix
This commit is contained in:
parent
d2dea50fef
commit
4b3c60f80f
@ -156,6 +156,7 @@ install() {
|
|||||||
echo "deb https://deb.debian.org/debian $DEBIAN_RELEASE main contrib non-free" >>$TARGET/etc/apt/sources.list
|
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/apt update
|
||||||
chroot $TARGET /usr/bin/bash -c "export DEBIAN_FRONTEND=noninteractive;/usr/bin/apt install -y $PACKAGES"
|
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
|
locale
|
||||||
accounts
|
accounts
|
||||||
auto_login
|
auto_login
|
||||||
@ -176,6 +177,9 @@ desktop(){
|
|||||||
systemctl disable --now redis-server
|
systemctl disable --now redis-server
|
||||||
systemctl disable --now postgresql
|
systemctl disable --now postgresql
|
||||||
systemctl disable --now apparmor
|
systemctl disable --now apparmor
|
||||||
|
systemctl disable --now nfs-server
|
||||||
|
systemctl disable --now smbd
|
||||||
|
systemctl disable --now rpbind
|
||||||
apt -y purge apparmor
|
apt -y purge apparmor
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -221,11 +225,14 @@ kernel-packages(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootloader() {
|
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
|
echo "root UUID=$(/sbin/blkid | grep $BTRFS | cut -d '"' -f2) none luks" > /etc/crypttab
|
||||||
/sbin/update-initramfs -c -k all
|
/sbin/update-initramfs -c -k all
|
||||||
echo "GRUB_CMDLINE_LINUX_DEFAULT=\"quiet splash\"" >/etc/default/grub
|
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_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_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/grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=debian
|
||||||
/sbin/update-grub
|
/sbin/update-grub
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user