Skip to content

Commit 8bc7536

Browse files
Kabuki94claude
andcommitted
chore(audit): drop redundant mios-status; frame mios-dashboard with ASCII header
mios-status was a 1-line exec to mios-dashboard.sh, identical to mios-dash. Removed it plus stale references in 36-tools.sh, .gitignore, build-mios.sh (alias mios-status='mios assess' aliased to a non-existent verb), and bootc-switch-from-build.sh. mios-dashboard.sh rewritten: wraps full output in a fixed 80-col frame with a centered MiOS ASCII art header. Python-based frame_filter is codepoint-correct (awk's length()/substr() are byte-based on mawk and locale-fragile on gawk; multi-byte box-drawing chars and dot glyphs would slide the right border 2 chars per glyph). --services-only stays unframed so fastfetch column-embed continues to work. mios-configurator-launch comment refers to MiOS-DEV (canonical post-rename name) instead of podman-MiOS-DEV. mios-build-builder.ps1 docblock notes that new installs should prefer mios-bootstrap/build-mios.ps1 rather than this legacy v0.2.2 entry. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent db50173 commit 8bc7536

9 files changed

Lines changed: 189 additions & 107 deletions

File tree

.gitignore

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,12 @@ usr/*
162162
!/usr/share/
163163

164164
# usr/bin -- only MiOS-owned CLIs. Glob covers all mios-* operator
165-
# verbs (mios-status, mios-update, mios-rebuild, mios-build, mios-deploy,
166-
# mios-flatpaks, plus future additions). Each is a thin shell wrapper
167-
# around the underlying mechanism (bootc / podman / git-against-/.git /
168-
# the local Forgejo at localhost:3000) so operators don't have to
169-
# remember the long invocations.
165+
# verbs (mios-dash, mios-update, mios-rebuild, mios-build, mios-deploy,
166+
# mios-pull, mios-flatpaks, mios-vfio-*, mios-backup, mios-ollama, plus
167+
# future additions). Each is a thin shell wrapper around the underlying
168+
# mechanism (bootc / podman / git-against-/.git / the local Forgejo at
169+
# localhost:3000) so operators don't have to remember the long
170+
# invocations.
170171
usr/bin/*
171172
!/usr/bin/mios
172173
!/usr/bin/mios-*

automation/36-tools.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ TOOLS=(
2121
mios-build
2222
mios-backup
2323
mios-deploy
24-
mios-status
2524
mios-vfio-toggle
2625
mios-vfio-check
2726
mios-ollama
2827
iommu-groups
2928
)
29+
# Note: mios-status was removed (v0.2.4) -- it was a 1-line `exec` to
30+
# /usr/libexec/mios/mios-dashboard.sh identical to mios-dash. Keep
31+
# mios-dash as the single canonical dashboard verb.
3032
# Note: aichat / aichat-ng are installed by 37-aichat.sh (which fetches
3133
# the upstream binaries); attempting to chmod them here printed a WARN
3234
# every build because the binaries do not exist yet at this stage.

automation/build-mios.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,6 @@ create_user_account() {
419419
# 'MiOS' User-Space .bashrc extension
420420
# This file is injected into the image during build-time.
421421
alias ll='ls -alF'
422-
alias mios-status='mios assess'
423422
export EDITOR=vim
424423
DOTFILE_EOF
425424
fi

automation/mios-build-builder.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818
- SSHs into the machine to install nvidia-container-toolkit and generate
1919
the CDI spec at /var/run/cdi/nvidia.yaml (WSL mode auto-detected).
2020
21+
NOTE (v0.2.4+): The CANONICAL Windows entry point is now
22+
mios-bootstrap/build-mios.ps1 (under https://github.com/mios-dev/
23+
mios-bootstrap.git), which provisions a podman machine named
24+
'MiOS-DEV' and renames the resulting WSL distro from
25+
'podman-MiOS-DEV' to 'MiOS-DEV' post-install (Rename-PodmanDevDistro).
26+
This script is preserved for the legacy MiOS/install.ps1 +
27+
MiOS/build-mios.ps1 entry points (still served from the public
28+
curl-bash URL); new installs should prefer the bootstrap entry.
29+
2130
.PARAMETER MachineName
2231
Podman machine name (default: mios-builder).
2332

usr/bin/mios-dash

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/usr/bin/env bash
22
# mios-dash -- show the MiOS live system dashboard. Thin shell-front
33
# wrapper for /usr/libexec/mios/mios-dashboard.sh that matches the
4-
# rest of the mios-* CLI naming convention (mios-status, mios-update,
5-
# mios-rebuild, mios-build, mios-deploy, mios-flatpaks, mios-vfio-*,
6-
# mios-backup, mios-ollama).
4+
# rest of the mios-* CLI naming convention (mios-update, mios-rebuild,
5+
# mios-build, mios-deploy, mios-flatpaks, mios-vfio-*, mios-backup,
6+
# mios-ollama). Replaces the removed `mios-status` verb (which was a
7+
# pure duplicate of this script as of v0.2.4).
78
#
89
# mios-dash full dashboard (logo + system info +
910
# services + git tree)

usr/bin/mios-status

Lines changed: 0 additions & 8 deletions
This file was deleted.

usr/libexec/mios/bootc-switch-from-build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ fi
7979
_log "[ok] staged ${ref} for next boot."
8080
_log "Reboot to activate: 'sudo systemctl reboot' (or 'sudo bootc upgrade --apply' if you want bootc to handle it)."
8181

82-
# Drop a marker so operators can see in `mios-status` (if installed) what
83-
# the last successful switch was.
82+
# Drop a marker so operators can see in `mios-dash` what the last
83+
# successful switch was.
8484
install -d -m 0755 /var/lib/mios
8585
{ printf '%s\t%s\t%s\n' "$(date -u +%FT%TZ)" "$ts" "$ref"; } >> /var/lib/mios/bootc-switch-history.tsv
8686
chmod 0644 /var/lib/mios/bootc-switch-history.tsv

usr/libexec/mios/mios-configurator-launch

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
# Activities on deployed hosts; Windows Start Menu via WSLg on
1818
# MiOS-DEV)
1919
# - Windows-side `MiOS Configurator.lnk` Start Menu / Desktop
20-
# shortcuts (which call `wsl -d podman-MiOS-DEV --exec
21-
# /usr/libexec/mios/mios-configurator-launch`)
20+
# shortcuts (which call `wsl -d MiOS-DEV --exec
21+
# /usr/libexec/mios/mios-configurator-launch`; pre-rename
22+
# installs may still expose the distro as `podman-MiOS-DEV`)
2223
set -euo pipefail
2324

2425
HTML=/usr/share/mios/configurator/index.html

0 commit comments

Comments
 (0)