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

Bug#657550: Further info: use of debconf-set-selections in hook also ineffective



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 to: