From bbbf28db3018390fea20ab0c2e225f4602fb03ad Mon Sep 17 00:00:00 2001 From: Anne LoVerso Date: Thu, 5 Jun 2014 16:12:25 -0400 Subject: [PATCH] rollback: Add comment --- src/rpmostree-builtin-rollback.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rpmostree-builtin-rollback.c b/src/rpmostree-builtin-rollback.c index b39a7ea2..49fc6964 100644 --- a/src/rpmostree-builtin-rollback.c +++ b/src/rpmostree-builtin-rollback.c @@ -93,6 +93,12 @@ rpmostree_builtin_rollback (int argc, /* There is an earlier deployment, let's assume we want to just * insert the current one in front. */ + + /* + What this does is, if we're NOT in the default boot index, it plans to prepend + our current index (1, since we can't have more than two trees) so that it becomes index 0 + (default) and the current default becomes index 1 + */ index_to_prepend = booted_index; } else