Wednesday, June 12, 2019

system installation - kickstart install ubuntu 14.04 LTS without intervention and no swap

Thanks for previous questions about automatic installation, but I am running into an issue doing an automatic install without getting a swap partition.


Here is my 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

Commenting out the part swap --size 100 line causes the installer to complain and create a prompt. I've tried setting the size to 0 but that causes another issue that causes many prompts. Is there a way to get rid of swap and not get silly prompts?

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...