Skip to content

StateRestore 1.0.1

Choose a tag to compare

@ablyssx74 ablyssx74 released this 18 Oct 18:34
· 7 commits to main since this release

Go back to an earlier state of Haiku's system packages without the boot menu. It's for the cases where the boot menu is hard to reach (a UEFI machine, or a virtual machine whose display stays black in the loader) and for undoing an update that broke something.

Install

Two packages are attached:

  • staterestore-1.0.1-1-x86_64.hpkg is for 64-bit Haiku.
  • staterestore-1.0.1-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.0

  • An application icon.
  • The Save syslog to Desktop button is gone from the window. StateRestore --syslog on the command line still does it.

What it does

  • Lists the earlier states Haiku keeps, with the current system on top. Each row shows its date, its Haiku revision and how many packages differ from now. The newest is marked PREVIOUS, and a state with another Haiku is marked OLDER or NEWER. Only states that can be restored are shown.
  • Shows what a restore would change before you do it: 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, and keeps the ones whose package files other states need.
  • A command line as well: StateRestore --list, --plan, --restore, --undo, --delete, --cleanup, --syslog.

Limits

  • It only helps while the system still boots. A system that doesn't start needs the boot menu or a rescue disk.
  • It handles the system packages, not the ones in ~/config/packages.
  • Deleting a state can't be undone.

SHA-256

598c8481e6edb69ff6fbd7c90bca37d3ff7799b1281289f70a86b78738513ac4  staterestore-1.0.1-1-x86_64.hpkg
1b906e93f575e5b4551ee38d0b7dd20bba212e2070d9afdaf6aeae76ed85c6db  staterestore-1.0.1-1-x86_gcc2.hpkg

The packages are not signed. StateRestore is under the MIT license.