Unverified Commit 17b46c61 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

Merge pull request #246746 from mode89/fix/nixos-install-with-non-empty-mnt

nixos-install: fix removal of non-empty `/mnt`
parents 9f414220 d61cc625
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -206,7 +206,7 @@ if [[ -z $noBootLoader ]]; then
      mount --rbind --mkdir / "$mountPoint"
      mount --make-rslave "$mountPoint"
      /run/current-system/bin/switch-to-configuration boot
      umount -R "$mountPoint" && rmdir "$mountPoint"
      umount -R "$mountPoint" && (rmdir "$mountPoint" 2>/dev/null || true)
EOF
)"
fi