diff options
author | Helmut Grohne <helmut@subdivi.de> | 2023-01-12 08:05:32 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2023-01-12 08:05:32 +0100 |
commit | 3fde9f313c991aa19fbcedc38a4531de9e838f8d (patch) | |
tree | e00ccdfda5e09a2fcfe7bc1ed3ed968337544f59 /share/customize-dpkgavailable.sh | |
parent | c751e229a1f8118787954d26bab4c300d114300e (diff) | |
download | debvm-3fde9f313c991aa19fbcedc38a4531de9e838f8d.tar.gz |
debvm-create: also move dpkg's available database to a hook file
Diffstat (limited to 'share/customize-dpkgavailable.sh')
-rwxr-xr-x | share/customize-dpkgavailable.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/share/customize-dpkgavailable.sh b/share/customize-dpkgavailable.sh new file mode 100755 index 0000000..f35b81f --- /dev/null +++ b/share/customize-dpkgavailable.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# Copyright 2022 Helmut Grohne <helmut@subdivi.de> +# SPDX-License-Identifier: MIT +# +# This is a mmdebstrap customize hook that initializes dpkg's available +# database from an updated apt package list cache. +# +# Without the available database, dpkg --set-selections won't work. + +set -eu + +APT_CONFIG=$MMDEBSTRAP_APT_CONFIG apt-cache dumpavail | dpkg --root "$1" --update-avail |