File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727REPO_ROOT=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
2828echo " [INFO] MiOS system installer running from ${REPO_ROOT} "
2929
30- # Apply FHS overlay. We rsync each top-level overlay dir if it exists.
31- for d in usr etc var srv; do
32- if [[ -d " ${REPO_ROOT} /${d} " ]]; then
33- echo " [INFO] Applying overlay: ${d} /"
34- rsync -aH --info=stats1 " ${REPO_ROOT} /${d} /" " /${d} /"
30+ if [[ " ${REPO_ROOT} " != " /" ]]; then
31+ # Apply FHS overlay. We rsync each top-level overlay dir if it exists.
32+ for d in usr etc var srv; do
33+ if [[ -d " ${REPO_ROOT} /${d} " ]]; then
34+ echo " [INFO] Applying overlay: ${d} /"
35+ rsync -aH --info=stats1 " ${REPO_ROOT} /${d} /" " /${d} /"
36+ fi
37+ done
38+
39+ # v1/ holds discovery symlinks; we materialize them at /v1.
40+ if [[ -d " ${REPO_ROOT} /v1" ]]; then
41+ echo " [INFO] Materializing /v1 discovery surface"
42+ install -d /v1
43+ rsync -aH " ${REPO_ROOT} /v1/" " /v1/"
3544 fi
36- done
37-
38- # v1/ holds discovery symlinks; we materialize them at /v1.
39- if [[ -d " ${REPO_ROOT} /v1" ]]; then
40- echo " [INFO] Materializing /v1 discovery surface"
41- install -d /v1
42- rsync -aH " ${REPO_ROOT} /v1/" " /v1/"
45+ else
46+ echo " [INFO] Running directly from root (/), skipping overlay sync."
4347fi
44-
4548echo " [INFO] Running systemd-sysusers"
4649systemd-sysusers
4750
You can’t perform that action at this time.
0 commit comments