fix
This commit is contained in:
parent
688b75a27b
commit
e228f1ce58
@ -62,12 +62,9 @@ VIRTUALIZATION=" virt-manager qemu-system libvirt-daemon-system ovmf cockpit-mac
|
||||
PACKAGES=$BASE_PACKAGES$PACKAGES$SHARED_DESKTOP_APPS
|
||||
#PACKAGES=$BASE_PACKAGES
|
||||
SERVICES+=(powertop preload)
|
||||
TAR_EXCLUDES="--exclude=/.snapshots --exclude=/snapshots --exclude=/var/backups --exclude=/volumes/* --exclude=/mnt/* --exclude=/var/tmp/* --exclude=/tmp/* --exclude=/raid/* --exclude=/root/* --exclude=/var/cache/apt/archives/* --exclude=/proc/* --exclude=/.snapshots/* --exclude=$TARGET/* --exclude=/var/lib/libvirt/* --exclude=/dev/* --exclude=/sys/* --exclude=/home/* --exclude=/var/lib/flatpak --exclude=/var/lib/postgresql --exclude=/var/lib/containers"
|
||||
|
||||
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
|
||||
#sed -i "s/#autologin-user=/autologin-user=$USER/" $TARGET/etc/lightdm/lightdm.conf
|
||||
#sed -i "s/#autologin-user-timeout=0/autologin-user-timeout=0/ " $TARGET/etc/lightdm/lightdm.conf
|
||||
mkdir -p $TARGET/etc/sddm.conf.d
|
||||
echo "[Autologin]" >$TARGET/etc/sddm.conf.d/autologin
|
||||
echo "User=$USER" >>$TARGET/etc/sddm.conf.d/autologin
|
||||
@ -83,13 +80,13 @@ create-os-snapshots() {
|
||||
echo "[Creating new OS snapshot to $BACKUP_DISK_IMAGES/$1.tgz]"
|
||||
echo
|
||||
echo
|
||||
time tar cpzf $BACKUP_DISK_IMAGES/$1.tgz --exclude=/snapshots --exclude=/var/backups --exclude=/volumes/* --exclude=/mnt/* --exclude=/var/tmp/* --exclude=/tmp/* --exclude=/raid/* --exclude=/root/* --exclude=/var/cache/apt/archives/* --exclude=/proc/* --exclude=/.snapshots/* --exclude=$TARGET/* --exclude=/var/lib/libvirt/* --exclude=/dev/* --exclude=/sys/* --exclude=/home/* --exclude=/var/lib/flatpak --exclude=/var/lib/postgresql --exclude=/var/lib/containers /
|
||||
time tar cpzf $BACKUP_DISK_IMAGES/$1.tgz $TAR_EXCLUDES /
|
||||
chown $USER:$USER $BACKUP_DISK_IMAGES/$1.tgz
|
||||
else
|
||||
echo "[Creating new OS snapshot to $2/$1.tgz]"
|
||||
echo
|
||||
echo
|
||||
time tar cpzf $2/$1.tgz --exclude=/snapshots --exclude=/var/backups --exclude=/volumes/* --exclude=/mnt/* --exclude=/var/tmp/* --exclude=/tmp/* --exclude=/raid/* --exclude=/root/* --exclude=/var/cache/apt/archives/* --exclude=/proc/* --exclude=/.snapshots/* --exclude=$TARGET/* --exclude=/var/lib/libvirt/* --exclude=/dev/* --exclude=/sys/* --exclude=/home/* --exclude=/var/lib/flatpak --exclude=/var/lib/postgresql --exclude=/var/lib/containers /
|
||||
time tar cpzf $2/$1.tgz --exclude=/snapshots $TAR_EXCLUDES /
|
||||
chown $USER:$USER $2/$1.tgz
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user