This commit is contained in:
Marc Beninca 2024-11-12 10:15:58 +01:00
parent 8b39df8ed0
commit 663d99bb14
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,31 +1,32 @@
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
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" "${@}"
local container="${1}"
shift
chroot "overlay/mount/var/lib/lxc/${container}/squashfs-root" "${@}"
}
urc() {
local container="${1}"
for f in "sys" "proc" "dev/pts" "dev" ; do
umount --lazy "overlay/mount/var/lib/lxc/${container}/squashfs-root/${f}"
done
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"
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"
local container="${1}"
umount "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb"
}