yum install loraxcd /usr/share/doc/lorax-19.6.66lsrhel7-livemedia.ks rhel7-minimal.ks rhel-atomic-pxe-live.ks
rhel7-minimal.ks
# Minimal Disk Image#sshpw --username=root --plaintext randOmStrinGhERE# Firewall configurationfirewall --enabled# Use network installationurl --url=http://repo/rhel7.0/Server/osrepo --name=optional --baseurl=http://repo/rhel7.0/Server/optional/os# Root passwordrootpw --plaintext removethispw# Network informationnetwork --bootproto=dhcp --onboot=on --activate# System authorization informationauth --useshadow --enablemd5# System keyboardkeyboard --xlayouts=us --vckeymap=us# System languagelang en_US.UTF-8# SELinux configurationselinux --enforcing# Installation logging levellogging --level=info# Shutdown after installationshutdown# System timezonetimezone US/Eastern# System bootloader configurationbootloader --location=mbr# Clear the Master Boot Recordzerombr# Partition clearing informationclearpart --all# Disk partitioning informationpart / --fstype="ext4" --size=4000part swap --size=1000%post# Remove root passwordpasswd -d root > /dev/null# Remove random-seedrm /var/lib/systemd/random-seed%end%packages@corekernelmemtest86+grub2-efigrub2shimsyslinux-dracut-config-rescue%end
rhel-atomic-pxe-live.ks
# Settings for unattended installation:lang en_US.UTF-8keyboard ustimezone America/New_Yorkzerombrclearpart --all --initlabelrootpw --plaintext atomicnetwork --bootproto=dhcp --device=link --activate# We are only able to install atomic with separate /boot partition currentlypart / --fstype="ext4" --size=6000part /boot --size=500 --fstype="ext4"shutdown# Using ostree repo included in installation iso. Respective ostreesetup command is included here.# The included kickstart file with the command is created during installation iso compose.%include /usr/share/anaconda/interactive-defaults.ksservices --disabled=cloud-init,cloud-init-local,cloud-final,cloud-config,docker-storage-setup# We copy content of separate /boot partition to root part when building live squashfs image,# and we don't want systemd to try to mount it when pxe booting%postcat /dev/null > /etc/fstab%end
posted on 2016-05-05 11:23 阅读( ...) 评论( ...)