Skip to content

os/v3/puppy: the appliance keeps no boot log on most boots (/data mounts after 06onboard-logs' one-shot test) #1000

Closed

Description

@bong-water-water-bong

Measured 4 Nov by desktopgate on the frozen c20 image (e066f9eaaf0a…) and written up in ~/briefs/TOS3-NOTE-c21-logs.md:
of five boots that reached userspace, one kept a log and four kept none — not on the 1BIT-DATA partition and not
anywhere else. /data/logs/<boot-id>/ present on one, absent on four; dumpe2fs on a kept copy of the partition says
Mount count: 1, last mount ~3.7 min into a boot that started ~06:30.

Two one-shot tests, each failing silently:

  • /etc/init.d/06onboard-logs runs ~7 s into the boot and return 0s unless " /data " is already in
    /proc/mounts at that instant. Nothing re-runs it, so a boot whose partition mounts later logs nowhere for the rest
    of its life, and the only trace is a line on tty1 that nobody is looking at.
  • 1bit-logs' dir() only tests "can I mkdir", and $DATA is a directory even when nothing is mounted on it
    (05onboard-data mkdirs it before mounting). So a boot with no mount writes the "persisted" log onto the RAM-backed
    root and returns 0 — the same class one layer down.

Consequence for the release: a desktop session that resets or wedges the machine on such a boot leaves no evidence at
all
(that is the cycle-16 failure mode, still open), u2-desktop-session SKIPs instead of reporting, and
puppy-check's log-derived rows lose their input.

Fix in the linked PR: dir() requires $DATA to be a mount point, the daemon waits for it instead of exiting, the
service starts the daemon unconditionally, snap refuses on an unmounted $DATA, and the build refuses an image
carrying either old spelling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions