Repository navigation
kernel: brand fastfetch as Pagh-OS and report the real disk - #180
Merged
Merged
Conversation
added 2 commits
November 22, 2026 18:05
fastfetch showed the Linux penguin and "Kernel: Linux 6.1.0-pagh" (read as
the OS name), and its Disk (/) row reported the guest's RAM instead of the
ext2 volume: on a 256 MiB image it printed "6.00 GiB", the same number as
Memory, because statfs fell back to PMM frame counts.
* provision /etc/fastfetch/{config.jsonc,pagh-logo.txt}: the "PAGH"
wordmark in figlet "standard" style (ASCII only — the kernel-session
console font has no Unicode blocks, and the same bytes go to serial) plus
kernel.format "Pagh-OS {release}". The Kernel line no longer prints the
word Linux at all; uname(2).sysname still returns Linux, which is the
UTS/ABI identity and is documented separately (docs/os-identity.md §3).
* resolve_path: map the guest root "/" to the ext2 root at /mnt — the same
chroot mapping every other guest path already used — so statvfs("/"),
stat("/") and `ls /` see the distro root instead of the synthetic rootfs.
A symlink to "/" maps the same way in vfs::link_walk::map_guest_target.
* statfs: pseudo filesystems (fs_stat() == None: /dev, /proc, ramfs /tmp)
report RAMFS_MAGIC with zero capacity instead of PMM frame counts; real
ext2 capacity comes from FsStat. Without this, Disk (/) and Memory were
the same number by construction.
* tests: host properties fastfetch_is_branded_as_pagh (exact wordmark, no
"Linux" anywhere in the config) and the root symlink mapping; e2e
termwindow asserts OS/Kernel name Pagh-OS and that the Disk (/) total
differs from Memory.
* docs: os-identity (§2.1 configuration, §2.2 statfs), vfs README statfs
contract, README identity section, tools README e2e assertions.
Evidence: tools/e2e.py termwindow PASS (857 s); fastfetch in the desktop
terminal window (fastfetch-evidence.png) shows the figlet Pagh logo,
OS: Pagh-OS 2.24.0 x86_64, Kernel: Pagh-OS 6.1.0-pagh, Memory 16.00 GiB
and Disk (/) 255.75 MiB.
The termwindow acceptance now sends `clear` right before `fastfetch`, so the compat VT starts at the top of the session and the figlet PAGH block prints top-left like neofetch. Without it fastfetch starts at the prompt cursor at the bottom — normal terminal output behaviour — and the evidence frame showed the block there. Cosmetic for the captured screenshot only: the identity/kernel/disk assertions and their serial checks are unchanged. The VT-repaint-hides- console-history behaviour stays out of scope (logged as a separate follow-up).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fastfetch: Pagh-OS identity (figlet PAGH logo, no "Linux" branding) + real Disk (/) statfs
User report: fastfetch showed the Linux penguin,
Kernel: Linux 6.1.0-paghread as the OS name, andDisk (/)equal to Memory (fake 16 GiB) because statfs fell back to PMM frame counts.Identity (display only; UTS ABI unchanged)
/etc/fastfetch/{config.jsonc,pagh-logo.txt}viawrite_once(user edits survive): ASCII figlet "PAGH" wordmark (5 rows, width 33, fits 80-col console + summary),logo.color=light_cyan.kernel.format = "Pagh-OS {release}"→Kernel: Pagh-OS 6.1.0-pagh. No word "Linux" anywhere in the config.uname(2).sysnamestaysLinux— that is the UTS/ABI identity, not the OS name (docs/os-identity.md§3).OS:comes from/etc/os-releaseNAME="Pagh-OS"→OS: Pagh-OS 2.24.0 x86_64.Real disk
resolve_path: guest root/maps to the ext2 root/mnt(same chroot mapping every other guest path already used) sostatvfs("/")/stat("/")/ls /see the distro root; symlink target/maps the same (vfs::link_walk::map_guest_target).build_statfs_for(None): pseudo-FS (/dev,/proc,ramfs/tmp) reportRAMFS_MAGICzero capacity instead of masquerading RAM as disk; real ext2 capacity fromFsStat. →Disk (/)= real ext2 volume (255.75 MiB on the test image), ≠ Memory.Tests / gates (all green)
cargo fmt --all -- --check,build.py build,build.py build --release,check_safety.py,check_agents_md.py— OK.host_tests.py: 904 passed / 0 failed (incl.fastfetch_is_branded_as_paghasserting the exact art + no "Linux", root-symlink mapping).e2e.py termwindow: PASS (exit 0) —OS: Pagh-OS 2.24.0 x86_64,Kernel: Pagh-OS 6.1.0-pagh,Disk (/) … 255.75 MiB≠memory=16.00 GiB.Evidence
fastfetch-evidence.png— figlet PAGH logo top-left, Pagh-OS OS/Kernel lines, Memory 16 GiB, real Disk (/). (Untracked artifact.)Known limitations (documented, not blockers)
Disk (/) … - rootfssuffix: label from/proc/mounts(size is real ext2); relabeling to ext2 needs a guest mount-table procfs contract — separate change./= ENOENT (unreachable: compat processes only exist with ext2 userland mounted).