mirror of
https://github.com/89luca89/distrobox.git
synced 2026-08-19 01:14:49 -05:00
all: fix lint and formatting
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
This commit is contained in:
+2
-1
@@ -696,7 +696,8 @@ if [ -d "/usr/share/libalpm/scripts" ]; then
|
||||
printf "#!/bin/sh\n" > /usr/share/libalpm/scripts/00_distrobox_pre_hook.sh
|
||||
printf "#!/bin/sh\n" > /usr/share/libalpm/scripts/02_distrobox_post_hook.sh
|
||||
for net_mount in ${HOST_MOUNTS_RO}; do
|
||||
printf "if mountpoint %s; then umount %s; fi\n" "${net_mount}" "${net_mount}" >> /usr/share/libalpm/scripts/00_distrobox_pre_hook.sh
|
||||
printf "if mountpoint %s; then umount %s; fi\n" \
|
||||
"${net_mount}" "${net_mount}" >> /usr/share/libalpm/scripts/00_distrobox_pre_hook.sh
|
||||
printf "if [ -e /run/host/%s ]; then mount --rbind -o ro /run/host/%s %s; fi\n" \
|
||||
"${net_mount}" "${net_mount}" "${net_mount}" >> /usr/share/libalpm/scripts/02_distrobox_post_hook.sh
|
||||
done
|
||||
|
||||
@@ -14,9 +14,9 @@ This project **does not need a dedicated image**. It can use any OCI images from
|
||||
docker-hub, quay.io, or any registry of your choice.
|
||||
|
||||
Many cloud images are stripped down on purpose to save size and may not include
|
||||
commands such as `which`, `mount`, `less` or `vi`). Additional packages can be
|
||||
commands such as `which`, `mount`, `less` or `vi`). Additional packages can be
|
||||
installed once inside the container. We recommend using your preferred automation
|
||||
tool inside the container if you find yourself having to repeatedly create new containers.
|
||||
tool inside the container if you find yourself having to repeatedly create new containers.
|
||||
Maintaining your own custom image is also an option.
|
||||
|
||||
The main concern is having basic Linux utilities (`mount`), basic user management
|
||||
|
||||
Reference in New Issue
Block a user