OLD | NEW |
1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """This module manages interactions between an image and a public key.""" | 5 """This module manages interactions between an image and a public key.""" |
6 | 6 |
7 import os | 7 import os |
8 import tempfile | 8 import tempfile |
9 | 9 |
10 import cros_build_lib as cros_lib | 10 import cros_build_lib as cros_lib |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 """Makes the image bootable. Note, it is only useful for non-vm images.""" | 81 """Makes the image bootable. Note, it is only useful for non-vm images.""" |
82 image = os.path.basename(self.image_path) | 82 image = os.path.basename(self.image_path) |
83 if 'qemu' in image: | 83 if 'qemu' in image: |
84 return | 84 return |
85 | 85 |
86 from_dir = os.path.dirname(self.image_path) | 86 from_dir = os.path.dirname(self.image_path) |
87 cros_lib.RunCommand(['bin/cros_make_image_bootable', | 87 cros_lib.RunCommand(['bin/cros_make_image_bootable', |
88 cros_lib.ReinterpretPathForChroot(from_dir), | 88 cros_lib.ReinterpretPathForChroot(from_dir), |
89 image], print_cmd=False, redirect_stdout=True, | 89 image], print_cmd=False, redirect_stdout=True, |
90 redirect_stderr=True, enter_chroot=True, | 90 redirect_stderr=True, enter_chroot=True, |
91 cwd=cros_lib.CROSUTILS_DIRECTORY) | 91 cwd=cros_lib.GetCrosUtilsPath()) |
OLD | NEW |