Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- docker run -it rhel7 cat /root/anaconda-ks.cfg
- #version=DEVEL
- # Use network installation
- url --url="http://download.eng.bos.redhat.com/devel/candidate-trees/RHEL-7.2-updates-20160727.0/compose/Server/x86_64/os/"
- repo --name="koji-override-0" --baseurl=http://download.lab.bos.redhat.com/devel/candidate-trees/RHEL-7.2-updates-20160727.0/compose/Server/x86_64/os
- repo --name="Server-HighAvailability" --baseurl=http://download.eng.bos.redhat.com/devel/candidate-trees/RHEL-7.2-updates-20160727.0/compose/Server/x86_64/os//addons/HighAvailability
- repo --name="Server-ResilientStorage" --baseurl=http://download.eng.bos.redhat.com/devel/candidate-trees/RHEL-7.2-updates-20160727.0/compose/Server/x86_64/os//addons/ResilientStorage
- # Use graphical install
- graphical
- # Firewall configuration
- firewall --disabled
- firstboot --disable
- ignoredisk --only-use=vda
- # Keyboard layouts
- # old format: keyboard us
- # new format:
- keyboard --vckeymap=us --xlayouts='us'
- # System language
- lang en_US.UTF-8
- # Network information
- network --bootproto=dhcp --device=eth0 --ipv6=auto --activate
- network --hostname=localhost.localdomain
- # Reboot after installation
- reboot
- # Root password
- rootpw --iscrypted --lock locked
- # System services
- services --disabled="chronyd"
- # System timezone
- timezone America/New_York --isUtc --nontp
- user --name=none
- # System bootloader configuration
- bootloader --disabled
- # Clear the Master Boot Record
- zerombr
- # Partition clearing information
- clearpart --all
- # Disk partitioning information
- part / --fstype="xfs" --size=4096
- %post --logfile /var/log/anaconda/anaconda-post.log
- # remove the user anaconda forces us to make
- userdel -r none
- # Support for subscription-manager secrets
- ln -s /run/secrets/etc-pki-entitlement /etc/pki/entitlement-host
- ln -s /run/secrets/rhsm /etc/rhsm-host
- #Certificate specifying product - RHEL Server
- cat <<EOF > /etc/pki/product/69.pem
- -----BEGIN CERTIFICATE-----
- MIIGDTCCA/WgAwIBAgIJALDxRLt/tU6eMA0GCSqGSIb3DQEBBQUAMIGuMQswCQYD
- VQQGEwJVUzE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9kXqe1wOdF0Cwah4N6/3LzIXEEKyEJxNqQwtNc2IVE8C
- AwEAAaOBljCBkzAJBgNVHRMEAjAAMDAGCysGAQQBkggJAUUBBCEMH1JlZCBIYXQg
- RW50ZXJwcmlzZSBMaW51eCBTZXJ2ZXIwFAYLKwYBBAGSCAkBRQIEBQwDNy4yMBcG
- CysGAQQBkggJAUUDBAgMBng4Nl82NDAlBgsrBgEEAZIICQFFBAQWDBRyaGVsLTcs
- cmhlbC03LXNlcnZlcjANBgkqhkiG9w0BAQUFAAOCAgEAbx9SPI/5iWOEKo+hJ/98
- ohRdsEO/4uClzInLpjkFtqHCtWVyv/nLhdiV2Xrvw7O+byGQFaehTIE3pmL+tsuQ
- YcY9fMt3IZH+WslfMH4MnG+C9jR8exns3+TxshcnK9dykXuGkcWyHDY9YCyJx8n7
- 0XcwdrnHENsgx5kzv5FGipxwk0DUqZavv8d54H5fJlRKMfCJP4Qe9V67kB714twe
- L0ggMh6Y9u68D5iP1BIF0wOEsqvGQ/Qm7KYY9LKwVkxVS4MK0Ysmj60PlLCWJaw7
- HGY2nKkvxSnqXFcr43UDJVJYr9pawHf1Sp+yDToxUb1ok1Wnx3nLW6zjGzauMOUa
- i6f/bALCjy67e0biNJ9gfknAUOtMj2/ucfRIlLhDXRPv61YDRrBta8bIs7ZiDHdi
- R9BpKbqbZxwt8+dLOE9A9BiuF+pyO/vm6yJGY5tPFonKgzQ6JDg1AoVaZvhRt6hz
- aNQ0O39nw0WJWlYQUPF7d1oHEdmyz9zZ3daqOyZ1bMyL6ktCMfPBTnKjg0sBKfso
- mJKZW7ECMV54mFVetoHMhXK95J2gdj8KCCBRiMklNJ/CmObDLwVgiJ+aJyFWkhLx
- D9gahhTI9drID4fuiO0rRIgSAD/22bGJY/OnBPq3Fs5Cvaw619Eqth7XjJCl4POb
- Kp/OjOg7U7FJSsdrpQKT0/M=
- -----END CERTIFICATE-----
- EOF
- # Set the language rpm nodocs transaction flag persistently in the
- # image yum.conf and rpm macros
- LANG="en_US"
- echo "%_install_lang $LANG" > /etc/rpm/macros.image-language-conf
- awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
- < /etc/yum.conf > /etc/yum.conf.new
- mv /etc/yum.conf.new /etc/yum.conf
- #systemd wrongly expects "unpopulated /etc" when /etc/machine-id does not exist
- #let's leave machine-id empty
- cat /dev/null > /etc/machine-id
- #https://bugzilla.redhat.com/show_bug.cgi?id=1235969
- #rm -f /etc/fstab
- #this is not possible, guestmount needs fstab => brew build crashes without it
- #fstab is removed in TDL when tar-ing files
- rm -f /usr/lib/locale/locale-archive
- #setup at least some locale, https://bugzilla.redhat.com/show_bug.cgi?id=1129697
- localedef -v -c -i en_US -f UTF-8 en_US.UTF-8
- #https://bugzilla.redhat.com/show_bug.cgi?id=1201663
- rm -f /etc/systemd/system/multi-user.target.wants/rhsmcertd.service
- #content of /run can not be prepared if /run is tmpfs (disappears on reboot)
- umount /run
- systemd-tmpfiles --create --boot
- rm -rf /var/cache/yum/*
- rm -f /tmp/ks-script*
- %end
- %packages --excludedocs --nocore --instLangs=en
- bash
- findutils
- gdb-gdbserver
- kexec-tools
- python-rhsm
- rootfiles
- subscription-manager
- systemd
- vim-minimal
- yum
- yum-plugin-ovl
- yum-utils
- -e2fsprogs
- -firewalld
- -kernel
- -kexec-tools
- -xfsprogs
- %end
- %addon com_redhat_kdump --enable --reserve-mb='auto'
- %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement