Bug#758307: installation-reports: First user not added to the lpadmin group
On Sun, Aug 17, 2014 at 08:35:45AM +0100, Brian Potkin wrote:
> On Sun 17 Aug 2014 at 08:29:57 +0200, Christian PERRIER wrote:
> > Still:
> > # Allow preseeding the groups to which the first created user is added
> > Template: passwd/user-default-groups
> > Type: string
> > Default: audio cdrom dip floppy video plugdev netdev powerdev scanner bluetooth debian-tor lpadmin
> > Description: for internal use only
> > The code that uses this:
> > if [ -n "$USER" ]; then
> > db_get passwd/user-default-groups
> > for group in $RET; do
> > $log $chroot $ROOT adduser "$USER" $group >/dev/null 2>&1 || true
> > done
> > fi
> > After more thinking, my (wild) guess is that, at the time this is
> > done, these groups...do not exist on the system. And "adduser <user>
> > <group>" then fails when "<group>" doesn't exist.
> > If I'm right, there are probably traces of this is the installer log, I'd guess.
> Not such a wild guess.
> Aug 16 16:06:42 user-setup: Adding user `brian' to group `netdev' ...
> Aug 16 16:06:42 user-setup: Adding user brian to group netdev
> Aug 16 17:06:42 gpasswd: user brian added by root to group netdev
> Aug 16 16:06:42 user-setup: Done.
> Aug 16 16:06:42 user-setup: adduser: The group `powerdev' does not exist.
I think you can safely drop group "powerdev" from d-i (well, the
This group isn't really used anymore nowadays.
It was originally used in the D-Bus policy files, but that is no more.
This is now all handled dynamically via polkit.