set DPkg::Chroot-Directory in APT_CONFIG #34

Merged
josch merged 1 commits from DPkg-Chroot-Directory into main 6 months ago
josch commented 1 year ago
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 merged commit fd33bd2a40 into main 6 months ago
josch deleted branch DPkg-Chroot-Directory 6 months ago
The pull request has been merged as fd33bd2a40.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b DPkg-Chroot-Directory main
git pull origin DPkg-Chroot-Directory

Step 2:

Merge the changes and update on Gitea.
git checkout main
git merge --no-ff DPkg-Chroot-Directory
git push origin main
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
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
Loading…
There is no content yet.