Skip to content

Instantly share code, notes, and snippets.

@iMilnb iMilnb/userdata.sh
Last active Oct 11, 2016

Embed
What would you like to do?
Transform Debian Jessie AMI to `sysvinit`
# Simply add the following to the Userdata script so the
# instance bootstrap sequence transforms the debian jessie
# systemd init to good old sysvinit.
# initial method from
# http://without-systemd.org/wiki/index.php/How_to_remove_systemd_from_a_Debian_jessie/sid_installation
# but using a safer and actually working `cat ><<EOF` method
apt-get -y install sysvinit-core sysvinit sysvinit-utils
apt-get remove --purge --auto-remove systemd
cat >/etc/apt/preferences.d/systemd<<EOF
Package: systemd
Pin: origin ""
Pin-Priority: -1
Package: *systemd*
Pin: origin ""
Pin-Priority: -1
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.