mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix mounting
This commit is contained in:
parent
77850b0c0d
commit
7bcb6bbf89
1 changed files with 7 additions and 7 deletions
|
@ -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/*" \
|
||||||
|
|
Loading…
Reference in a new issue