How to manage the Boot Enviroment (BE) for testing a software

Need support for GhostBSD. Ask here if your question does not fit elsewhere.
Post Reply
mapsware
Posts: 45
Joined: Tue May 07, 2019 11:22 pm
Location: Hermosillo, Son. Mexico

How to manage the Boot Enviroment (BE) for testing a software

Post by mapsware »

What commands I need to run for the creation of a BE and go back to my previews configuration / BE?

I need to test a software, but after the testing I would like to restore my PC to the state before I installed it

So I will proceed with

Create BE (bectl create -r beTest, Do I need -r ?)
Install package
Make tests
Restore my PC (Not a clue about the commands, help needed)

My current BE are

Code: Select all

user@host ~% bectl list
BE                      Active Mountpoint Space Created
backup-2020-10-30-22-23 -      -          3.70G 2020-10-30 22:23
backup-2020-10-30-23-35 -      -          87.0M 2020-10-30 23:35
backup-2020-11-03-17-44 -      -          69.7M 2020-11-03 17:44
backup-2020-11-07-12-06 -      -          78.1M 2020-11-07 12:06
backup-2020-11-10-17-25 -      -          62.0M 2020-11-10 17:25
backup-2020-11-10-21-09 -      -          57.0M 2020-11-10 21:09
backup-2020-11-13-10-03 -      -          39.4M 2020-11-13 10:03
backup-2020-11-19-09-50 -      -          58.6M 2020-11-19 09:50
backup-2020-11-24-10-14 -      -          62.2M 2020-11-24 10:14
backup-2020-11-25-09-36 -      -          67.0M 2020-11-25 09:36
backup-2020-12-16-18-20 -      -          59.2M 2020-12-16 18:20
initial                 NR     /          16.0G 2020-10-30 19:22
nevets
Posts: 149
Joined: Tue Jun 23, 2020 3:54 am

Re: How to manage the Boot Enviroment (BE) for testing a software

Post by nevets »

To create a BE it is best to use the pkg "beadm". Install it from Software Station. This is the BE admin package.
To see the usage of the pkg commands with examples look at the manual page for the pkg:
type "man beadm" in a terminal. In brief...
To list BE's:
# beadm list
The NR = current and next reboot choice.
To create a new BE:
# sudo beadm create "name"
To destroy an existing BE:
# sudo beadm destroy "name"
To activate a new BE:
# sudo beadm activate "name"
You can also switch to a different BE at pc startup - see the bootloader options at that time.
Steve
Post Reply