From 8490621281f655a865c65dbaca43ec0889c6efbb Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 25 Nov 2024 12:51:29 +0100 Subject: [PATCH] ovl/cmd --- sh/alias/overlay.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/sh/alias/overlay.sh b/sh/alias/overlay.sh index 9418f75..7870c2e 100644 --- a/sh/alias/overlay.sh +++ b/sh/alias/overlay.sh @@ -20,6 +20,19 @@ a__overlay_bind_unmount() { done } +ocr() { a__overlay_command_root "${@}"; } +a__overlay_command_root() { + chroot \ + "overlay/mount" "${@}" +} + +ocu() { a__overlay_command_user "${@}"; } +a__overlay_command_user() { + chroot \ + --userspec "1000:1000" \ + "overlay/mount" "${@}" +} + orm() { a__overlay_root_mount "${@}"; } a__overlay_root_mount() { local root="${1}" @@ -96,19 +109,6 @@ a__overlay_root_unmount() { fi } -ocr() { a__overlay_command_root "${@}"; } -a__overlay_command_root() { - chroot \ - "overlay/mount" "${@}" -} - -ocu() { a__overlay_command_user "${@}"; } -a__overlay_command_user() { - chroot \ - --userspec "1000:1000" \ - "overlay/mount" "${@}" -} - omm() { a__overlay_mirror_mount "${@}"; } a__overlay_mirror_mount() { mount --make-rslave --rbind "/deb" "overlay/mount/deb"