This commit is contained in:
Marc Beninca 2024-11-16 04:27:07 +01:00
parent 58ca9eb86f
commit 94746ca497
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -73,9 +73,12 @@ uo() {
}
mr() {
local f
for f in "dev" "dev/pts" "proc" "sys"; do
mount --bind "/${f}" "overlay/mount/${f}"
local directory
for directory in "dev" "dev/pts" "proc" "sys"; do
if ! mount --bind "/${directory}" "overlay/mount/${directory}"; then
log_error "Unable to bind mount directory: ${directory}"
return 1
fi
done
}