I ran a script which was a bit more destructive than intended ... long story short, my current boot environment is broken and I need to rollback to the previous boot environment. The good thing is that I have snapshots for all my zfs pools as well as backups on another machine altogether. So, if push comes to shove, I could do a complete fresh install, but am trying to avoid that ...
I booted up the freebsd install image and went to a shell and am able to mount the prior snapshot and see files. I tried to manually "activate" the previous boot environment since I don't know if I can call beadm from the liveusb on that zfs pool (I tried and it didn't want to let me make changes). Poking through the script, it looks like what I need to do is:
1. set canmount=on
2. set mountpoint=/
3. zfs promote?
I did #1 and #2, but that mounted that volume at / for the live USB which was probably not good. I was unable to do zfs promote. I tried rebooting, but I am still seeing errors that seem to indicate the broken boot environment is still active.
What else do I need to do to activate the prior boot environment safely? Is zfs promote required?
I booted up the freebsd install image and went to a shell and am able to mount the prior snapshot and see files. I tried to manually "activate" the previous boot environment since I don't know if I can call beadm from the liveusb on that zfs pool (I tried and it didn't want to let me make changes). Poking through the script, it looks like what I need to do is:
1. set canmount=on
2. set mountpoint=/
3. zfs promote?
I did #1 and #2, but that mounted that volume at / for the live USB which was probably not good. I was unable to do zfs promote. I tried rebooting, but I am still seeing errors that seem to indicate the broken boot environment is still active.
What else do I need to do to activate the prior boot environment safely? Is zfs promote required?