Commit 3d16915
committed
install.sh: fix false-negative in system-profile verification check
nix profile symlinks resolve to absolute /nix/store/... paths, which
[[ -e ]] follows against the live ISO's own root rather than /mnt. That
made "system profile exists" report FAIL on a real, successful fonseca
install even though nixos-install's own success banner and a manual
nixos-enter check both confirmed the profile was set correctly.
exists_under_mnt() walks the symlink chain by hand and rebases any
absolute target onto /mnt before testing it.1 parent 4b42984 commit 3d16915
1 file changed
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
246 | 267 | | |
247 | 268 | | |
248 | 269 | | |
249 | 270 | | |
250 | 271 | | |
251 | 272 | | |
252 | | - | |
| 273 | + | |
253 | 274 | | |
254 | 275 | | |
255 | 276 | | |
| |||
0 commit comments