Commit b95caa9b authored by Michael Shigorin's avatar Michael Shigorin

lib/ve.mk: introduced ve/bare

A minimal chroot supporting extension via apt-get; vitals if built on Sisyphus as of Jan 16, 2012: i586: 13M tar.xz, 58M chroot (33M w/o /usr/share/{doc,locale,man}) x86_64: 14M tar.xz, 60M chroot (35M w/o /usr/share/{doc,locale,man}) Trivial fixups (extra checks) added to two script hooks.
parent 804cedbc
......@@ -6,6 +6,8 @@
# candidates:
# off: keytable
[ -x /sbin/chkconfig ] || exit 0
for i in network random syslogd random; do chkconfig $i on; done
for i in fbsetfont netfs rawdevices; do chkconfig $i off; done
:
#!/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
......@@ -9,6 +9,9 @@ ifeq (ve,$(IMAGE_CLASS))
ve/.bare: profile/bare
@$(call add,BASE_PACKAGES,basesystem)
ve/bare: ve/.bare
@$(call add,BASE_PACKAGES,apt)
ve/generic: ve/.bare
@$(call add,BASE_LISTS,\
$(call tags,base && (server || network || security || pkg)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment