[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#698766: live-debconfig: Installing services resets the symlinks in /etc/rc*.d using live-debconfig to create an LXC container (debian template)



Package: live-debconfig
Severity: minor

According to http://lists.debian.org/debian-live/2012/08/msg00174.html

"...we can replace the links with links to /bin/true, and update-rc.d will leave them alone on upgrades...".

The second part of the statement is not working.

The problem is: installing a service will reset the symlinks in /etc/rc*.

Test:

After container creation, do the following:


root@template:~# ls -la /etc/rc6.d/
total 12
drwxr-xr-x  2 root root 4096 Jan  3 20:00 .
drwxr-xr-x 38 root root 4096 Jan  3 20:45 ..
lrwxrwxrwx  1 root root   20 Jan  3 17:19 K01hwclock.sh -> ../init.d/hwclock.sh
lrwxrwxrwx  1 root root   18 Jan  3 17:19 K01sendsigs -> ../init.d/sendsigs
lrwxrwxrwx  1 root root   17 Jan  3 17:19 K01urandom -> ../init.d/urandom
lrwxrwxrwx  1 root root   32 Jan  3 20:00 K02umountnfs.sh ->
/bin/live-initscripts-empty-stop
lrwxrwxrwx  1 root root   20 Jan  3 17:19 K03networking -> ../init.d/networking
lrwxrwxrwx  1 root root   32 Jan  3 20:00 K04umountfs ->
/bin/live-initscripts-empty-stop
lrwxrwxrwx  1 root root   32 Jan  3 20:00 K05umountroot ->
/bin/live-initscripts-empty-stop
lrwxrwxrwx  1 root root   16 Jan  3 17:19 K06reboot -> ../init.d/reboot
-rw-r--r--  1 root root  351 Mar 17  2012 README


root@template:~# apt-get install --no-install-recommends rsyslog
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  rsyslog-mysql rsyslog-pgsql rsyslog-doc rsyslog-gnutls
rsyslog-gssapi rsyslog-relp
Recommended packages:
  logrotate
The following NEW packages will be installed:
  rsyslog
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 545 kB of archives.
After this operation, 1,336 kB of additional disk space will be used.
Get:1 http://http.us.debian.org/debian/
wheezy/main rsyslog amd64
5.8.11-2 [545 kB]
Fetched 545 kB in 5s (97.9 kB/s)
Selecting previously unselected package rsyslog.
(Reading database ... 10562 files and directories currently installed.)
Unpacking rsyslog (from .../rsyslog_5.8.11-2_amd64.deb) ...
Setting up rsyslog (5.8.11-2) ...
[ ok ] Starting enhanced syslogd: rsyslogd.


root@template:~# ls -la /etc/rc6.d/
total 12
drwxr-xr-x  2 root root 4096 Jan  3 20:46 .
drwxr-xr-x 41 root root 4096 Jan  3 20:46 ..
lrwxrwxrwx  1 root root   18 Jan  3 17:19 K01sendsigs -> ../init.d/sendsigs
lrwxrwxrwx  1 root root   17 Jan  3 17:19 K01urandom -> ../init.d/urandom
lrwxrwxrwx  1 root root   17 Jan  3 20:46 K02rsyslog -> ../init.d/rsyslog
lrwxrwxrwx  1 root root   20 Jan  3 20:46 K03hwclock.sh -> ../init.d/hwclock.sh
lrwxrwxrwx  1 root root   22 Jan  3 20:46 K03umountnfs.sh ->
.../init.d/umountnfs.sh
lrwxrwxrwx  1 root root   20 Jan  3 20:46 K04networking -> ../init.d/networking
lrwxrwxrwx  1 root root   18 Jan  3 20:46 K05umountfs -> ../init.d/umountfs
lrwxrwxrwx  1 root root   20 Jan  3 20:46 K06umountroot -> ../init.d/umountroot
lrwxrwxrwx  1 root root   16 Jan  3 20:46 K07reboot -> ../init.d/reboot
-rw-r--r--  1 root root  351 Mar 17  2012 README


The links pointing to /bin/live-initscripts-empty-stop disappeared.

I'm wondering that why you call this in the changelog of 4.0~a3-1 an
"upgrade safe" way:

"Reworking disabling and removal of sysvinit services in a non hardcoded and upgrade safe way."




-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages live-debconfig depends on:
ii  debconf  1.5.46

Versions of packages live-debconfig recommends:
ii  debconf-utils       1.5.48
pn  live-debconfig-doc  <none>

live-debconfig suggests no packages.


Reply to: