mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
new zram move for latest and local image
This commit is contained in:
parent
75c37bc4a8
commit
cfc0c8b646
1 changed files with 11 additions and 2 deletions
|
@ -37,10 +37,19 @@ echo -e "\033[1mInformation:\033[0m Logging is done on \033[1m/dev/tty7\033[0m .
|
|||
_zram_initialize
|
||||
# Generate new environment and launch it with kexec
|
||||
if [[ "${_L_COMPLETE}" == "1" || "${_L_INSTALL_COMPLETE}" == "1" ]]; then
|
||||
if ! [[ grep zram /proc/mounts ]]; then
|
||||
modprobe zram
|
||||
echo zstd > /sys/block/zram0/comp_algorithm > /dev/tty7 2>&1
|
||||
echo 3500M > /sys/block/zram0/disksize > /dev/tty7 2>&1
|
||||
mkfs.btrfs -q --mixed /dev/zram0 > /dev/tty7 2>&1
|
||||
mount /dev/zram0 /new_root
|
||||
echo $0 $1 > /etc/profile.d/zz-01-archboot.sh
|
||||
systemctl switch-root /new_root
|
||||
fi
|
||||
_update_installer_check
|
||||
touch /.update-installer
|
||||
_umount_w_dir
|
||||
_zram_w_dir "${_ZRAM_SIZE}"
|
||||
#_umount_w_dir
|
||||
#_zram_w_dir "${_ZRAM_SIZE}"
|
||||
echo -e "\033[1mStep 1/9:\033[0m Waiting for gpg pacman keyring import to finish ..."
|
||||
_gpg_check
|
||||
echo -e "\033[1mStep 2/9:\033[0m Removing not necessary files from / ..."
|
||||
|
|
Loading…
Reference in a new issue