lxc
This commit is contained in:
parent
8b39df8ed0
commit
663d99bb14
1 changed files with 17 additions and 16 deletions
|
@ -1,19 +1,20 @@
|
||||||
mrc() {
|
mrc() {
|
||||||
local container="${1}"
|
local container="${1}"
|
||||||
local f
|
local f
|
||||||
for f in "dev" "dev/pts" "proc" "sys" ; do
|
for f in "dev" "dev/pts" "proc" "sys" ; do
|
||||||
mount --bind "/${f}" "overlay/mount/var/lib/lxc/${container}/squashfs-root/${f}"
|
mount --bind "/${f}" "overlay/mount/var/lib/lxc/${container}/squashfs-root/${f}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
crc() {
|
crc() {
|
||||||
local container="${1}"
|
local container="${1}"
|
||||||
shift
|
shift
|
||||||
chroot "overlay/mount/var/lib/lxc/${container}/squashfs-root" "${@}"
|
chroot "overlay/mount/var/lib/lxc/${container}/squashfs-root" "${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
urc() {
|
urc() {
|
||||||
local container="${1}"
|
local container="${1}"
|
||||||
|
local f
|
||||||
for f in "sys" "proc" "dev/pts" "dev" ; do
|
for f in "sys" "proc" "dev/pts" "dev" ; do
|
||||||
umount --lazy "overlay/mount/var/lib/lxc/${container}/squashfs-root/${f}"
|
umount --lazy "overlay/mount/var/lib/lxc/${container}/squashfs-root/${f}"
|
||||||
done
|
done
|
||||||
|
@ -21,11 +22,11 @@ local container="${1}"
|
||||||
|
|
||||||
|
|
||||||
mmc() {
|
mmc() {
|
||||||
local container="${1}"
|
local container="${1}"
|
||||||
mount --bind "/deb" "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb"
|
mount --bind "/deb" "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb"
|
||||||
}
|
}
|
||||||
|
|
||||||
umc() {
|
umc() {
|
||||||
local container="${1}"
|
local container="${1}"
|
||||||
umount "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb"
|
umount "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue