View Single Post
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#527
Originally Posted by eber42 View Post
Qole, ... I think you had two different issues:
  • Detecting image change when it wasn't the case: this one is fixed
  • Leaving the device in an inconsistent state when changing image (i.e. calling closechroot from ezchroot): i've not checked this one because i've got only one image.
I think calling closechroot from within the script should be safe if you are going to mount a new image. However, if the closechroot fails, as it did in your case, it should cause the whole script to fail. It looks like the main problem in your case was that the closechroot command failed but it continued to try to mount the new image anyway.. That was somewhat disastrous...
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!