Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: client/common_lib/boottool.py

Issue 4823005: Merge remote branch 'cros/upstream' into tempbranch (Closed) Base URL: http://git.chromium.org/git/autotest.git@master
Patch Set: patch Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/common_lib/base_packages.py ('k') | client/common_lib/control_data_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/common_lib/boottool.py
diff --git a/client/common_lib/boottool.py b/client/common_lib/boottool.py
index 1c298616419389d4cc019afc55581d9e7a0683ca..f123f1c232bce85c2a07756d8b495e8c43f12513 100644
--- a/client/common_lib/boottool.py
+++ b/client/common_lib/boottool.py
@@ -264,18 +264,14 @@ class boottool(object):
def boot_once(self, title=None):
"""
- Sets a specific entry for the next boot Then falls back to the
+ Sets a specific entry for the next boot, then falls back to the
default kernel.
@param kernel: title that identifies the entry to set for booting. If
- evaluates to false it will use the default entry title.
- (FIXME: that does not make much sense, if an entry is default
- by definition that means it boots next anyways so maybe it
- should be a NOP for title evaluating to False)
- """
- if not title:
- title = self.get_default_title()
- self._run_boottool('--boot-once', '--title=%s' % title)
+ evaluates to false, this becomes a no-op.
+ """
+ if title:
+ self._run_boottool('--boot-once', '--title=%s' % title)
def enable_xen_mode(self):
« no previous file with comments | « client/common_lib/base_packages.py ('k') | client/common_lib/control_data_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698