−ovl/lxc
This commit is contained in:
parent
bb76a2f956
commit
6eee35b3a4
1 changed files with 0 additions and 31 deletions
|
@ -1,31 +0,0 @@
|
||||||
mrc() {
|
|
||||||
local container="${1}"
|
|
||||||
local f
|
|
||||||
for f in "dev" "dev/pts" "proc" "sys"; do
|
|
||||||
mount --bind "/${f}" "overlay/mount/var/lib/lxc/${container}/squashfs-root/${f}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
crc() {
|
|
||||||
local container="${1}"
|
|
||||||
shift
|
|
||||||
chroot "overlay/mount/var/lib/lxc/${container}/squashfs-root" "${@}"
|
|
||||||
}
|
|
||||||
|
|
||||||
urc() {
|
|
||||||
local container="${1}"
|
|
||||||
local f
|
|
||||||
for f in "sys" "proc" "dev/pts" "dev"; do
|
|
||||||
umount --lazy "overlay/mount/var/lib/lxc/${container}/squashfs-root/${f}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
mmc() {
|
|
||||||
local container="${1}"
|
|
||||||
mount --bind "/deb" "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb"
|
|
||||||
}
|
|
||||||
|
|
||||||
umc() {
|
|
||||||
local container="${1}"
|
|
||||||
umount "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb"
|
|
||||||
}
|
|
Loading…
Reference in a new issue