Compare commits
2 Commits
df1c3debdc
...
8f6f0dc1be
| Author | SHA256 | Date | |
|---|---|---|---|
|
8f6f0dc1be
|
|||
|
a154799312
|
@@ -84,7 +84,7 @@ debootstrap: # Provide a mirror for downloading the Debian pac
|
|||||||
# list of official Debian packages.
|
# list of official Debian packages.
|
||||||
mirror: "https://deb.debian.org/debian"
|
mirror: "https://deb.debian.org/debian"
|
||||||
# The following packages MUST be included in the debootstrap.
|
# The following packages MUST be included in the debootstrap.
|
||||||
includes: "busybox,ca-certificates,locales,openssl,zstd"
|
includes: "busybox,ca-certificates,locales,openssl,python3,python3-apt,zstd"
|
||||||
distribution: "trixie" # MUST be "trixie".
|
distribution: "trixie" # MUST be "trixie".
|
||||||
debian_suite: "stable" # MUST be "stable". Not supported yet: "testing", "experimental".
|
debian_suite: "stable" # MUST be "stable". Not supported yet: "testing", "experimental".
|
||||||
exit:
|
exit:
|
||||||
@@ -579,6 +579,8 @@ software:
|
|||||||
# openssl
|
# openssl
|
||||||
# passwd
|
# passwd
|
||||||
# procps
|
# procps
|
||||||
|
# python3
|
||||||
|
# python3-apt
|
||||||
# sed
|
# sed
|
||||||
# tar
|
# tar
|
||||||
# tzdata
|
# tzdata
|
||||||
@@ -751,7 +753,6 @@ software:
|
|||||||
- figlet
|
- figlet
|
||||||
- htop
|
- htop
|
||||||
- keychain
|
- keychain
|
||||||
- python3
|
|
||||||
- virt-what
|
- virt-what
|
||||||
|
|
||||||
################################################################################################################################
|
################################################################################################################################
|
||||||
|
|||||||
@@ -162,7 +162,25 @@ EOF
|
|||||||
|
|
||||||
cat << EOF >> "${TARGET}/etc/apt/sources.list"
|
cat << EOF >> "${TARGET}/etc/apt/sources.list"
|
||||||
|
|
||||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=conf
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
|
insert_header "${TARGET}/etc/apt/apt.conf.d/90-no-pdiffs"
|
||||||
|
insert_comments "${TARGET}/etc/apt/apt.conf.d/90-no-pdiffs"
|
||||||
|
cat << 'EOF' >> "${TARGET}/etc/apt/apt.conf.d/90-no-pdiffs"
|
||||||
|
Acquire::PDiffs "false";
|
||||||
|
|
||||||
|
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=conf
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
|
insert_header "${TARGET}/etc/apt/apt.conf.d/91-acquire"
|
||||||
|
insert_comments "${TARGET}/etc/apt/apt.conf.d/91-acquire"
|
||||||
|
cat << 'EOF' >> "${TARGET}/etc/apt/apt.conf.d/91-acquire"
|
||||||
|
Acquire::Retries "3";
|
||||||
|
|
||||||
|
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=conf
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
guard_dir && return 0
|
guard_dir && return 0
|
||||||
|
|||||||
@@ -155,10 +155,29 @@ EOF
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [[ -f "${TARGET}/etc/apt/sources.list" ]]; then
|
if [[ -f "${TARGET}/etc/apt/sources.list" ]]; then
|
||||||
rm -f "${TARGET}/etc/apt/sources.list"
|
rm -f "${TARGET}/etc/apt/sources.list"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
insert_header "${TARGET}/etc/apt/apt.conf.d/90-no-pdiffs"
|
||||||
|
insert_comments "${TARGET}/etc/apt/apt.conf.d/90-no-pdiffs"
|
||||||
|
cat << 'EOF' >> "${TARGET}/etc/apt/apt.conf.d/90-no-pdiffs"
|
||||||
|
Acquire::PDiffs "false";
|
||||||
|
|
||||||
|
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=conf
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
|
insert_header "${TARGET}/etc/apt/apt.conf.d/91-acquire"
|
||||||
|
insert_comments "${TARGET}/etc/apt/apt.conf.d/91-acquire"
|
||||||
|
cat << 'EOF' >> "${TARGET}/etc/apt/apt.conf.d/91-acquire"
|
||||||
|
Acquire::Retries "3";
|
||||||
|
|
||||||
|
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=conf
|
||||||
|
EOF
|
||||||
|
|
||||||
guard_dir && return 0
|
guard_dir && return 0
|
||||||
}
|
}
|
||||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ check_pkgs() {
|
|||||||
|
|
||||||
### Installing unique list of packages.
|
### Installing unique list of packages.
|
||||||
# shellcheck disable=SC2312
|
# shellcheck disable=SC2312
|
||||||
apt-get update 2>&1 | tee -a "${DIR_LOG}/0030_check_pkgs.log"
|
apt-get -o Acquire::PDiffs=false update 2>&1 | tee -a "${DIR_LOG}/0030_check_pkgs.log"
|
||||||
if ((${#ary_missing_pkgs[@]})); then
|
if ((${#ary_missing_pkgs[@]})); then
|
||||||
|
|
||||||
# shellcheck disable=SC2312
|
# shellcheck disable=SC2312
|
||||||
|
|||||||
Reference in New Issue
Block a user