1, Anaconda Introduction
Anaconda:fodora Maintenance of Linux system installation program
Anaconda divides the entire Linux system installation process into 2 phases:
Pre-installation configuration:
Select keyboard type, language during installation , supported languages, time zone
Select the disk device to use, partition format, select the package to install
Set the administrator password, whether to start iptables, whether to enable SELinux
Installation phase:
Create a root file system on the target disk
To install the selected package to the destination disk
The Anaconda program can set up various configurations of the system installation interactively, or it can read Anaconda configuration file anaconda.conf to set, Anaconda-ks.cfg also called Kickstart file.
System pre-installation configuration is divided into two categories:
Required Items:
Must be configured in the Kickstart file, otherwise the Anaconda program will stop running and wait for configuration to complete.
Available options:
2. Components of the Kickstart file
Command segment: for configuring the system
Install indicates installation system
text indicates that the installation system
Part Partition
Firewall Firewall settings
Package segment: Specify the package group to install (@ Group name) and package (package name), one per line
Using the%packages ID,% identifies the end of the package segment
@Base Package Group
lftp Bag
Script segment: non-mandatory
%pre : Pre-installation script before security process starts
The operation can be performed in a small, limited environment, because only the isolinux environment
%post: Scripts that are executed after all package installation is complete
At this point, the shell environment has a complete sense
After each installation of the system, the kickstart file for this installation system is generated in the Roo user's home directory:
[[email protected] ~]# lsanaconda-ks.cfg install.log install.log.syslog[[ email protected] ~]# cat anaconda-ks.cfg # kickstart file Automatically generated by anaconda. #version =develinstallcdrom # Set the location of the installation tree (various files depending on the system installation, such as software RPM packages) to support Http,ftp,nfslang en_us. utf-8keyboard usnetwork --onboot no --device eth0 --bootproto dhcp -- Noipv6network --onboot no --device eth1 --bootproto dhcp --noipv6rootpw --iscrypted $6$pldqkqeo8y.e2/g3$y/tgve0wt/v9. Fevxfsl.smfftmlpmhpzkdmfrzymnzi5xa77gjycdzcix0e3gw8/m7htbfbjcsp8zbshcw7y1firewall --service=sshauthconfig --enableshadow --passalgo=sha512selinux --enforcingtimezone Asia/Shanghaibootloader --location=mbr --driveorder=sda --append= "Crashkernel=auto rhgb quiet" # The Following is the partition information you requested # "#" is followed by a space indicating the comment information # note that any Partitions you deleted are not expressed# here so unless you clear all partitions first, this is# not guaranteed to work #clearpart --none # "#" No space after the expression should normally be enabled, but each installation of the system, the choice is not the same, automatically annotated #part /boot --fstype=ext4 --size=500#part / - -fstype=ext4 --size=18459#part swap --size=2000repo --name= "CentOS" --baseurl= cdrom:sr0 --cost=100%packages@Chinese-support@core@desktop-platform-devel@development@server-platform-devel@server-policy@workstation-policydesktop-fil The e-utils-jpackage-utils # -indicates that the package is not installed, which may be within a package group, but if the package is dependent on a package, it will still be installed,- Number does not take effect%end # indicates end of package segment
"Linux Essentials" 25, Kickstart unattended installation Linux system