#!/bin/sh
# Wrapper for chroot that brings up loopback in a network namespace.
# Used with: sudo unshare -n /usr/local/bin/chroot-nonet /path/to/chroot ...
ip link set lo up
exec chroot "$@"
