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

Re: Bug#969631: can base-passwd provide the user _apt?



Hi Colin,

Quoting Colin Watson (2022-09-16 23:30:11)
> Coming back to this thread, I think I've reached the conclusion that
> trying to migrate the uid is too risky due to the various weird and
> wonderful things that might need to be changed to match, and it makes
> more sense to just add the uid and leave existing systems alone.
> 
> The patch you posted earlier has a couple of problems (a missing colon,
> and I think it makes more sense to set nogroup as _apt's primary group
> rather than gid 42 which is in fact the "shadow" group), but I've gone
> ahead and committed this:
> 
>   https://salsa.debian.org/debian/base-passwd/-/commit/dc157c65936b15b44d359fcbd10481f101bd9c15
> 
> I tested this both by making a stock chroot and then upgrading
> (preserved existing uid), and by using "sudo mmdebstrap --hook-dir
> /usr/share/mmdebstrap/hooks/file-mirror-automount --include
> ./base-passwd_3.6.1_amd64.deb unstable unstable" to ensure that the new
> version is installed first (used uid 42).
> 
> Last call for objections before upload!

I've rebuilt base-passwd with above patch and applied the following patch to
apt:

https://salsa.debian.org/apt-team/apt/-/merge_requests/260

I can confirm that with these two changes, I can create a working minimal
chroot.

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature


Reply to: