Package: lxc
Version: 0.7.4.2-3
Severity: normal
>From /usr/lib/lxc/templates/lxc-debian:
# remove pointless services in a container
chroot $rootfs /usr/sbin/update-rc.d -f checkroot.sh remove
chroot $rootfs /usr/sbin/update-rc.d -f umountfs remove
chroot $rootfs /usr/sbin/update-rc.d -f hwclock.sh remove
chroot $rootfs /usr/sbin/update-rc.d -f hwclockfirst.sh remove
chroot $rootfs /usr/sbin/update-rc.d -f module-init-tools remove
>From update-rc.d(8):
A common system administration error is to delete the links with the
thought
that this will "disable" the service, i.e., that this will prevent the
ser-
vice from being started. However, if all links have been deleted then
the
next time the package is upgraded, the package's postinst script
will run
update-rc.d again and this will reinstall links at their factory
default
locations. The correct way to disable services is to configure the
service
as stopped in all runlevels in which it is started by default. In the
System
V init system this means renaming the service's symbolic links from S to
K.
So this is not the proper way to disable those initscripts since
the next time that initscripts is upgraded in the container, they
will come back.
I'm not quite sure what the correct way is though. The suggestion above
concerns usual services and not initscripts used in runlevel 0 and 6.
I'm CCing Petter Reinholdtsen to have his advice.
It's possible that doing the opposite is the correct thing to do, i.e.
rename the symlinks form K* to S* but I'm not sure.
-- System Information:
Debian Release: wheezy/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500,
'unstable'), (500, 'testing'), (500, 'stable'), (150, 'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lxc depends on:
ii libc6 2.13-13 Embedded GNU C Library: Shared lib
ii libcap2 1:2.22-1 support for getting/setting POSIX.
Versions of packages lxc recommends:
ii debootstrap 1.0.34 Bootstrap a basic Debian system
ii libcap2-bin 1:2.22-1 basic utility programs for using c
lxc suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]