kickstart 安装 ubuntu 14.04 LTS 无需干预,也无需交换

kickstart 安装 ubuntu 14.04 LTS 无需干预,也无需交换

感谢以前关于自动安装的问题,但是我在执行自动安装时遇到了没有交换分区的问题。

这是我的ks.cfg

#Generated by Kickstart Configurator
#platform=AMD64 or Intel EM64T

#System language
lang en_US
#Language modules to install
langsupport en_US
#System keyboard
keyboard us
#System mouse
mouse
#System timezone
timezone --utc UTC
#Root password
rootpw --disabled
#Initial user
user deleteme [...]
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use CDROM installation media
cdrom
#System bootloader configuration
bootloader --location=mbr 
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel 
#Disk partitioning information
part / --fstype ext4 --size 1 --grow --asprimary 
part swap --size 100
#System authorization infomation
auth  --useshadow  --enablemd5 
#Firewall configuration
firewall --disabled 
#Do not configure the X Window System
skipx
#Install these packages
%packages
openssh-server
# After system is installed, remove the apt.conf file with debproxy defined.
%post
rm -rf /etc/apt/apt.conf
%end

注释掉该part swap --size 100行会导致安装程序发出警告并创建提示。我尝试将大小设置为,0但这会导致另一个问题,从而产生许多提示。有没有办法摆脱交换并且不出现愚蠢的提示?

相关内容