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

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



Your message dated Wed, 23 Jan 2013 13:13:19 +0100
with message-id <50FFD3DF.3060601@progress-technologies.net>
and subject line Re: Bug#698766: live-debconfig: Installing services resets the symlinks in /etc/rc*.d using live-debconfig to create an LXC container (debian template)
has caused the Debian Bug report #698766,
regarding live-debconfig: Installing services resets the symlinks in /etc/rc*.d using live-debconfig to create an LXC container (debian template)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
698766: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=698766
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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.

--- End Message ---
--- Begin Message ---
On 01/23/2013 12:45 PM, cscs wrote:
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.

i know, that's why:

commit c02a9c430f3e696ede0b2fba56fb1d7b1249c2ea
Author: Daniel Baumann <daniel@debian.org>
Date:   Fri Aug 17 10:46:13 2012 +0200

Replacing /bin/true symlinks with an empty initscript to fake LSB headers in sysvinit script.

--
Address:        Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email:          daniel.baumann@progress-technologies.net
Internet:       http://people.progress-technologies.net/~daniel.baumann/

--- End Message ---

Reply to: