From 329950ec3f6e7c8f57c9a83bbafea84b232f2949 Mon Sep 17 00:00:00 2001 From: verita84 Date: Sat, 10 Dec 2022 22:46:40 +0000 Subject: [PATCH] Update 'debian.sh' --- debian.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/debian.sh b/debian.sh index 56615c0..3d89321 100755 --- a/debian.sh +++ b/debian.sh @@ -19,7 +19,7 @@ ######################## PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin export DEBIAN_FRONTEND=noninteractive -TARGET='/mnt' +TARGET='/install' mkdir $TARGET ###################################### echo @@ -27,7 +27,7 @@ HARD_DISK=$2 EFI="/dev/$(lsblk | grep $HARD_DISK | head -2 | tail -1 | cut -c 7-20 | cut -d ' ' -f1)" BTRFS="/dev/$(lsblk | grep $HARD_DISK | head -4 | tail -1 | cut -c 7-20 | cut -d ' ' -f1)" BOOT="/dev/$(lsblk | grep $HARD_DISK | head -3 | tail -1 | cut -c 7-20 | cut -d ' ' -f1)" -ROOT_NAME='debian' +ROOT_NAME='testing' USB_BACKUP='/dev/disk/by-uuid/1a143f83-d4fe-4894-8e67-2b6d3baacea6' ###################################### USER="verita84" @@ -49,7 +49,6 @@ VIRTUALIZATION=" virt-manager qemu-system libvirt-daemon-system ovmf " PACKAGES=$PACKAGES$SHARED_DESKTOP_APPS$VIRTUALIZATION SERVICES+=( powertop ); - auto_login(){ sed -i "/#WaylandEnable=false/a AutomaticLoginEnable=True" $TARGET/etc/gdm3/daemon.conf sed -i "/True/a AutomaticLogin=$USER" $TARGET/etc/gdm3/daemon.conf @@ -129,10 +128,11 @@ usb-restore() { } systemMounts(){ - mount -o bind /dev $TARGET/dev - mount -o bind /dev/pts $TARGET/dev/pts - mount -o bind /proc $TARGET/proc - mount -o bind /sys $TARGET/sys + mount -o rbind /dev $TARGET/dev + mount -o rbind /dev/pts $TARGET/dev/pts + mount -o rbind /proc $TARGET/proc + mount -o rbind /sys $TARGET/sys + mount -t efivarfs none $TARGET/sys/firmware/efi/efivars } install() {