Update 'debian.sh'
This commit is contained in:
parent
c217b972c0
commit
329950ec3f
14
debian.sh
14
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user