Skip to content

Instantly share code, notes, and snippets.

@lzap
Created April 30, 2024 13:55
Show Gist options
  • Save lzap/92997dbe3a095972a872f18957dd5918 to your computer and use it in GitHub Desktop.
Save lzap/92997dbe3a095972a872f18957dd5918 to your computer and use it in GitHub Desktop.
Satellite and mkksiso
%pre
cat /sys/class/net/*/address | grep -v 00:00:00:00:00:00 | awk '{print "X-RHN-Provisioning-MAC-" NR ": "unused $0}' > /tmp/pre_headers
curl -H @/tmp/pre_headers -k https://satellite/unattended/provision > /tmp/pre_kickstart
%end
%include /tmp_prekickstart
@lzap
Copy link
Author

lzap commented Apr 30, 2024

Command:

mkiso -c "ip=dhcp" --ks kicsktart.ks input.iso output.iso

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment