lxc-config/hooks/mount-base-rootfs

6 lines
152 B
Bash
Executable File

#!/bin/bash
set -e
mount -o bind /lxc/base/rootfs /lxc/${LXC_NAME}/rootfs
mount -o remount,ro,bind /lxc/base/rootfs /lxc/${LXC_NAME}/rootfs