On Fri, Dec 17, 2021 at 11:17:28PM +0100, Dennis Filder wrote:
> On Fri, Dec 17, 2021 at 09:49:01PM +0100, Marc Haber wrote:
> > sudo.prerm will error out unconditionally if there is no root password
> > set. This breaks the replacement of sudo with sudo-ldap in autopkgtest
> > environments and makes ugly workarounds necessary. How would we make
> > this better?
> 
> I don't see the issue here.  That was put in there for a very good
> reason: to not bork the system if something goes wrong during the
> replacement.  A system without a root password set is a very
> unorthodox use case.

If you run the Debian installer with default settings, you get a system
without root password. I guess the majority of desktop installations run
that way.

> Running autopkgtest with --env=SUDO_FORCE_REMOVE=yes should make this
> work.

As far as I know, you generally cannot control the environment in all
autopkgtest instances.

> Of course, it would be nicer if the format for d/tests/control
> offered something like Extra-Environment: to specify (a file with
> definitions of) additional environment variables for a set of tests.

Yes.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

Reply via email to