Re: how to determine when we'll enter the other deployment on reboot
- From: Davis Roman <davis roman84 gmail com>
- To: ostree-list gnome org
- Subject: Re: how to determine when we'll enter the other deployment on reboot
- Date: Mon, 5 Feb 2018 13:56:23 -0500
Perhaps the answer to my very first question regarding how to tell if a deployment switch will occur on the next reboot is to look at the order of commit entries in 'ostree admin status'
It appears to me that after performing a switch, the new commit is placed as the first entry however the star is not pointing to it yet.
If the first commit does not have a start then our machine is in a state where a switch will occur on the next reboot.
Would this be a correct assumption to make?
Thank you,
Davis
root@hon-grip-aio-200-01939A:~# ostree admin status
* poky 3e2b0445740e693008fab7a631f51cb0561f0f7dc3f249f0a275d8556f7ad2c0.2
origin refspec: 3e2b0445740e693008fab7a631f51cb0561f0f7dc3f249f0a275d8556f7ad2c0
poky 810b3f6c054df8f1c8a10ab1b5a9cb6de3150bb5304278ea0ebc1f0cb3d79b95.2
origin refspec: 810b3f6c054df8f1c8a10ab1b5a9cb6de3150bb5304278ea0ebc1f0cb3d79b95
root@hon-grip-aio-200-01939A:~# ostrbr-lan: port 1(veth-zip) entered forwarding state
ee^C
root@hon-grip-aio-200-01939A:~# ostree admin switch 810b3f6c054df8f1c8a10ab1b5a9cb6de3150bb5304278ea0ebc1f0cb3d79b95
Copying /etc changes: 5 modified, 3 removed, 13 added
Transaction complete; bootconfig swap: yes deployment count change: 0
Deleting ref '(null):3e2b0445740e693008fab7a631f51cb0561f0f7dc3f249f0a275d8556f7ad2c0'
root@hon-grip-aio-200-01939A:~# ostree rev-parse hon-grip-generic-ota
3e2b0445740e693008fab7a631f51cb0561f0f7dc3f249f0a275d8556f7ad2c0
root@hon-grip-aio-200-01939A:~# ostree admin status
poky 810b3f6c054df8f1c8a10ab1b5a9cb6de3150bb5304278ea0ebc1f0cb3d79b95.3
origin refspec: 810b3f6c054df8f1c8a10ab1b5a9cb6de3150bb5304278ea0ebc1f0cb3d79b95
* poky 3e2b0445740e693008fab7a631f51cb0561f0f7dc3f249f0a275d8556f7ad2c0.2
origin refspec: 3e2b0445740e693008fab7a631f51cb0561f0f7dc3f249f0a275d8556f7ad2c0
root@hon-grip-aio-200-01939A:~#
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]