From 084159714bee197cbec62d2f460c221fcbaa0c0e Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 1 Jun 2022 21:02:51 +0200 Subject: [PATCH] update initialize zram --- usr/bin/archboot-update-installer.sh | 3 +++ usr/lib/archboot/update-installer.sh | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/bin/archboot-update-installer.sh b/usr/bin/archboot-update-installer.sh index e30af4c6c..a24d97970 100755 --- a/usr/bin/archboot-update-installer.sh +++ b/usr/bin/archboot-update-installer.sh @@ -35,6 +35,9 @@ done _archboot_check _download_latest echo -e "\033[1mInformation:\033[0m Logging is done on \033[1m/dev/tty7\033[0m ..." +_gpg_check +# remove pacman-key init service +rm /etc/systemd/system/pacman-init.service _zram_initialize # Generate new environment and launch it with kexec if [[ "${_L_COMPLETE}" == "1" || "${_L_INSTALL_COMPLETE}" == "1" ]]; then diff --git a/usr/lib/archboot/update-installer.sh b/usr/lib/archboot/update-installer.sh index 129fd32cd..000f49736 100644 --- a/usr/lib/archboot/update-installer.sh +++ b/usr/lib/archboot/update-installer.sh @@ -127,7 +127,6 @@ _zram_initialize() { 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/*"\ --exclude="./mnt/*" --exclude="./media/*" --exclude="./lost+found" --exclude="./new_root/*" -clpf - . | tar -C /new_root -xlspf - - /bin/mount -t devtmpfs devtmpfs /new_root/dev systemctl switch-root /new_root else echo -e "/ already moved to /dev/zram0 ..."