获取ks模板文件

it2022-05-05  106

获取ks模板文件 yum install lorax cd /usr/share/doc/lorax-19.6.66 ls rhel7-livemedia.ks rhel7-minimal.ks rhel-atomic-pxe-live.ks

rhel7-minimal.ks

# Minimal Disk Image # sshpw --username=root --plaintext randOmStrinGhERE # Firewall configuration firewall --enabled # Use network installation url --url=http://repo/rhel7.0/Server/os repo --name=optional --baseurl=http://repo/rhel7.0/Server/optional/os # Root password rootpw --plaintext removethispw # Network information network --bootproto=dhcp --onboot=on --activate # System authorization information auth --useshadow --enablemd5 # System keyboard keyboard --xlayouts=us --vckeymap=us # System language lang en_US.UTF-8 # SELinux configuration selinux --enforcing # Installation logging level logging --level=info # Shutdown after installation shutdown # System timezone timezone US/Eastern # System bootloader configuration bootloader --location=mbr # Clear the Master Boot Record zerombr # Partition clearing information clearpart --all # Disk partitioning information part / --fstype="ext4" --size=4000 part swap --size=1000 %post # Remove root password passwd -d root > /dev/null # Remove random-seed rm /var/lib/systemd/random-seed %end %packages @core kernel memtest86+ grub2-efi grub2 shim syslinux -dracut-config-rescue %end

rhel-atomic-pxe-live.ks

# Settings for unattended installation: lang en_US.UTF-8 keyboard us timezone America/New_York zerombr clearpart --all --initlabel rootpw --plaintext atomic network --bootproto=dhcp --device=link --activate # We are only able to install atomic with separate /boot partition currently part / --fstype="ext4" --size=6000 part /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.ks services --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 %post cat /dev/null > /etc/fstab %end posted on 2016-05-05 11:23 北京涛子 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/liujitao79/p/5461181.html


最新回复(0)