Bug 1002

Summary: dev-env-setup/mk-deb-chroot creates user in chroot with wrong uid/gid
Product: Libre-SOC's first SoC Reporter: Jacob Lifshay <programmerjake>
Component: Source CodeAssignee: Luke Kenneth Casson Leighton <lkcl>
Status: RESOLVED INVALID    
Severity: normal CC: libre-soc-bugs, lkcl, programmerjake
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Linux   
NLnet milestone: --- total budget (EUR) for completion of task and all subtasks: 0
budget (EUR) for this task, excluding subtasks' budget: 0 parent task for budget allocation:
child tasks for budget allocation: The table of payments (in EUR) for this task; TOML format:

Description Jacob Lifshay 2023-02-17 08:43:48 GMT
if the host's uid isn't 1000, then the chroot doesn't end up with the same uid as the host, making sudo not work in the chroot.

I verified schroot doesn't fixup the uid to match.
Comment 1 Luke Kenneth Casson Leighton 2023-02-17 09:30:41 GMT
yes. too bad. this is normal for chroots, you fix it in the host, by having
the same uid, or you bind-mount the home directory into the schroot.