Tutorial

Change your system and roll it back

What you'll do

You've installed Vessel and logged in. Now you'll change one thing about the system, boot the changed system, and then roll the change back. By the end you'll have seen what makes Vessel different: every change is a new generation, and the old one is always there to go back to.

We're picking up from the end of the last page, logged in with a terminal open. Changing the system needs root, so if you're not root already, become root first:

su

Step 1: Change the computer's name

Open the file the installer wrote, system.sgl, in your editor. This tutorial uses nano, but any editor works:

nano /etc/vessel/system.sgl

It's a Sigil program. It imports the system record, packages and features, then returns a system-configuration built from your answers: the computer's name, your account and the disk's partition IDs. Its feature list switches on everything else, such as logins, audio, Wi-Fi and the Tessera desktop. Find the host-name field near the start of the configuration:

host-name: "atlas"

Change the computer's name from atlas to harbor, so the line reads:

host-name: "harbor"

Save the file and leave nano: press Ctrl+O, then Enter to save, then Ctrl+X to exit.

Step 2: Apply the change and boot it

Apply the configuration you just changed:

vessel system apply /etc/vessel/system.sgl

This builds the system the file now describes, from the packages already on the computer. It doesn't download anything, so it can use only what Vessel 2026.1 installed. Then it sets up the new system as generation 2, a trial for the next boot. It doesn't restart the computer, and nothing on the running system changes yet.

Generation 2 becomes the default for the next boot, and it has three tries to finish booting. Then one of two things happens:

  • If it boots and passes its health check, it's kept. It's marked good, and it stays the default.

  • If its health check fails even once, or three boots in a row are cut off, the trial ends and the computer goes back to generation 1 by itself.

Restart to try it:

reboot

Log in again and check the name in the terminal:

uname -n

It prints harbor. Become root again and look at the system's status, which lists its generations:

su
vessel status

You'll see both generations, with generation 2 running. It passed its health check, so it's good now. The output looks something like this (an example: the exact layout may differ):

1  good   /sigil/store/7d1c...-vessel-system
*  2  good   /sigil/store/2b9e...-vessel-system

Step 3: Roll back

Still as root, go back to the system you installed:

vessel system rollback

Rolling back doesn't delete anything. It makes a new generation, number 3, that runs generation 1's system, the same store item you saw when you first looked at the status. Generation 2 is still there, and vessel system rollback 2 would take you forward to it the same way.

Restart, log in and run uname -n again. It prints atlas.

That's the whole loop: change the file, apply it, boot the new generation and go back whenever you want. You've just done it with the computer's name, and it works the same way for everything Vessel manages!

When you're done, turn the computer off from a terminal with su -c poweroff.

Where to go next

  • Generations, trial boots and rollback explains what happened in steps 2 and 3: the tries counter, the health check and why rolling back makes a new generation. It also shows how to remove old generations and free their space.

  • Build a small web server builds a whole Vessel system from one configuration file, on another Linux computer.

Created with Sigil