@mrz1
2018-01-14T06:45:18.000000Z
字数 3437
阅读 890
自动化
sr0 11:0 1 3.7G 0 rom /var/www/html/centos/7sr1 11:1 1 8.1G 0 rom /var/www/html/centos/6
[root@centos7 ksdir]#cat ks6-desktop.cfg# Kickstart file automatically generated by anaconda.#version=DEVELinstallreboottexturl --url=http://192.168.27.6/centos/6/lang en_US.UTF-8keyboard usnetwork --onboot yes --device eth0 --bootproto dhcp --noipv6rootpw --iscrypted $6$0ApPfIO1$YGbB.gKGJA3S5klOW/ePF6PjutrSGcTAad5s6lxuP1Gyez3UFPUUl7X7KHzyo.EWq.UVV3kwhgIc4DJitRA8W.firewall --disabledauthconfig --enableshadow --passalgo=sha512selinux --disabledtimezone Asia/Shanghaibootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet"# The following is the partition information you requested# Note that any partitions you deleted are not expressed# here so unless you clear all partitions first, this is# not guaranteed to workclearpart --allzerombrpart /boot --fstype=ext4 --size=1024part / --fstype=ext4 --size=50000part /app --fstype=ext4 --size=20000part swap --size=2048%packages@base@core@debugging@basic-desktop@desktop-debugging@desktop-platform@directory-client@fonts@general-desktop@graphical-admin-tools@input-methods@internet-applications@internet-browser@java-platform@legacy-x@network-file-system-client@office-suite@print-client@remote-desktop-clients@server-platform@server-policy@workstation-policy@x11mtoolspaxpython-dmidecodeoddjobwodimsgpiogenisoimagedevice-mapper-persistent-dataabrt-guisamba-winbindcertmongerpam_krb5krb5-workstationlibXmu%end%postuseradd wangecho magedu | passwd --stdin wang &> /dev/null%end
[root@centos7 ksdir]#cat ks7-pxe.cfg#version=DEVEL# System authorization informationauth --enableshadow --passalgo=sha512# Use CDROM installation mediaurl --url=http://192.168.109.143/centos/7# Use graphical installfirewall --disabledselinux --disabledtextreboot# Run the Setup Agent on first bootfirstboot --disableignoredisk --only-use=sda# Keyboard layoutskeyboard --vckeymap=us --xlayouts='us'# System languagelang en_US.UTF-8# Network informationnetwork --bootproto=dhcp --device=ens33 --onboot=on --ipv6=auto --activatenetwork --hostname=centos7.qifei.com# Root passwordrootpw --iscrypted $6$zvNPHt.AnyhKAFGT$GhLgXK5VyYGIgFr60TopFHzVUersaacruSe0MYnVZB4vbGNLHCDPTfbiKW1Ry.V9S9NdGis.qmnP/MSnfXt7R0# System servicesservices --disabled="chronyd"# System timezonetimezone Asia/Shanghai --isUtc --nontpuser --name=fei --password=$6$wrdu0VH2CF1hufHn$FpKs8T.4z65C9HFoDiB8Z6SmERCjBJt2LGhNOvnnDhYzm4Lt58qJ2dryg8mqHvYTnGDp6igP8M0748Hx7i8XW. --iscrypted --gecos="fei"# X Window System configuration informationxconfig --startxonboot# System bootloader configurationbootloader --location=mbr --boot-drive=sda# Partition clearing informationzerombrclearpart --all --initlabel# Disk partitioning informationpart swap --fstype="swap" --ondisk=sda --size=2048part / --fstype="xfs" --ondisk=sda --size=51200part /boot --fstype="xfs" --ondisk=sda --size=1024part /app --fstype="xfs" --ondisk=sda --size=20480eula --agreed%packages@base@core@dial-up@fonts@gnome-desktop@guest-agents@guest-desktop-agents@internet-browser@multimedia@network-file-system-client@networkmanager-submodules@print-client@x11%end%addon com_redhat_kdump --disable --reserve-mb='auto'%end%anacondapwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notemptypwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyokpwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty%end%postrm -f /etc/yum.repo.d/*cat > /etc/yum.repos.d/base.repo <<EOF[base]name = centos7basebaseurl = file:///misc/cd/gpgcheck = 0EOFecho magedu |passwd --stdin fei &> /dev/null%end