Skip to content

Commit

Permalink
delay 5 seconds for go_forward in dev mode to make it more reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuan-Chen Cheng authored and superm1 committed Sep 25, 2020
1 parent 61c8754 commit d26965f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
11 changes: 11 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
dell-recovery (1.67) UNRELEASED; urgency=medium

[ Crag Wang ]
* stage2: remove directory $TARGET/pts

[ Yuan-Chen Cheng ]
* ubiquity/dell-bootstrap.py: delay 5 seconds in dev mode to make it more
reliable, especially for Recovery from hdd.

-- Yuan-Chen Cheng <yc.cheng@canonical.com> Fri, 25 Sep 2020 11:34:11 +0800

dell-recovery (1.66) groovy; urgency=medium

[ Shih-Yuan Lee (FourDollars)]
Expand Down
10 changes: 6 additions & 4 deletions ubiquity/dell-bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,14 @@ def set_type(self, value, stage, hdd_flag):
self.interactive_recovery.set_sensitive(False)
self.automated_recovery.set_sensitive(False)
self.dhc_automated_recovery.set_sensitive(False)
if value == "dev" and (not hdd_flag):
if value == "dev" and (not hdd_flag): # USB installation, stage 2
self.automated_recovery.set_active(True)
self.controller.go_forward()
elif value == "dev" and hdd_flag:
self.controller.allow_go_forward(True)
GLib.timeout_add(5000, self.controller.go_forward)
elif value == "dev" and hdd_flag: # Recovery from hdd.
self.hdd_recovery.set_active(True)
self.controller.go_forward()
self.controller.allow_go_forward(True)
GLib.timeout_add(5000, self.controller.go_forward)
else:
self.controller.allow_go_forward(False)

Expand Down

0 comments on commit d26965f

Please sign in to comment.