Bug 1002 - dev-env-setup/mk-deb-chroot creates user in chroot with wrong uid/gid
Summary: dev-env-setup/mk-deb-chroot creates user in chroot with wrong uid/gid
Status: RESOLVED INVALID
Alias: None
Product: Libre-SOC's first SoC
Classification: Unclassified
Component: Source Code (show other bugs)
Version: unspecified
Hardware: PC Linux
: --- normal
Assignee: Luke Kenneth Casson Leighton
URL:
Depends on:
Blocks:
 
Reported: 2023-02-17 08:43 GMT by Jacob Lifshay
Modified: 2023-02-17 09:30 GMT (History)
3 users (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.