Commit Graph

32 Commits (main)

Author SHA1 Message Date
Johannes Schauer Marin Rodrigues 2856fbdda3
hooks/copy-host-apt-sources-and-preferences/setup00.sh: mkdir parent directories if necessary 6 months ago
Johannes Schauer Marin Rodrigues fd33bd2a40 set DPkg::Chroot-Directory in APT_CONFIG
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
6 months ago
Johannes Schauer Marin Rodrigues 8d91ca7b24
hooks/merged-usr: implement post-merging as debootstrap does (see #1049898) 8 months ago
Johannes Schauer Marin Rodrigues e523741610
add hooks/copy-host-apt-sources-and-preferences 10 months ago
Jochen Sprickerhof c66b41eb7e
Use dpkg-query --show to not get stuck in a pager 12 months ago
Johannes Schauer Marin Rodrigues af95b4d778
hooks/file-mirror-automount/setup00.sh: use mmdebstrap --hook-helper upload and sync-in instead of cp 1 year ago
Johannes Schauer Marin Rodrigues fb1e5c32e6
improve maybe-* hook conditions 1 year ago
Johannes Schauer Marin Rodrigues 3db3779b6a
add hooks/maybe-jessie-or-older and hooks/maybe-merged-usr 1 year ago
Johannes Schauer Marin Rodrigues 65ea2edfab
hooks/no-merged-usr/essential00.sh: symlink to ../merged-usr/essential00.sh
Both hooks need to install the real usr-is-merged package after having
installed a dummy in the setup hook even if it's for different reasons.
1 year ago
Johannes Schauer Marin Rodrigues 3ba97580ec
hooks/jessie-or-older: split into two individual hook files 1 year ago
Johannes Schauer Marin Rodrigues 2b832e0128
add jessie-or-older extract hook 1 year ago
Johannes Schauer Marin Rodrigues d442f436de
shellcheck everything 1 year ago
Johannes Schauer Marin Rodrigues 3a17a91b3c
hooks: do not require MMDEBSTRAP_VERBOSITY to be set
This allows running the hook from older mmdebstrap versions.
2 years ago
Johannes Schauer Marin Rodrigues c6c2baee6a
hooks/merged-usr/essential00.sh: avoid chroot in chrootless mode 2 years ago
Johannes Schauer Marin Rodrigues 6416ce96c9
hooks/file-mirror-automount/setup00.sh: also parse MMDEBSTRAP_INCLUDE and make it available 2 years ago
Johannes Schauer Marin Rodrigues d91a18a350
Adjust merged-/usr as it's done by debootstrap
- implements the same as debootstrap in
   https://salsa.debian.org/installer-team/debootstrap/-/merge_requests/71
 - builds a temporary usr-is-merged package and upgrades to the real one
 - create merged-/usr chroots for unstable and testing (which will
   become Debian 12 Bookworm)
 - add a dedicated merged-/usr section to the manual page
2 years ago
Johannes Schauer Marin Rodrigues 51ad1426c3
hooks/file-mirror-automount/setup00.sh: instead of grepping for Repo-URI, only output REPO_URI 2 years ago
Johannes Schauer Marin Rodrigues d96e85fddd
file-mirror-automount hook now supports modes that cannot mount (like fakechroot) by copying the repo into the chroot 2 years ago
Johannes Schauer Marin Rodrigues a238d90774
hooks/merged-usr: workaround not necessary anymore since debootstrap 1.0.125 2 years ago
Johannes Schauer Marin Rodrigues 790294ddca
hooks/merged-usr: acquire native architecture from apt-config
`dpkg --print-architecture` will be wrong when creating a foreign
architecture chroot and we cannot chroot() as the chroot directory is
still empty.
2 years ago
Johannes Schauer Marin Rodrigues b99f1d53d5
add file-mirror-automount hook-dir 2 years ago
Johannes Schauer Marin Rodrigues 21b23ebb9f
set MMDEBSTRAP_VERBOSITY in hooks 2 years ago
Johannes Schauer Marin Rodrigues df6900ec4a
hooks/eatmydata/extract.sh: fix regex to also work on s390x 2 years ago
Johannes Schauer Marin Rodrigues 8fe4fe3eda
hooks/busybox/extract00.sh: run busybox from an absolute path 3 years ago
Johannes Schauer Marin Rodrigues 6851cd7cb4
move hooks/setup00-merged-usr.sh -> hooks/merged-usr/setup00.sh, expand docs 3 years ago
Johannes Schauer Marin Rodrigues aaa7c14275
hooks/setup00-merged-usr.sh: add rationale 3 years ago
Johannes 'josch' Schauer 7c15185dfd
work around debootstrap merge_request/48 by setting link_dir 3 years ago
Johannes 'josch' Schauer 0fdf4673b9
hooks/setup00-merged-usr.sh: avoid for link_dir not having been set 4 years ago
Johannes 'josch' Schauer 0920f72996
hooks/setup00-merged-usr.sh: use /usr/share/debootstrap/functions if available and account for different architectures 4 years ago
Steve Dodd 5e66a4fb7f Fix apt-helper invocation for older versions.
Set up dpkg-divert of dpkg to avoid overwrite when dpkg is properly installed.
4 years ago
Johannes 'josch' Schauer 05d8b5f253
hooks/eatmydata: download instead of copy-ing from host 4 years ago
Johannes 'josch' Schauer 075645289f
add --hook-directory option and a directory with hooks 4 years ago