lxc-config/hooks/mount-base-rootfs

6 lines
152 B
Plaintext
Raw Normal View History

2015-08-14 09:32:44 +00:00
#!/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