Commit 37032d1
fix(chroot): add Dpkg conffile options to prevent interactive prompts
When a cached rootfs contains a modified conffile (e.g. ubuntu-pro-client's
/etc/apt/apt.conf.d/20apt-esm-hook.conf), dpkg prompts during apt-get
install. In a non-interactive chroot stdin is closed, so dpkg reads EOF
and exits with error 1 -- causing the build to fail after 3 retries.
DEBIAN_FRONTEND=noninteractive alone is insufficient: the conffile prompt
is driven by dpkg's own logic and is not suppressed by the frontend var
when stdin is a closed pipe rather than a terminal.
Fix: pass --force-confdef and --force-confold as Dpkg options in the
central chroot_sdcard_apt_get function so all apt-get invocations in
chroot builds resolve conffile conflicts without prompting.
This resolves the Beaglebadge_resolute_vendor_6.18.y_gnome_desktop failure
where ubuntu-pro-client and its 9 dependent packages all failed to
configure because of this conffile prompt.1 parent a7f3a94 commit 37032d1
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
73 | 81 | | |
74 | 82 | | |
75 | 83 | | |
| |||
0 commit comments