From 8ed03e488115c583456398b07643e8a9a643ced8 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 22 Oct 2025 02:34:58 +0200 Subject: [PATCH] Update install.sh --- src/install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/install.sh b/src/install.sh index 57cac5a..9190fd5 100644 --- a/src/install.sh +++ b/src/install.sh @@ -227,6 +227,8 @@ if ! touch "$SYSTEM"; then error "Could not create file $SYSTEM for the system disk." && exit 98 fi +! setOwner "$SYSTEM" && error "Failed to set the owner for \"$SYSTEM\" !" + if [[ "${FS,,}" == "btrfs" ]]; then { chattr +C "$SYSTEM"; } || : FA=$(lsattr "$SYSTEM") @@ -311,6 +313,8 @@ if [ -f "$STORAGE/$BASE.pat" ]; then fi mv -f "$BOOT" "$STORAGE/$BASE.boot.img" +! setOwner "$STORAGE/$BASE.boot.img" && error "Failed to set the owner for \"$STORAGE/$BASE.boot.img\" !" + rm -rf "$TMP" return 0