I used beadm to create several boot environments as I configured my system. I configured my system using a set of shell scripts which includes installing packages, adding users, generating configuration files, configuring /boot/loader.conf, /etc/rc.conf, etc.
What I want to do is to update my system using my shell scripts (I maintain my system configuration in a git repository). I am thinking that I will boot to my original boot environment, create (and activate) a new boot environment. Then, I will proceed as if I were configuring my system for the first time (add packages, /boot/loader.conf, /etc/rc.conf ...).
I used a standard ZFS layout with GELI.
Will I be able to revert back to my original boot environments should anything go wrong? Or, do I need to partition my system differently?
My ZFS layout is:
What I want to do is to update my system using my shell scripts (I maintain my system configuration in a git repository). I am thinking that I will boot to my original boot environment, create (and activate) a new boot environment. Then, I will proceed as if I were configuring my system for the first time (add packages, /boot/loader.conf, /etc/rc.conf ...).
I used a standard ZFS layout with GELI.
Will I be able to revert back to my original boot environments should anything go wrong? Or, do I need to partition my system differently?
My ZFS layout is:
Code:
/tmp
/var/mail
/usr/home
/usr/ports
/var/crash
/var/tmp
/usr/src
/var/audit
/var/log
/