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
|
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
TARGET='/mnt'
|
TARGET='/install'
|
||||||
mkdir $TARGET
|
mkdir $TARGET
|
||||||
######################################
|
######################################
|
||||||
echo
|
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)"
|
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='testing'
|
||||||
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"
|
||||||
@ -49,7 +49,6 @@ VIRTUALIZATION=" virt-manager qemu-system libvirt-daemon-system ovmf "
|
|||||||
PACKAGES=$PACKAGES$SHARED_DESKTOP_APPS$VIRTUALIZATION
|
PACKAGES=$PACKAGES$SHARED_DESKTOP_APPS$VIRTUALIZATION
|
||||||
SERVICES+=( powertop );
|
SERVICES+=( powertop );
|
||||||
|
|
||||||
|
|
||||||
auto_login(){
|
auto_login(){
|
||||||
sed -i "/#WaylandEnable=false/a AutomaticLoginEnable=True" $TARGET/etc/gdm3/daemon.conf
|
sed -i "/#WaylandEnable=false/a AutomaticLoginEnable=True" $TARGET/etc/gdm3/daemon.conf
|
||||||
sed -i "/True/a AutomaticLogin=$USER" $TARGET/etc/gdm3/daemon.conf
|
sed -i "/True/a AutomaticLogin=$USER" $TARGET/etc/gdm3/daemon.conf
|
||||||
@ -129,10 +128,11 @@ usb-restore() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
systemMounts(){
|
systemMounts(){
|
||||||
mount -o bind /dev $TARGET/dev
|
mount -o rbind /dev $TARGET/dev
|
||||||
mount -o bind /dev/pts $TARGET/dev/pts
|
mount -o rbind /dev/pts $TARGET/dev/pts
|
||||||
mount -o bind /proc $TARGET/proc
|
mount -o rbind /proc $TARGET/proc
|
||||||
mount -o bind /sys $TARGET/sys
|
mount -o rbind /sys $TARGET/sys
|
||||||
|
mount -t efivarfs none $TARGET/sys/firmware/efi/efivars
|
||||||
}
|
}
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
|
Loading…
Reference in New Issue
Block a user