feat: Avoid ISO rebuilding for dramatically faster preparation (#2032)

This commit is contained in:
Kroese
2026-07-31 22:05:55 +02:00
committed by GitHub
parent 2f7e3d1903
commit aa9584df90
8 changed files with 1614 additions and 972 deletions
+16 -12
View File
@@ -142,21 +142,25 @@ addShare() {
fi
if [[ "$writable" == "Y" ]] && [[ "$empty" == "Y" ]]; then
if [[ "$writable" == "Y" ]]; then
if ! chmod 2777 "$dir"; then
error "Failed to set permissions for directory $dir" && return 1
fi
if [[ "$empty" == "Y" ]]; then
if ! owner=$(stat -c %u "$dir"); then
error "Failed to determine ownership for directory $dir"
return 1
fi
if [[ "$owner" == "0" ]]; then
if ! chown "1000:1000" "$dir"; then
error "Failed to set ownership for directory $dir" && return 1
if ! chmod 2777 "$dir"; then
error "Failed to set permissions for directory $dir" && return 1
fi
if ! owner=$(stat -c %u "$dir"); then
error "Failed to determine ownership for directory $dir"
return 1
fi
if [[ "$owner" == "0" ]]; then
if ! chown "1000:1000" "$dir"; then
error "Failed to set ownership for directory $dir" && return 1
fi
fi
fi
elif [[ "$readonly" != "Y" ]]; then