mkimage-profiles/features.in/build-ve/image-scripts.d/04inittab

5 lines
184 B
Plaintext
Raw Normal View History

#!/bin/sh -e
# we don't need no gettys in OpenVZ VEs (might need one in LXC though)
[ -s /etc/inittab ] || exit 0
sed -i 's,^[0-9]\+:[0-9]\+:respawn:/sbin/mingetty.*,#&,' /etc/inittab