all: fix lint and formatting

Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
This commit is contained in:
Luca Di Maio
2022-08-28 16:05:49 +02:00
parent bf3065c974
commit 9d07267474
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -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
+2 -2
View File
@@ -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