Apply Ubuntu phasing in the agent's sandbox #5

Merged
patrick merged 1 commits from fix/phasing-in-sandbox into main 2026-10-17 17:13:18 +00:00
Owner

apt skips phasing in chroots, which it detects by running
ischroot -t. ischroot compares / with /proc/1/root; the agent's
DynamicUser can't read /proc/1/root, so ischroot answers "chroot"
(-t = assume yes when unsure) and apt offered every phased update.
On a real 26.04 host, 4 updates apt deferred as root were reported as
installable, with 0 phased.

Pass -o Dir::Bin::ischroot=/bin/false so apt applies phasing from
/etc/machine-id exactly as it does for root. Agent 0.3.1, server 0.3.2.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

apt skips phasing in chroots, which it detects by running `ischroot -t`. ischroot compares / with /proc/1/root; the agent's DynamicUser can't read /proc/1/root, so ischroot answers "chroot" (-t = assume yes when unsure) and apt offered every phased update. On a real 26.04 host, 4 updates apt deferred as root were reported as installable, with 0 phased. Pass -o Dir::Bin::ischroot=/bin/false so apt applies phasing from /etc/machine-id exactly as it does for root. Agent 0.3.1, server 0.3.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
patrick added 1 commit 2026-10-17 17:13:12 +00:00
apt skips phasing in chroots, which it detects by running
`ischroot -t`. ischroot compares / with /proc/1/root; the agent's
DynamicUser can't read /proc/1/root, so ischroot answers "chroot"
(-t = assume yes when unsure) and apt offered every phased update.
On a real 26.04 host, 4 updates apt deferred as root were reported as
installable, with 0 phased.

Pass -o Dir::Bin::ischroot=/bin/false so apt applies phasing from
/etc/machine-id exactly as it does for root. Agent 0.3.1, server 0.3.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
patrick merged commit e86fef31e4 into main 2026-10-17 17:13:18 +00:00
patrick deleted branch fix/phasing-in-sandbox 2026-10-17 17:13:20 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: patrick/kernel-automation#5