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

5 lines
184 B
Bash
Executable File

#!/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