Note icon indicating copy to clipboard operation
Note copied to clipboard

大佬,InstallNET.sh可以去掉swap吗

Open BrunuhVille opened this issue 3 years ago • 2 comments

InstallNET.sh安装系统,会自带1g的swap,但是有的小鸡硬盘一般,就拖累性能了 想请求大佬去掉这个自带swap的设置,或者是带参数可选加不加swap 感谢大佬了!

BrunuhVille avatar Dec 12 '21 19:12 BrunuhVille

这个可以用,每次重装后都要手动删除swap

sunpma avatar Jan 29 '22 06:01 sunpma

网上能找到相关信息。

脚本里搜索 d-i partman-auto/choose_recipe select All files in one partition (recommended for new users) 删除并且替换为

d-i partman-basicfilesystems/no_swap boolean false
d-i partman-auto/expert_recipe string myroot :: 1000 50 -1 ext4 \
     $primary{ } $bootable{ } method{ format } \
     format{ } use_filesystem{ } filesystem{ ext4 } \
     mountpoint{ / } \
    .
d-i partman-auto/choose_recipe select myroot

即可 参考链接 https://superuser.com/questions/458672/ubuntu-preseed-use-whole-disk-space-but-no-swap

Colinwood11 avatar Aug 03 '23 23:08 Colinwood11