mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +02:00
feat(sdk_lib): Bind mount GnuPG directories into the chroot.
This commit is contained in:
parent
772994d916
commit
d250db92cb
@ -378,6 +378,18 @@ setup_env() {
|
|||||||
setup_mount "${DEPOT_TOOLS}" --bind "${DEPOT_TOOLS_DIR}"
|
setup_mount "${DEPOT_TOOLS}" --bind "${DEPOT_TOOLS_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Mount GnuPG's data directory for signing uploads
|
||||||
|
if [[ -d "$SUDO_HOME/.gnupg" ]]; then
|
||||||
|
debug "Mounting GnuPG"
|
||||||
|
setup_mount "${SUDO_HOME}/.gnupg" "--bind" "/home/${SUDO_USER}/.gnupg"
|
||||||
|
|
||||||
|
# bind mount the gpg agent dir if available
|
||||||
|
GPG_AGENT_DIR="${GPG_AGENT_INFO%/*}"
|
||||||
|
if [[ -d "$GPG_AGENT_DIR" ]]; then
|
||||||
|
setup_mount "$GPG_AGENT_DIR" "--bind" "$GPG_AGENT_DIR"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Mount additional directories as specified in .local_mounts file.
|
# Mount additional directories as specified in .local_mounts file.
|
||||||
local local_mounts="${FLAGS_trunk}/src/scripts/.local_mounts"
|
local local_mounts="${FLAGS_trunk}/src/scripts/.local_mounts"
|
||||||
if [[ -f ${local_mounts} ]]; then
|
if [[ -f ${local_mounts} ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user