From bda5713304319fb69e89524d4e9abc1f18ff8a0a Mon Sep 17 00:00:00 2001 From: larina3315 <138502262+larina3315@users.noreply.github.com> Date: Tue, 26 Dec 2023 23:27:54 +0600 Subject: [PATCH 1/2] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 61b75e3..68e6641 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,12 @@ rpm-ostree deploy 520e744c643b85fd14817a3eb948f200e7dec902cad4157e411dfeda2c6d7a ostree admin pin -u 1 ``` +7. Make a specific deployment your default deployment, 0 is the deployment index + +```bash +ostree admin set-default 0 +``` + ### Rebase into different tree (also for switching flavors of the distro) 1. List trees of the ostree repository (fedora example) From b5ebb20a203542537dfa0d5fe6a48bb3cd453a21 Mon Sep 17 00:00:00 2001 From: larina3315 <138502262+larina3315@users.noreply.github.com> Date: Wed, 27 Dec 2023 13:08:55 +0600 Subject: [PATCH 2/2] Add "booting previous deployment" section --- README.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 68e6641..7fb82e6 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,19 @@ rpm-ostree status ## Emergency fallback +### booting previous deployment + +1. Boot into the last booted deployment before the currently booted deployment, and make it your default deployment + +```bash +rpm-ostree rollback +``` +2. Make a specific deployment your default deployment, 0 is the deployment index + +```bash +ostree admin set-default 0 +``` + ### falling back to any previous commit of the system branch 1. Download last 5 commits (parameter `--commit-metadata-only` is optional but makes things faster) @@ -50,12 +63,6 @@ rpm-ostree deploy 520e744c643b85fd14817a3eb948f200e7dec902cad4157e411dfeda2c6d7a ostree admin pin -u 1 ``` -7. Make a specific deployment your default deployment, 0 is the deployment index - -```bash -ostree admin set-default 0 -``` - ### Rebase into different tree (also for switching flavors of the distro) 1. List trees of the ostree repository (fedora example)