Debian Bug report logs - #657550
live-build: Using preseed to set user default groups fails

version graph

Package: live-build; Maintainer for live-build is Live Systems Maintainers <debian-live@lists.debian.org>; Source for live-build is src:live-build.

Reported by: Nick Bailey <nick@n-ism.org>

Date: Thu, 26 Jan 2012 22:57:01 UTC

Severity: normal

Found in version live-build/3.0~a42-1

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, Debian Live Project <debian-live@lists.debian.org>:
Bug#657550; Package live-build. (Thu, 26 Jan 2012 22:57:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nick Bailey <nick@n-ism.org>:
New Bug report received and forwarded. Copy sent to Debian Live Project <debian-live@lists.debian.org>. (Thu, 26 Jan 2012 22:57:04 GMT) Full text and rfc822 format available.

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

From: Nick Bailey <nick@n-ism.org>
To: submit@bugs.debian.org
Subject: live-build: Using preseed to set user default groups fails
Date: Thu, 26 Jan 2012 22:52:59 +0000
Package: live-build
Version: 3.0~a42-1
Severity: normal

Dear Maintainer,

   * What led up to the situation?

Attempting to add a default group for the live user as per section
494/5 of the manual

http://live.debian.net/manual/html/live-manual.en.html#494

fails


   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Adding a line to /usr/share/live/build/scripts/build/lb_chroot_preseed
confirms that my file is considered for copying to the chroot directory
correctly.

The contents of the preseed file are shown below:

root@ingrid:~# cat smrg-live/config/preseed/my.preseed.chroot 
user-setup passwd/user-default-groups string audio cdrom dip floppy video plugdev netdev powerdev scanner bluetooth iocard

(the group iocard, created by the installed package libcomedi0, has
been added to the default list).

Invoking debconf-show user-setup within the live system shows a different
set of default groups, including debian-tor.

It is possible to add a script in /lib/live/config using the
includes.chroot mechanism to check whether user is in group iocard and
add user to that group if required, but the method described in the
manual does not work.

   * What was the outcome of this action?

The default group of user was not set correctly

   * What outcome did you expect instead?

That the groups to which user belonged were as listed in the preseed file.



-- Package-specific info:

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (750, 'testing'), (600, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.1.0-1-686-pae (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages live-build depends on:
ii  debootstrap  1.0.38

Versions of packages live-build recommends:
ii  cpio                            2.11-7
ii  gettext-base                    0.18.1.1-5
ii  gnu-fdisk                       1.2.4-3
ii  live-boot-doc                   3.0~a24-1
ii  live-config-doc                 3.0~a31-1
ii  live-manual-html [live-manual]  1:3.0~a9-1
ii  live-manual-pdf [live-manual]   1:3.0~a9-1

Versions of packages live-build suggests:
pn  dosfstools                  3.0.12-1
pn  genisoimage                 9:1.1.11-2
pn  memtest86+                  4.20-1.1
pn  mtools                      4.0.12-1
pn  parted                      <none>
pn  squashfs-tools | mtd-tools  <none>
pn  sudo                        1.8.3p1-2
pn  syslinux | grub             <none>
pn  uuid-runtime                <none>
pn  win32-loader                <none>

-- no debconf information





Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live Project <debian-live@lists.debian.org>:
Bug#657550; Package live-build. (Sat, 28 Jan 2012 20:36:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nick Bailey <nick@n-ism.org>:
Extra info received and forwarded to list. Copy sent to Debian Live Project <debian-live@lists.debian.org>. (Sat, 28 Jan 2012 20:36:04 GMT) Full text and rfc822 format available.

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

From: Nick Bailey <nick@n-ism.org>
To: 657550@bugs.debian.org
Subject: Further info: use of debconf-set-selections in hook also ineffective
Date: Sat, 28 Jan 2012 20:32:47 +0000
As an additional test I had the following executable script
in the chroot by placing it in
config/hooks/500-add-user-to-iocard-group.chroot

8<----
#!/bin/sh

echo
echo "NB: live-config hook: adding user to group iocard"

cmd="user-setup passwd/user-default-groups string audio cdrom dip floppy video plugdev netdev powerdev scanner bluetooth iocard"

echo "NB:   piping the following to debconf-set-selections: $cmd"
echo $cmd | debconf-set-selections 

8<----

The log file shows the following:

8<----
P: Begin executing hooks...

NB: live-config hook: adding user to group iocard
NB:   piping the following to debconf-set-selections: user-setup passwd/user-default-groups string audio cdrom dip floppy video plugdev netdev powerdev scanner bluetooth iocard
NB: Running ldconfig to recognise locally installed libraries
Reading package lists...
Building dependency tree...
Reading state information...
Del libqtgui4 4:4.7.3-5 [5297 kB]
Del libqt4-xml 4:4.7.3-5 [149 kB]
Del libqt4-test 4:4.7.3-5 [101 kB]
Del libqtcore4 4:4.7.3-5 [2838 kB]
Del libcurl3-gnutls 7.23.1-3 [312 kB]
Del libqt4-network 4:4.7.3-5 [759 kB]
Del libqt4-dbus 4:4.7.3-5 [282 kB]
Del pm-utils 1.4.1-8 [127 kB]
Del libqt4-script 4:4.7.3-5 [1098 kB]
Del libqt4-core 4:4.7.3-5 [38.5 kB]
[2012-01-27 16:28:56] lb_chroot_hacks 
P: Begin executing hacks...
8<----

However, the groups are still not set as expected. Could it be that something
is overriding the passwd/user-default-groups setting later on?

Nick/.





Reply sent to daniel.baumann@progress-technologies.net:
You have taken responsibility. (Mon, 06 Feb 2012 23:12:08 GMT) Full text and rfc822 format available.

Notification sent to Nick Bailey <nick@n-ism.org>:
Bug acknowledged by developer. (Mon, 06 Feb 2012 23:12:08 GMT) Full text and rfc822 format available.

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

From: Daniel Baumann <daniel.baumann@progress-technologies.net>
To: Nick Bailey <nick@n-ism.org>
Cc: 657550-done@bugs.debian.org
Subject: Re: Bug#657550: live-build: Using preseed to set user default groups fails
Date: Tue, 07 Feb 2012 00:11:52 +0100
On 01/26/2012 11:52 PM, Nick Bailey wrote:
> Attempting to add a default group for the live user as per section
> 494/5 of the manual

please use LIVE_USER_DEFAULT_GROUPS resp. user-default-groups= in
live-config, see live-config manpage; in that specific case you can't
really preseed user-setup the way you intend to do it.




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 06 Mar 2012 07:37:29 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: Fri Apr 18 08:28:15 2014; Machine Name: beach.debian.org

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