update initialize zram

This commit is contained in:
Tobias Powalowski 2022-06-01 21:19:03 +02:00
parent b9178ce427
commit 776aff3005

View file

@ -127,7 +127,7 @@ _zram_initialize() {
echo "update-installer.sh ${_RUN_OPTION}" > /etc/profile.d/zz-01-archboot.sh echo "update-installer.sh ${_RUN_OPTION}" > /etc/profile.d/zz-01-archboot.sh
tar -C / --exclude="./dev/*" --exclude="./proc/*" --exclude="./sys/*" --exclude="./tmp/*" --exclude="./run/*"\ tar -C / --exclude="./dev/*" --exclude="./proc/*" --exclude="./sys/*" --exclude="./tmp/*" --exclude="./run/*"\
--exclude="./mnt/*" --exclude="./media/*" --exclude="./lost+found" --exclude="./new_root/*" -clpf - . | tar -C /new_root -xlspf - --exclude="./mnt/*" --exclude="./media/*" --exclude="./lost+found" --exclude="./new_root/*" -clpf - . | tar -C /new_root -xlspf -
systemctl switch-root /new_root systemctl switch-root /new_root --force --no-block
else else
echo -e "/ already moved to /dev/zram0 ..." echo -e "/ already moved to /dev/zram0 ..."
rm /etc/profile.d/zz-01-archboot.sh rm /etc/profile.d/zz-01-archboot.sh