ovl/mirror

This commit is contained in:
Marc Beninca 2024-11-25 12:52:21 +01:00
parent 8490621281
commit c4b7796bb3
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -33,6 +33,16 @@ a__overlay_command_user() {
"overlay/mount" "${@}" "overlay/mount" "${@}"
} }
omm() { a__overlay_mirror_mount "${@}"; }
a__overlay_mirror_mount() {
mount --make-rslave --rbind "/deb" "overlay/mount/deb"
}
omu() { a__overlay_mirror_unmount "${@}"; }
a__overlay_mirror_unmount() {
umount --recursive "overlay/mount/deb"
}
orm() { a__overlay_root_mount "${@}"; } orm() { a__overlay_root_mount "${@}"; }
a__overlay_root_mount() { a__overlay_root_mount() {
local root="${1}" local root="${1}"
@ -109,16 +119,6 @@ a__overlay_root_unmount() {
fi fi
} }
omm() { a__overlay_mirror_mount "${@}"; }
a__overlay_mirror_mount() {
mount --make-rslave --rbind "/deb" "overlay/mount/deb"
}
omu() { a__overlay_mirror_unmount "${@}"; }
a__overlay_mirror_unmount() {
umount --recursive "overlay/mount/deb"
}
ors() { a__overlay_root_squash "${@}"; } ors() { a__overlay_root_squash "${@}"; }
a__overlay_root_squash() { a__overlay_root_squash() {
local directory="${1}" local directory="${1}"