From c4b7796bb3782e89badc67098dd1eb5e08b5e0c2 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 25 Nov 2024 12:52:21 +0100 Subject: [PATCH] ovl/mirror --- sh/alias/overlay.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sh/alias/overlay.sh b/sh/alias/overlay.sh index 7870c2e..65f1c46 100644 --- a/sh/alias/overlay.sh +++ b/sh/alias/overlay.sh @@ -33,6 +33,16 @@ a__overlay_command_user() { "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 "${@}"; } a__overlay_root_mount() { local root="${1}" @@ -109,16 +119,6 @@ a__overlay_root_unmount() { 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 "${@}"; } a__overlay_root_squash() { local directory="${1}"