Changes

Jump to: navigation, search

Ubuntu Precise template creation

488 bytes added, 14:40, 16 February 2016
Disabled services added/fixed.
Disable hardware-related configs:
sed -i.orig -e 's,^#!.*,#!/bin/true,' /etc/init.d/ondemand sed -i.orig -e 's,\Disable(.* | \)\(sysctl .*\),\1 /bin/true \2,' { local f="/etc/init/procps$1.conf" sed -i.orig -e 's,^console output,, ; s,^env INIT_VERBOSE,,' local o="/etc/init/rc$1.confoverride" sed test -i.orig s "$o" && grep -e 's/qw "^\manual" "$ModLoad imklog/#o" && return echo "manual # \DISABLE UNDER OPENVZ" >> "$ModLoad imklog/g' /etc/rsyslog.confo" } Disable console Disable console-font Disable console-setup
:
mkdir /root/etc_init_console_ttyDisable ondemand Disable setvtrgb : Disable hwclock Disable hwclock-save : Disable ureadahead Disable ureadahead-other : Disable plymouth Disable plymouth-log Disable plymouth-ready Disable plymouth-shutdown Disable plymouth-splash Disable plymouth-stop Disable plymouth-upstart-bridge : Disable tty2 Disable tty3 Disable tty4 Disable tty5 Disable tty6 : Disable udev Disable udev-fallback-graphics Disable udev-finish Disable udevmonitor Disable udevtrigger : mv /etcsed -i.orig -e '/init| sysctl /console* s,$, || :,' /etc/init/tty* procps.conf sed -i.orig -e 's,^\$ModLoad imklog,## \$ModLoad imklog,g' /rootetc/etc_init_console_ttyrsyslog.conf
Cleanup and leave chroot:
apt-get clean
find /var/cache/apt /var/lib/apt/lists -type f -delete
apt-get clean
exit
12
edits

Navigation menu