mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
replace script with direct rsync call
This commit is contained in:
parent
107b1e9930
commit
fc315296aa
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue