[haiku-development] Re: Does booting into an older state work (hrev54741)?

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: Haiku Development ML <haiku-development@xxxxxxxxxxxxx>
  • Date: Sat, 5 Dec 2020 12:21:34 -0500

On Sat, Dec 5, 2020 at 3:26 AM Humdinger <dmarc-noreply@xxxxxxxxxxxxx> wrote:

As a test, I installed Becasso on the 5th Dec, rebooted, and chose the state 
before that date (2nd Dec) from
the list in the boot options. After continuing the boot, Becasso is still 
installed. It's still listed in
'/boot/system/packages/administrative/activated-packages' and the HPKG still 
sits in '/boot/system/packages'.

So, it seems I'm still booted in the 5th Dec state...

No, these files are not changed when booting into a different state;
instead, the activated-packages file from the "state" directory is
loaded, as are any required packages from there. You can make sure of
this by validating that Becasso does not appear in /system/apps.

What should have happened?
I assume the "activated-packages" file with the Becasso entry should have 
been moved together with the Becasso
HPKG to the 5th Dec 'state' folder, and a new "activated-packages" file 
generated without the Becasso entry in
the administrative folder upon boot?

Booting into an older state does not modify anything inside the
/system/packages directory, it just uses the older files as I noted
above, so that when you reboot, you will be back inside the "current"
state instead of the older one. Thus, if your "current" state is
broken, you will need to repair it somehow before trying to reboot
without specifying an older state.

-waddlesplash

Other related posts: