/function.sh Secret
Last active
October 2, 2020 14:41
-
-
Save Miouyouyou/72f520388c5450679512510c8fd5c627 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install_deb_chroot_desktop() | |
{ | |
local package=$1 | |
local name | |
name=$(basename "${package}") | |
local apt_install_flags="" | |
for flag in ${DESKTOP_APT_FLAGS_SELECTED}; do | |
apt_install_flags+=" --install-${flag}" | |
done | |
[[ ! -f "${SDCARD}/root/${name}" ]] && cp "${package}" "${SDCARD}/root/${name}" | |
display_alert "Installing" "$name" | |
[[ $NO_APT_CACHER != yes ]] && local apt_extra="-o Acquire::http::Proxy=\"http://${APT_PROXY_ADDR:-localhost:3142}\" -o Acquire::http::Proxy::localhost=\"DIRECT\"" | |
LC_ALL=C LANG=C chroot "${SDCARD}" /bin/bash -c "DEBIAN_FRONTEND=noninteractive apt -yqq \ | |
$apt_extra install ${apt_install_flags} ./root/$name" >> "${DEST}"/debug/install.log 2>&1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment