Commit 1b88990
committed
fix(rhel): use /mnt/sysroot to locate target root in %post --nochroot
Parsing /proc/mounts for "rl-root" broke on RHEL 10 / Rocky 10 because
Anaconda's mount layout changed again. Use Anaconda's canonical
/mnt/sysroot mount point instead (with a fallback to the legacy
/mnt/sysimage). Works on RHEL 8, 9, 10 and their Rocky counterparts.1 parent 5489216 commit 1b88990
2 files changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
494 | | - | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
495 | 506 | | |
496 | 507 | | |
497 | 508 | | |
| |||
0 commit comments