#!/bin/sh # SPDX-License-Identifier: CC0-1.0 # Copyright (C) 2022 Wojtek Kosior # # Available under the terms of Creative Commons Zero v1.0 Universal. set -e SHELL_TO_USE="$1" mount --bind hosts /etc/hosts mount --bind test-ca-certificates.crt /etc/ssl/certs/ca-certificates.crt mount -t tmpfs dummy /var/run/nscd 2>/dev/null || true; unshare "$SHELL_TO_USE"