Update 'debian.sh'
This commit is contained in:
parent
ac6f99d5e6
commit
25564b1d7e
@ -3,6 +3,7 @@
|
|||||||
#Configure this section
|
#Configure this section
|
||||||
########################
|
########################
|
||||||
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
TARGET='/install'
|
TARGET='/install'
|
||||||
mkdir $TARGET
|
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)"
|
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)"
|
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)"
|
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'
|
USB_BACKUP='/dev/disk/by-uuid/1a143f83-d4fe-4894-8e67-2b6d3baacea6'
|
||||||
######################################
|
######################################
|
||||||
USER="verita84"
|
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 "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
|
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 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
|
locale
|
||||||
accounts
|
accounts
|
||||||
auto_login
|
auto_login
|
||||||
@ -374,7 +375,6 @@ wifi() {
|
|||||||
zram() {
|
zram() {
|
||||||
echo -e "ALGO=zstd\nPERCENT=60" | sudo tee -a $TARGET/etc/default/zramswap
|
echo -e "ALGO=zstd\nPERCENT=60" | sudo tee -a $TARGET/etc/default/zramswap
|
||||||
}
|
}
|
||||||
|
|
||||||
show-help() {
|
show-help() {
|
||||||
echo
|
echo
|
||||||
echo "debian.sh arguments:"
|
echo "debian.sh arguments:"
|
||||||
|
Loading…
Reference in New Issue
Block a user