Replies: 1 comment 3 replies
-
If you're booted from the deployment you can use Internally what this does is execute |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any way to switch to a pending ostree deployment WITHOUT REBOOTING ?
... for the scenario where you know that you do not need a reboot.
For example,
you can deploy the commit
ostree admin deploy f5982e1314fb042faf75759ec5cbfb8f0838e31a78b03f13bdb0c54653edbed1
Copying /etc changes: 91 modified, 27 removed, 335 added
Transaction complete; bootconfig swap: no; bootversion: boot.0.0, deployment count change: 0
... which creates the deployment in a 'pending' state.
ostree admin status
debian f5982e1314fb042faf75759ec5cbfb8f0838e31a78b03f13bdb0c54653edbed1.0 (pending)
origin refspec: f5982e1314fb042faf75759ec5cbfb8f0838e31a78b03f13bdb0c54653edbed1
* debian ce335da86a8b03d36f6041f46b7d86754d7f2c97e29114d91742abb6f72ee8fd.1
origin refspec: debian:starlingx
And you can swap around the bind mounts for /etc and /usr ... to switch /usr and /etc to point to this pending deployment
e.g.
OROOT=
ostree admin status |grep pending |awk '{print $2}'
echo $OROOT
f5982e1314fb042faf75759ec5cbfb8f0838e31a78b03f13bdb0c54653edbed1.0
NROOT=/ostree/deploy/debian/deploy/$OROOT
echo $NROOT
/ostree/deploy/debian/deploy/f5982e1314fb042faf75759ec5cbfb8f0838e31a78b03f13bdb0c54653edbed1.0
But the 'ostree admin status' is still showing the deployment as 'pending' ...
ostree admin status
debian f5982e1314fb042faf75759ec5cbfb8f0838e31a78b03f13bdb0c54653edbed1.0 (pending)
origin refspec: f5982e1314fb042faf75759ec5cbfb8f0838e31a78b03f13bdb0c54653edbed1
* debian ce335da86a8b03d36f6041f46b7d86754d7f2c97e29114d91742abb6f72ee8fd.1
origin refspec: debian:starlingx
... which causes problems on subsequent 'ostree admin deploy ...' commands;
i.e. specifically the 3-way /etc merge because ostree doesn't think the 'pending' deployment is 'active'.
Any ideas ?
Beta Was this translation helpful? Give feedback.
All reactions