replace script with direct rsync call

This commit is contained in:
Tobias Powalowski 2023-02-14 06:28:23 +01:00
parent 107b1e9930
commit fc315296aa

View file

@ -30,7 +30,9 @@ echo "zstd" >/sys/block/zram0/comp_algorithm
echo "4G" >/sys/block/zram0/disksize echo "4G" >/sys/block/zram0/disksize
mkfs.btrfs /dev/zram0 &>/dev/null mkfs.btrfs /dev/zram0 &>/dev/null
mount -o discard /dev/zram0 /sysroot &>/dev/null mount -o discard /dev/zram0 /sysroot &>/dev/null
rsync-backup.sh / /sysroot &>/dev/null rsync -aAXv --numeric-ids \
--exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found","/sysroot/*"} \
"/" "/sysroot" / /sysroot &>/dev/null
touch /etc/initrd-release touch /etc/initrd-release
systemctl start initrd-switch-root systemctl start initrd-switch-root
} }