Skip to content

StateRestore 1.0.4

Choose a tag to compare

@ablyssx74 ablyssx74 released this 18 Oct 20:22
· 1 commit to main since this release

Go back to an earlier state of Haiku's system packages without the boot menu.

Install

Two packages are attached:

  • staterestore-1.0.4-1-x86_64.hpkg is for 64-bit Haiku.
  • staterestore-1.0.4-1-x86_gcc2.hpkg is for 32-bit Haiku (gcc 2 / hybrid).

Download the one for your system and install it for the whole system. It adds StateRestore to the Deskbar's Applications menu.

What's new since 1.0.3

  • Delete unrestorable… is greyed out when there is nothing to delete.

Changes in 1.0.3 (if you skipped it): the states that cannot be restored are shown in a list of their own, "Cannot be restored",
dimmed and marked DAMAGED (the list of packages of the state is damaged, which a shutdown in the middle of a write can cause),
MISSING (package files the state needs are gone) or SAME (nothing to restore); selecting one explains why. Delete unrestorable covers
all three kinds and its confirmation counts each; a damaged state keeps its package files as sources.
Changes in 1.0.2: a damaged list of packages no longer fools it; a damaged current list is replaced by the packages folder.
Changes in 1.0.1: an application icon, and the Save syslog button is gone from the window (StateRestore --syslog still does it).

What it does

  • Lists the earlier states Haiku keeps, with the current system on top. Each row has its date, its Haiku revision and how many packages
    differ from now; the newest is marked PREVIOUS, and one with another Haiku OLDER or NEWER. The states that can be restored come first.
  • Select one to see what restoring it would change: packages that change version, are taken out or are put back.
  • Restore swaps the packages. What it replaces is kept in ~/config/var/StateRestore/held/, and Undo last restore puts it back.
    Restart afterwards: the kernel comes from the haiku package, so the old system starts with the next boot.
  • Delete selected… deletes the states you pick, after a confirmation that says how much space it frees and how many other
    states could no longer be restored.
  • Delete unrestorable… deletes the states that cannot be restored (damaged, files missing, or the same as now), keeping the ones whose package files other states need.
  • A command line too: StateRestore --list, --plan, --restore, --undo, --delete, --cleanup, --syslog.

Limits

It only helps while the system still boots; a system that does not start needs the boot menu or a rescue disk. It handles the system
packages, not the ones in ~/config/packages. Deleting a state cannot be undone.

Files and SHA-256

407fb22e4b281bf89c70fad21453a12972f95224b2969cd7a52e582d97130e10  staterestore-1.0.4-1-x86_64.hpkg
43f70cdb0392c00c1a88bf8ff3a1ced74ad9092842acd5efd04bde4e74af2c08  staterestore-1.0.4-1-x86_gcc2.hpkg

Source

https://github.com/ablyssx74/StateRestore, tag v1.0.4. The packages are not signed. StateRestore is under the MIT license.