debian: 尝试支持 256M 内存安装

This commit is contained in:
bin456789
2024-03-31 01:07:33 +08:00
parent ffa7b63d93
commit f53f45b41f
2 changed files with 39 additions and 3 deletions

View File

@ -107,7 +107,7 @@ d-i partman/early_command string \
anna-install fdisk-udeb; \
cp $postinst $postinst.orig; \
echo "fallocate -l 256M $swapfile; mkswap $swapfile; swapon $swapfile; $postinst.orig" >$postinst; \
echo "fallocate -l 384M $swapfile; mkswap $swapfile; swapon $swapfile; $postinst.orig" >$postinst; \
echo "swapoff $swapfile; rm $swapfile" >/usr/lib/finish-install.d/95swapoff; \
chmod a+x /usr/lib/finish-install.d/95swapoff; \