set DPkg::Chroot-Directory in APT_CONFIG #34

Merged
josch merged 1 commit from DPkg-Chroot-Directory into main 2023-10-28 13:26:05 +00:00
Owner

this is so that users calling apt-get install from a hook only need to have APT_CONFIG=$MMDEBSTRAP_APT_CONFIG set and do not also have to pass -oDPkg::Chroot-Directory="$1"

This breaks users running apt-get with DPkg::Options::=--force-script-chrootless or with Dpkg::Pre-Install-Pkgs from within a hook with APT_CONFIG=$MMDEBSTRAP_APT_CONFIG.

In those situations, DPkg::Chroot-Directory has to be set to the empty string explicitly with -o to overwrite the APT_CONFIG setting.

Thanks: Helmut Grohne

this is so that users calling `apt-get install` from a hook only need to have `APT_CONFIG=$MMDEBSTRAP_APT_CONFIG` set and do not also have to pass `-oDPkg::Chroot-Directory="$1"` This breaks users running apt-get with `DPkg::Options::=--force-script-chrootless` or with `Dpkg::Pre-Install-Pkgs` from within a hook with `APT_CONFIG=$MMDEBSTRAP_APT_CONFIG`. In those situations, `DPkg::Chroot-Directory` has to be set to the empty string explicitly with `-o` to overwrite the `APT_CONFIG` setting. Thanks: Helmut Grohne
josch added 1 commit 2023-03-22 08:29:50 +00:00
josch force-pushed DPkg-Chroot-Directory from 32fa6ff7bd to 9cea818727 2023-03-22 08:40:21 +00:00 Compare
josch merged commit fd33bd2a40 into main 2023-10-28 13:26:04 +00:00
josch deleted branch DPkg-Chroot-Directory 2023-10-28 13:26:06 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: josch/mmdebstrap#34
No description provided.