From 25564b1d7e2468705d0c4dcd84c7b098d55db020 Mon Sep 17 00:00:00 2001 From: verita84 Date: Thu, 8 Dec 2022 05:12:26 +0000 Subject: [PATCH] Update 'debian.sh' --- debian.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debian.sh b/debian.sh index d505f0a..293a865 100755 --- a/debian.sh +++ b/debian.sh @@ -3,6 +3,7 @@ #Configure this section ######################## PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +export DEBIAN_FRONTEND=noninteractive TARGET='/install' mkdir $TARGET ###################################### @@ -11,7 +12,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='test2' USB_BACKUP='/dev/disk/by-uuid/1a143f83-d4fe-4894-8e67-2b6d3baacea6' ###################################### USER="verita84" @@ -122,7 +123,7 @@ install() { echo "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" > $TARGET/setup.sh echo "deb https://deb.debian.org/debian sid main contrib non-free" >>$TARGET/etc/apt/sources.list chroot $TARGET /usr/bin/apt update - chroot $TARGET /usr/bin/apt install -y $PACKAGES + chroot $TARGET /usr/bin/bash -c "export DEBIAN_FRONTEND=noninteractive;/usr/bin/apt install -y $PACKAGES" locale accounts auto_login @@ -374,7 +375,6 @@ wifi() { zram() { echo -e "ALGO=zstd\nPERCENT=60" | sudo tee -a $TARGET/etc/default/zramswap } - show-help() { echo echo "debian.sh arguments:"