Skip to content

Commit 06f557f

Browse files
committed
chore(sanitize): replace hardcoded user-paths with USER / runtime placeholders
User-detected paths now propagate at install/runtime via shell variables; day-0 shipped artifacts default to literal USER placeholder where shell expansion is not available (e.g. inside markdown aggregates). Files touched: - MiOS-Build-Scripts.md (4 section headers) 'C:\Users\Administrator\OneDrive\Documents\GitHub\' -> 'C:\Users\USER\OneDrive\Documents\GitHub\' - tools/fix-token-input.ps1 (DESCRIPTION block 'Run from repo root' hint) 'cd C:\Users\\MiOS\OneDrive\Documents\GitHub\\MiOS' -> 'cd $env:USERPROFILE\OneDrive\Documents\GitHub\MiOS' PowerShell resolves $env:USERPROFILE at runtime to the actual user. - tools/manifest.json Regenerated the fix-token-input.ps1 'full_content' entry from the updated source so the embedded copy matches. - tools/Xbox-AutoEnroll.xml, tools/fix-xbox-secureboot.sh '/home/ISOs/Win11_25H2_English_x64.iso' -> '/var/lib/libvirt/images/Win11_25H2_English_x64.iso' Canonical libvirt image pool location; not user-specific. - tools/system-assess.sh (usage examples in two places) '/home/mios/my-assessment.txt' -> '~/my-assessment.txt' (shell expands at runtime) Residue check after this commit: zero hits across both repos for 'C:\Users\(Administrator|MiOS|admin)' and zero '/home/ISOs/'. Bootstrap repo was already clean and needs no follow-up.
1 parent a9244a7 commit 06f557f

6 files changed

Lines changed: 50 additions & 50 deletions

File tree

MiOS-Build-Scripts.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ file contents. Use `Ctrl-F` against a path to find a script.
1111
## Layer 1 -- User entry points (mios-bootstrap repo)
1212

1313

14-
### `C:\Users\Administrator\OneDrive\Documents\GitHub\mios-bootstrap\bootstrap.sh`
14+
### `C:\Users\USER\OneDrive\Documents\GitHub\mios-bootstrap\bootstrap.sh`
1515

1616
```bash
1717
#!/bin/bash
@@ -151,7 +151,7 @@ fi
151151
```
152152

153153

154-
### `C:\Users\Administrator\OneDrive\Documents\GitHub\mios-bootstrap\bootstrap.ps1`
154+
### `C:\Users\USER\OneDrive\Documents\GitHub\mios-bootstrap\bootstrap.ps1`
155155

156156
```powershell
157157
#Requires -Version 5.1
@@ -178,7 +178,7 @@ if (Test-Path $installScript) {
178178
```
179179

180180

181-
### `C:\Users\Administrator\OneDrive\Documents\GitHub\mios-bootstrap\install.sh`
181+
### `C:\Users\USER\OneDrive\Documents\GitHub\mios-bootstrap\install.sh`
182182

183183
```bash
184184
#!/usr/bin/env bash
@@ -896,7 +896,7 @@ main "$@"
896896
```
897897

898898

899-
### `C:\Users\Administrator\OneDrive\Documents\GitHub\mios-bootstrap\install.ps1`
899+
### `C:\Users\USER\OneDrive\Documents\GitHub\mios-bootstrap\install.ps1`
900900

901901
```powershell
902902
#Requires -Version 5.1

tools/Xbox-AutoEnroll.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<emulator>/usr/bin/qemu-system-x86_64</emulator>
7878
<disk type="file" device="cdrom">
7979
<driver name="qemu" type="raw"/>
80-
<source file="/home/ISOs/Win11_25H2_English_x64.iso"/>
80+
<source file="/var/lib/libvirt/images/Win11_25H2_English_x64.iso"/>
8181
<target dev="sda" bus="sata"/>
8282
<readonly/>
8383
<address type="drive" controller="0" bus="0" target="0" unit="0"/>

tools/fix-token-input.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Replace with Read-Host -MaskInput (PS 7.1+, handles paste natively).
66
77
Run from repo root:
8-
cd C:\Users\\MiOS\OneDrive\Documents\GitHub\\MiOS
8+
cd $env:USERPROFILE\OneDrive\Documents\GitHub\MiOS # or wherever the repo is
99
.\fix-token-input.ps1
1010
#>
1111
$ErrorActionPreference = "Stop"

tools/fix-xbox-secureboot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ cat > /tmp/Xbox-fixed.xml << 'XMLEOF'
192192
<emulator>/usr/bin/qemu-system-x86_64</emulator>
193193
<disk type="file" device="cdrom">
194194
<driver name="qemu" type="raw"/>
195-
<source file="/home/ISOs/Win11_25H2_English_x64.iso"/>
195+
<source file="/var/lib/libvirt/images/Win11_25H2_English_x64.iso"/>
196196
<target dev="sda" bus="sata"/>
197197
<readonly/>
198198
<address type="drive" controller="0" bus="0" target="0" unit="0"/>

0 commit comments

Comments
 (0)