User Tools

Site Tools


kickstart_file_example

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
kickstart_file_example [2023/08/10 19:29] stevekickstart_file_example [2023/08/14 13:50] (current) steve
Line 2: Line 2:
 This builds a machine with known partitions and a known root password This builds a machine with known partitions and a known root password
  
-<code>+<code bash ks.ks>
  #version=RHEL7  #version=RHEL7
  # System authorization information  # System authorization information
Line 15: Line 15:
  # Use text install  # Use text install
 text text
 +
 + # Reboot after install
 +reboot --eject
  
  # Run the Setup Agent on first boot  # Run the Setup Agent on first boot
Line 28: Line 31:
  # Network information  # Network information
 network  --bootproto=dhcp --onboot=on --ipv6=auto network  --bootproto=dhcp --onboot=on --ipv6=auto
-network  --hostname=media-srj-ndt-test-c7.voip.com+network  --hostname=changeme.cyli.org
  
  # Root password  # Root password
-rootpw --iscrypted $6$GsAW0S/07xHgUyWd$doV1nU/kBTUIWLSirqD./R.g69xLVDjJ2zJNUjK3t6IJBWryMRr854M3AM380i0yUAks90O4nJ4WoZ9d42cqX0+rootpw --iscrypted $6$GsAW0S/07xHgUyWd$doV1nU/kBTUIWLSirqD./R.g69xLVDEdKjJ2zJNUjK3t6IJBdIYW4v9hQM380i0yUAks90O4nJ4WoZ9d42cqX0 
 +        # Generate tha password with; 
 +        # python -c 'import crypt,getpass;pw=getpass.getpass();print(crypt.crypt(pw) \ 
 +        # if (pw==getpass.getpass("Confirm: ")) else exit())'
  
  # System timezone  # System timezone
Line 58: Line 64:
 @core @core
 kexec-tools kexec-tools
 +vim-minimal
 %end %end
  
 %addon com_redhat_kdump --enable --reserve-mb='auto' %addon com_redhat_kdump --enable --reserve-mb='auto'
 +%end
  
 %post %post
-CFG=$(ls /etc/sysconfig/network-scripts/ifcfg-e*) +CFG=$(ls /etc/sysconfig/network-scripts/ifcfg-e* | head -1
-echo "DOMAIN=\"dns1.example.com dns2.example.com example.com\"" >> ${CFG} +echo "DOMAIN=\"cotton.cyli.org cyli.org voip.cyli.org\"" >> ${CFG}
 %end %end
 </code> </code>
kickstart_file_example.1691695759.txt.gz · Last modified: by steve