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

View file

@ -20,6 +20,19 @@ a__overlay_bind_unmount() {
done 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 "${@}"; } orm() { a__overlay_root_mount "${@}"; }
a__overlay_root_mount() { a__overlay_root_mount() {
local root="${1}" local root="${1}"
@ -96,19 +109,6 @@ a__overlay_root_unmount() {
fi 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 "${@}"; } omm() { a__overlay_mirror_mount "${@}"; }
a__overlay_mirror_mount() { a__overlay_mirror_mount() {
mount --make-rslave --rbind "/deb" "overlay/mount/deb" mount --make-rslave --rbind "/deb" "overlay/mount/deb"