Skip to content

Instantly share code, notes, and snippets.

@spheromak
Last active December 11, 2015 12:38
Show Gist options
  • Select an option

  • Save spheromak/4601851 to your computer and use it in GitHub Desktop.

Select an option

Save spheromak/4601851 to your computer and use it in GitHub Desktop.
First boot static network over kernel params
%post --log=/var/log/post_install.log
# ensure we have xvc0 console
if [ -f /dev/xvc0 ] ; then
echo "co:2345:respawn:/sbin/agetty xvc0 9600 vt100-nav" >> /etc/inittab
echo "xvc0" >> /etc/securetty
fi
# install CA cert bundle
wget -O/etc/pki/tls/certs/ca-bundle.crt http://curl.haxx.se/ca/cacert.pem
mkdir /data
wget -O /etc/init.d/boot_setup http://pipe.f00bar.com.s3.amazonaws.com/boot_setup
chmod 755 /etc/init.d/boot_setup
. /etc/init.d/boot_setup
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment