mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 20:39:14 +08:00
nixos: 修复超过 2g 内存时无法安装
This commit is contained in:
parent
1461a9bd0f
commit
0693dbbc64
4
trans.sh
4
trans.sh
@ -1331,7 +1331,9 @@ install_nixos() {
|
|||||||
|
|
||||||
# 挂载分区,创建 swapfile
|
# 挂载分区,创建 swapfile
|
||||||
mount_part_basic_layout /os /os/efi
|
mount_part_basic_layout /os /os/efi
|
||||||
create_swap $swap_size /os/swapfile
|
if [ "$swap_size" -gt 0 ]; then
|
||||||
|
create_swap "$swap_size" /os/swapfile
|
||||||
|
fi
|
||||||
|
|
||||||
# 步骤
|
# 步骤
|
||||||
# 1. 安装 nix (nix-xxx)
|
# 1. 安装 nix (nix-xxx)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user