apt also needs /var/lib to exist

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-12-22 10:17:58 +01:00
parent 6c5210a94f
commit eb98dfbaee
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -6852,7 +6852,7 @@ retained.
This section gives an overview of the different steps to create a chroot. At This section gives an overview of the different steps to create a chroot. At
its core, what B<mmdebstrap> does can be put into a 14 line shell script: its core, what B<mmdebstrap> does can be put into a 14 line shell script:
mkdir -p "$2/etc/apt" "$2/var/cache" mkdir -p "$2/etc/apt" "$2/var/cache" "$2/var/lib"
cat << END > "$2/apt.conf" cat << END > "$2/apt.conf"
Apt::Architecture "$(dpkg --print-architecture)"; Apt::Architecture "$(dpkg --print-architecture)";
Apt::Architectures "$(dpkg --print-architecture)"; Apt::Architectures "$(dpkg --print-architecture)";