fix mounting

This commit is contained in:
Tobias Powalowski 2023-11-17 11:04:14 +01:00
parent 77850b0c0d
commit 7bcb6bbf89

View file

@ -35,13 +35,13 @@ if [[ "${TTY}" = "tty1" ]]; then
clear clear
: > /.archboot : > /.archboot
[[ -d /sysroot ]] || mkdir /sysroot [[ -d /sysroot ]] || mkdir /sysroot
(modprobe zram &>"${_NO_LOG}"; (modprobe zram &>"${_NO_LOG}"
modprobe zstd &>"${_NO_LOG}"; modprobe zstd &>"${_NO_LOG}"
echo "1" >/sys/block/zram0/reset; echo "1" >/sys/block/zram0/reset
echo "zstd" >/sys/block/zram0/comp_algorithm; echo "zstd" >/sys/block/zram0/comp_algorithm
echo "5G" >/sys/block/zram0/disksize; echo "5G" >/sys/block/zram0/disksize
mkfs.btrfs /dev/zram0 &>"${_NO_LOG}") & mkfs.btrfs /dev/zram0 &>"${_NO_LOG}"
mount -o discard /dev/zram0 /sysroot &>"${_NO_LOG}" mount -o discard /dev/zram0 /sysroot &>"${_NO_LOG}") &
_progress_wait "1" "5" "Creating btrfs on /dev/zram0..." "1" _progress_wait "1" "5" "Creating btrfs on /dev/zram0..." "1"
: > /.archboot : > /.archboot
(tar -C / --exclude="./dev/*" --exclude="./proc/*" --exclude="./sys/*" \ (tar -C / --exclude="./dev/*" --exclude="./proc/*" --exclude="./sys/*" \