Unverified Commit 005433b9 authored by Vladimír Čunát's avatar Vladimír Čunát Committed by GitHub
Browse files

Revert "nixos-install: add root directory ownership check" (#433174)

This reverts commit aa822ab6.
parent 44337b80
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -122,14 +122,6 @@ while [[ "$checkPath" != "/" ]]; do
    checkPath="$(dirname "$checkPath")"
done

# Check if the mount point root directory is owned by root
if [[ "$(stat -c '%u:%g' "$mountPoint")" != "0:0" ]]; then
    echo "$0: $mountPoint is not owned by root:root (owned by $(stat -c '%U:%G' "$mountPoint"))"
    echo "$0: installation root directory must be owned by root to avoid system issues"
    echo "$0: run 'sudo chown root:root $mountPoint' to fix this"
    exit 1
fi

# Verify that user is not trying to use attribute building and flake
# at the same time
if [[ -z $buildingAttribute && -n $flake ]]; then