mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
update initialize zram
This commit is contained in:
parent
1a1962dbde
commit
084159714b
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 ..."
|
||||
|
|
Loading…
Reference in a new issue