Update 'debian.sh'
This commit is contained in:
parent
ac6f99d5e6
commit
25564b1d7e
@ -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:"
|
||||
|
Loading…
Reference in New Issue
Block a user