Debian Bug report logs - #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; Maintainer for live-debconfig is Live Systems Maintainers <debian-live@lists.debian.org>; Source for live-debconfig is src:live-debconfig.

Reported by: cscs <cscs@lavabit.com>

Date: Wed, 23 Jan 2013 11:48:02 UTC

Severity: minor

Done: Daniel Baumann <daniel.baumann@progress-technologies.net>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, cscs@lavabit.com, Debian Live Project <debian-live@lists.debian.org>:
Bug#698766; Package live-debconfig. (Wed, 23 Jan 2013 11:48:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to cscs <cscs@lavabit.com>:
New Bug report received and forwarded. Copy sent to cscs@lavabit.com, Debian Live Project <debian-live@lists.debian.org>. (Wed, 23 Jan 2013 11:48:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: cscs <cscs@lavabit.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: live-debconfig: Installing services resets the symlinks in /etc/rc*.d using live-debconfig to create an LXC container (debian template)
Date: Wed, 23 Jan 2013 12:45:51 +0100
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 sent to daniel.baumann@progress-technologies.net:
You have taken responsibility. (Wed, 23 Jan 2013 12:12:12 GMT) Full text and rfc822 format available.

Notification sent to cscs <cscs@lavabit.com>:
Bug acknowledged by developer. (Wed, 23 Jan 2013 12:12:12 GMT) Full text and rfc822 format available.

Message #10 received at 698766-done@bugs.debian.org (full text, mbox):

From: Daniel Baumann <daniel.baumann@progress-technologies.net>
To: cscs <cscs@lavabit.com>
Cc: 698766-done@bugs.debian.org
Subject: Re: Bug#698766: live-debconfig: Installing services resets the symlinks in /etc/rc*.d using live-debconfig to create an LXC container (debian template)
Date: Wed, 23 Jan 2013 13:13:19 +0100
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/



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 21 Feb 2013 07:27:03 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 00:38:20 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.