Darin Petkov | 73058b4 | 2010-10-06 16:32:19 -0700 | [diff] [blame] | 1 | // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include <sys/types.h> |
| 6 | #include <sys/stat.h> |
Andrew de los Reyes | 4fe15d0 | 2009-12-10 19:01:36 -0800 | [diff] [blame] | 7 | #include <errno.h> |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 8 | #include <fcntl.h> |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 9 | #include <unistd.h> |
Darin Petkov | 73058b4 | 2010-10-06 16:32:19 -0700 | [diff] [blame] | 10 | |
Andrew de los Reyes | 4fe15d0 | 2009-12-10 19:01:36 -0800 | [diff] [blame] | 11 | #include <set> |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 12 | #include <string> |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 13 | #include <vector> |
Darin Petkov | 73058b4 | 2010-10-06 16:32:19 -0700 | [diff] [blame] | 14 | |
| 15 | #include <base/command_line.h> |
| 16 | #include <base/logging.h> |
Andrew de los Reyes | c24e3f3 | 2011-08-30 15:45:20 -0700 | [diff] [blame] | 17 | #include <base/string_number_conversions.h> |
| 18 | #include <base/string_split.h> |
Andrew de los Reyes | b10320d | 2010-03-31 16:44:44 -0700 | [diff] [blame] | 19 | #include <gflags/gflags.h> |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 20 | #include <glib.h> |
Darin Petkov | 73058b4 | 2010-10-06 16:32:19 -0700 | [diff] [blame] | 21 | |
Andrew de los Reyes | 4fe15d0 | 2009-12-10 19:01:36 -0800 | [diff] [blame] | 22 | #include "update_engine/delta_diff_generator.h" |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 23 | #include "update_engine/delta_performer.h" |
Darin Petkov | da8c136 | 2011-01-13 14:04:24 -0800 | [diff] [blame] | 24 | #include "update_engine/payload_signer.h" |
Darin Petkov | 73058b4 | 2010-10-06 16:32:19 -0700 | [diff] [blame] | 25 | #include "update_engine/prefs.h" |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 26 | #include "update_engine/subprocess.h" |
Darin Petkov | 9c0baf8 | 2010-10-07 13:44:48 -0700 | [diff] [blame] | 27 | #include "update_engine/terminator.h" |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 28 | #include "update_engine/update_metadata.pb.h" |
Andrew de los Reyes | 4fe15d0 | 2009-12-10 19:01:36 -0800 | [diff] [blame] | 29 | #include "update_engine/utils.h" |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 30 | |
Andrew de los Reyes | b10320d | 2010-03-31 16:44:44 -0700 | [diff] [blame] | 31 | DEFINE_string(old_dir, "", |
| 32 | "Directory where the old rootfs is loop mounted read-only"); |
| 33 | DEFINE_string(new_dir, "", |
| 34 | "Directory where the new rootfs is loop mounted read-only"); |
| 35 | DEFINE_string(old_image, "", "Path to the old rootfs"); |
| 36 | DEFINE_string(new_image, "", "Path to the new rootfs"); |
Andrew de los Reyes | f4c7ef1 | 2010-04-30 10:37:00 -0700 | [diff] [blame] | 37 | DEFINE_string(old_kernel, "", "Path to the old kernel partition image"); |
| 38 | DEFINE_string(new_kernel, "", "Path to the new kernel partition image"); |
Darin Petkov | da8c136 | 2011-01-13 14:04:24 -0800 | [diff] [blame] | 39 | DEFINE_string(in_file, "", |
| 40 | "Path to input delta payload file used to hash/sign payloads " |
| 41 | "and apply delta over old_image (for debugging)"); |
| 42 | DEFINE_string(out_file, "", "Path to output delta payload file"); |
| 43 | DEFINE_string(out_hash_file, "", "Path to output hash file"); |
Jay Srinivasan | f431870 | 2012-09-24 11:56:24 -0700 | [diff] [blame] | 44 | DEFINE_string(out_metadata_hash_file, "", "Path to output metadata hash file"); |
Andrew de los Reyes | 932bc4c | 2010-08-23 18:14:09 -0700 | [diff] [blame] | 45 | DEFINE_string(private_key, "", "Path to private key in .pem format"); |
Darin Petkov | adb3cef | 2011-01-13 16:16:08 -0800 | [diff] [blame] | 46 | DEFINE_string(public_key, "", "Path to public key in .pem format"); |
Andrew de los Reyes | c24e3f3 | 2011-08-30 15:45:20 -0700 | [diff] [blame] | 47 | DEFINE_int32(public_key_version, |
| 48 | chromeos_update_engine::kSignatureMessageCurrentVersion, |
| 49 | "Key-check version # of client"); |
Darin Petkov | 73058b4 | 2010-10-06 16:32:19 -0700 | [diff] [blame] | 50 | DEFINE_string(prefs_dir, "/tmp/update_engine_prefs", |
Darin Petkov | da8c136 | 2011-01-13 14:04:24 -0800 | [diff] [blame] | 51 | "Preferences directory, used with apply_delta"); |
Andrew de los Reyes | c24e3f3 | 2011-08-30 15:45:20 -0700 | [diff] [blame] | 52 | DEFINE_string(signature_size, "", |
| 53 | "Raw signature size used for hash calculation. " |
| 54 | "You may pass in multiple sizes by colon separating them. E.g. " |
| 55 | "2048:2048:4096 will assume 3 signatures, the first two with " |
| 56 | "2048 size and the last 4096."); |
| 57 | DEFINE_string(signature_file, "", |
| 58 | "Raw signature file to sign payload with. To pass multiple " |
| 59 | "signatures, use a single argument with a colon between paths, " |
| 60 | "e.g. /path/to/sig:/path/to/next:/path/to/last_sig . Each " |
| 61 | "signature will be assigned a client version, starting from " |
| 62 | "kSignatureOriginalVersion."); |
Darin Petkov | 8e447e0 | 2013-04-16 16:23:50 +0200 | [diff] [blame^] | 63 | DEFINE_int32(chunk_size, -1, "Payload chunk size (-1 -- no limit/default)"); |
Andrew de los Reyes | b10320d | 2010-03-31 16:44:44 -0700 | [diff] [blame] | 64 | |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 65 | // This file contains a simple program that takes an old path, a new path, |
| 66 | // and an output file as arguments and the path to an output file and |
| 67 | // generates a delta that can be sent to Chrome OS clients. |
| 68 | |
Andrew de los Reyes | 4fe15d0 | 2009-12-10 19:01:36 -0800 | [diff] [blame] | 69 | using std::set; |
| 70 | using std::string; |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 71 | using std::vector; |
Andrew de los Reyes | 4fe15d0 | 2009-12-10 19:01:36 -0800 | [diff] [blame] | 72 | |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 73 | namespace chromeos_update_engine { |
| 74 | |
Andrew de los Reyes | 4fe15d0 | 2009-12-10 19:01:36 -0800 | [diff] [blame] | 75 | namespace { |
Andrew de los Reyes | 4fe15d0 | 2009-12-10 19:01:36 -0800 | [diff] [blame] | 76 | |
Andrew de los Reyes | 4fe15d0 | 2009-12-10 19:01:36 -0800 | [diff] [blame] | 77 | bool IsDir(const char* path) { |
| 78 | struct stat stbuf; |
| 79 | TEST_AND_RETURN_FALSE_ERRNO(lstat(path, &stbuf) == 0); |
| 80 | return S_ISDIR(stbuf.st_mode); |
| 81 | } |
| 82 | |
Jay Srinivasan | f431870 | 2012-09-24 11:56:24 -0700 | [diff] [blame] | 83 | void ParseSignatureSizes(vector<int>* sizes) { |
| 84 | LOG_IF(FATAL, FLAGS_signature_size.empty()) |
| 85 | << "Must pass --signature_size to calculate hash for signing."; |
| 86 | vector<string> strsizes; |
| 87 | base::SplitString(FLAGS_signature_size, ':', &strsizes); |
| 88 | for (vector<string>::iterator it = strsizes.begin(), e = strsizes.end(); |
| 89 | it != e; ++it) { |
| 90 | int size = 0; |
| 91 | bool parsing_successful = base::StringToInt(*it, &size); |
| 92 | LOG_IF(FATAL, !parsing_successful) |
| 93 | << "Invalid signature size: " << *it; |
| 94 | sizes->push_back(size); |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | |
Darin Petkov | da8c136 | 2011-01-13 14:04:24 -0800 | [diff] [blame] | 99 | void CalculatePayloadHashForSigning() { |
| 100 | LOG(INFO) << "Calculating payload hash for signing."; |
| 101 | LOG_IF(FATAL, FLAGS_in_file.empty()) |
| 102 | << "Must pass --in_file to calculate hash for signing."; |
| 103 | LOG_IF(FATAL, FLAGS_out_hash_file.empty()) |
| 104 | << "Must pass --out_hash_file to calculate hash for signing."; |
Andrew de los Reyes | c24e3f3 | 2011-08-30 15:45:20 -0700 | [diff] [blame] | 105 | vector<int> sizes; |
Jay Srinivasan | f431870 | 2012-09-24 11:56:24 -0700 | [diff] [blame] | 106 | ParseSignatureSizes(&sizes); |
| 107 | |
Darin Petkov | da8c136 | 2011-01-13 14:04:24 -0800 | [diff] [blame] | 108 | vector<char> hash; |
Jay Srinivasan | f431870 | 2012-09-24 11:56:24 -0700 | [diff] [blame] | 109 | bool result = PayloadSigner::HashPayloadForSigning(FLAGS_in_file, sizes, |
| 110 | &hash); |
| 111 | CHECK(result); |
| 112 | |
| 113 | result = utils::WriteFile(FLAGS_out_hash_file.c_str(), hash.data(), |
| 114 | hash.size()); |
| 115 | CHECK(result); |
Darin Petkov | da8c136 | 2011-01-13 14:04:24 -0800 | [diff] [blame] | 116 | LOG(INFO) << "Done calculating payload hash for signing."; |
| 117 | } |
| 118 | |
Jay Srinivasan | f431870 | 2012-09-24 11:56:24 -0700 | [diff] [blame] | 119 | |
| 120 | void CalculateMetadataHashForSigning() { |
| 121 | LOG(INFO) << "Calculating metadata hash for signing."; |
| 122 | LOG_IF(FATAL, FLAGS_in_file.empty()) |
| 123 | << "Must pass --in_file to calculate metadata hash for signing."; |
| 124 | LOG_IF(FATAL, FLAGS_out_metadata_hash_file.empty()) |
| 125 | << "Must pass --out_metadata_hash_file to calculate metadata hash."; |
| 126 | vector<int> sizes; |
| 127 | ParseSignatureSizes(&sizes); |
| 128 | |
| 129 | vector<char> hash; |
| 130 | bool result = PayloadSigner::HashMetadataForSigning(FLAGS_in_file, &hash); |
| 131 | CHECK(result); |
| 132 | |
| 133 | result = utils::WriteFile(FLAGS_out_metadata_hash_file.c_str(), hash.data(), |
| 134 | hash.size()); |
| 135 | CHECK(result); |
| 136 | |
| 137 | LOG(INFO) << "Done calculating metadata hash for signing."; |
| 138 | } |
| 139 | |
Darin Petkov | da8c136 | 2011-01-13 14:04:24 -0800 | [diff] [blame] | 140 | void SignPayload() { |
| 141 | LOG(INFO) << "Signing payload."; |
| 142 | LOG_IF(FATAL, FLAGS_in_file.empty()) |
| 143 | << "Must pass --in_file to sign payload."; |
| 144 | LOG_IF(FATAL, FLAGS_out_file.empty()) |
| 145 | << "Must pass --out_file to sign payload."; |
| 146 | LOG_IF(FATAL, FLAGS_signature_file.empty()) |
| 147 | << "Must pass --signature_file to sign payload."; |
Andrew de los Reyes | c24e3f3 | 2011-08-30 15:45:20 -0700 | [diff] [blame] | 148 | vector<vector<char> > signatures; |
| 149 | vector<string> signature_files; |
| 150 | base::SplitString(FLAGS_signature_file, ':', &signature_files); |
| 151 | for (vector<string>::iterator it = signature_files.begin(), |
| 152 | e = signature_files.end(); it != e; ++it) { |
| 153 | vector<char> signature; |
| 154 | CHECK(utils::ReadFile(*it, &signature)); |
| 155 | signatures.push_back(signature); |
| 156 | } |
Jay Srinivasan | 738fdf3 | 2012-12-07 17:40:54 -0800 | [diff] [blame] | 157 | uint64_t final_metadata_size; |
Darin Petkov | da8c136 | 2011-01-13 14:04:24 -0800 | [diff] [blame] | 158 | CHECK(PayloadSigner::AddSignatureToPayload( |
Jay Srinivasan | 738fdf3 | 2012-12-07 17:40:54 -0800 | [diff] [blame] | 159 | FLAGS_in_file, signatures, FLAGS_out_file, &final_metadata_size)); |
| 160 | LOG(INFO) << "Done signing payload. Final metadata size = " |
| 161 | << final_metadata_size; |
Darin Petkov | da8c136 | 2011-01-13 14:04:24 -0800 | [diff] [blame] | 162 | } |
| 163 | |
Darin Petkov | adb3cef | 2011-01-13 16:16:08 -0800 | [diff] [blame] | 164 | void VerifySignedPayload() { |
| 165 | LOG(INFO) << "Verifying signed payload."; |
| 166 | LOG_IF(FATAL, FLAGS_in_file.empty()) |
| 167 | << "Must pass --in_file to verify signed payload."; |
| 168 | LOG_IF(FATAL, FLAGS_public_key.empty()) |
| 169 | << "Must pass --public_key to verify signed payload."; |
Andrew de los Reyes | c24e3f3 | 2011-08-30 15:45:20 -0700 | [diff] [blame] | 170 | CHECK(PayloadSigner::VerifySignedPayload(FLAGS_in_file, FLAGS_public_key, |
| 171 | FLAGS_public_key_version)); |
Darin Petkov | adb3cef | 2011-01-13 16:16:08 -0800 | [diff] [blame] | 172 | LOG(INFO) << "Done verifying signed payload."; |
| 173 | } |
| 174 | |
Darin Petkov | da8c136 | 2011-01-13 14:04:24 -0800 | [diff] [blame] | 175 | void ApplyDelta() { |
| 176 | LOG(INFO) << "Applying delta."; |
| 177 | LOG_IF(FATAL, FLAGS_old_image.empty()) |
| 178 | << "Must pass --old_image to apply delta."; |
| 179 | Prefs prefs; |
Jay Srinivasan | 51dcf26 | 2012-09-13 17:24:32 -0700 | [diff] [blame] | 180 | InstallPlan install_plan; |
Darin Petkov | da8c136 | 2011-01-13 14:04:24 -0800 | [diff] [blame] | 181 | LOG(INFO) << "Setting up preferences under: " << FLAGS_prefs_dir; |
| 182 | LOG_IF(ERROR, !prefs.Init(FilePath(FLAGS_prefs_dir))) |
| 183 | << "Failed to initialize preferences."; |
| 184 | // Get original checksums |
| 185 | LOG(INFO) << "Calculating original checksums"; |
| 186 | PartitionInfo kern_info, root_info; |
| 187 | CHECK(DeltaDiffGenerator::InitializePartitionInfo(true, // is_kernel |
| 188 | FLAGS_old_kernel, |
| 189 | &kern_info)); |
| 190 | CHECK(DeltaDiffGenerator::InitializePartitionInfo(false, // is_kernel |
| 191 | FLAGS_old_image, |
| 192 | &root_info)); |
Jay Srinivasan | 51dcf26 | 2012-09-13 17:24:32 -0700 | [diff] [blame] | 193 | install_plan.kernel_hash.assign(kern_info.hash().begin(), |
| 194 | kern_info.hash().end()); |
| 195 | install_plan.rootfs_hash.assign(root_info.hash().begin(), |
| 196 | root_info.hash().end()); |
Jay Srinivasan | f057205 | 2012-10-23 18:12:56 -0700 | [diff] [blame] | 197 | DeltaPerformer performer(&prefs, NULL, &install_plan); |
Darin Petkov | da8c136 | 2011-01-13 14:04:24 -0800 | [diff] [blame] | 198 | CHECK_EQ(performer.Open(FLAGS_old_image.c_str(), 0, 0), 0); |
| 199 | CHECK(performer.OpenKernel(FLAGS_old_kernel.c_str())); |
| 200 | vector<char> buf(1024 * 1024); |
| 201 | int fd = open(FLAGS_in_file.c_str(), O_RDONLY, 0); |
| 202 | CHECK_GE(fd, 0); |
| 203 | ScopedFdCloser fd_closer(&fd); |
| 204 | for (off_t offset = 0;; offset += buf.size()) { |
| 205 | ssize_t bytes_read; |
| 206 | CHECK(utils::PReadAll(fd, &buf[0], buf.size(), offset, &bytes_read)); |
| 207 | if (bytes_read == 0) |
| 208 | break; |
| 209 | CHECK_EQ(performer.Write(&buf[0], bytes_read), bytes_read); |
| 210 | } |
| 211 | CHECK_EQ(performer.Close(), 0); |
| 212 | DeltaPerformer::ResetUpdateProgress(&prefs, false); |
| 213 | LOG(INFO) << "Done applying delta."; |
| 214 | } |
| 215 | |
Andrew de los Reyes | 4fe15d0 | 2009-12-10 19:01:36 -0800 | [diff] [blame] | 216 | int Main(int argc, char** argv) { |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 217 | g_thread_init(NULL); |
Andrew de los Reyes | b10320d | 2010-03-31 16:44:44 -0700 | [diff] [blame] | 218 | google::ParseCommandLineFlags(&argc, &argv, true); |
| 219 | CommandLine::Init(argc, argv); |
Darin Petkov | 9c0baf8 | 2010-10-07 13:44:48 -0700 | [diff] [blame] | 220 | Terminator::Init(); |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 221 | Subprocess::Init(); |
Andrew de los Reyes | b10320d | 2010-03-31 16:44:44 -0700 | [diff] [blame] | 222 | logging::InitLogging("delta_generator.log", |
Andrew de los Reyes | 4fe15d0 | 2009-12-10 19:01:36 -0800 | [diff] [blame] | 223 | logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, |
| 224 | logging::DONT_LOCK_LOG_FILE, |
Chris Masone | d903c3b | 2011-05-12 15:35:46 -0700 | [diff] [blame] | 225 | logging::APPEND_TO_OLD_LOG_FILE, |
| 226 | logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); |
Jay Srinivasan | f431870 | 2012-09-24 11:56:24 -0700 | [diff] [blame] | 227 | if (!FLAGS_signature_size.empty()) { |
| 228 | bool work_done = false; |
| 229 | if (!FLAGS_out_hash_file.empty()) { |
| 230 | CalculatePayloadHashForSigning(); |
| 231 | work_done = true; |
| 232 | } |
| 233 | if (!FLAGS_out_metadata_hash_file.empty()) { |
| 234 | CalculateMetadataHashForSigning(); |
| 235 | work_done = true; |
| 236 | } |
| 237 | if (!work_done) { |
| 238 | LOG(FATAL) << "Neither payload hash file nor metadata hash file supplied"; |
| 239 | } |
Darin Petkov | da8c136 | 2011-01-13 14:04:24 -0800 | [diff] [blame] | 240 | return 0; |
| 241 | } |
| 242 | if (!FLAGS_signature_file.empty()) { |
| 243 | SignPayload(); |
| 244 | return 0; |
| 245 | } |
Darin Petkov | adb3cef | 2011-01-13 16:16:08 -0800 | [diff] [blame] | 246 | if (!FLAGS_public_key.empty()) { |
| 247 | VerifySignedPayload(); |
| 248 | return 0; |
| 249 | } |
Darin Petkov | da8c136 | 2011-01-13 14:04:24 -0800 | [diff] [blame] | 250 | if (!FLAGS_in_file.empty()) { |
| 251 | ApplyDelta(); |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 252 | return 0; |
| 253 | } |
Andrew de los Reyes | f4c7ef1 | 2010-04-30 10:37:00 -0700 | [diff] [blame] | 254 | CHECK(!FLAGS_new_image.empty()); |
| 255 | CHECK(!FLAGS_out_file.empty()); |
Andrew de los Reyes | f4c7ef1 | 2010-04-30 10:37:00 -0700 | [diff] [blame] | 256 | CHECK(!FLAGS_new_kernel.empty()); |
Andrew de los Reyes | 27f7d37 | 2010-10-07 11:26:07 -0700 | [diff] [blame] | 257 | if (FLAGS_old_image.empty()) { |
| 258 | LOG(INFO) << "Generating full update"; |
| 259 | } else { |
| 260 | LOG(INFO) << "Generating delta update"; |
Andrew de los Reyes | 27f7d37 | 2010-10-07 11:26:07 -0700 | [diff] [blame] | 261 | CHECK(!FLAGS_old_dir.empty()); |
| 262 | CHECK(!FLAGS_new_dir.empty()); |
| 263 | if ((!IsDir(FLAGS_old_dir.c_str())) || (!IsDir(FLAGS_new_dir.c_str()))) { |
| 264 | LOG(FATAL) << "old_dir or new_dir not directory"; |
| 265 | } |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 266 | } |
Jay Srinivasan | 738fdf3 | 2012-12-07 17:40:54 -0800 | [diff] [blame] | 267 | uint64_t metadata_size; |
Chris Sosa | c7c19cd | 2011-02-08 17:02:12 -0800 | [diff] [blame] | 268 | if (!DeltaDiffGenerator::GenerateDeltaUpdateFile(FLAGS_old_dir, |
| 269 | FLAGS_old_image, |
| 270 | FLAGS_new_dir, |
| 271 | FLAGS_new_image, |
| 272 | FLAGS_old_kernel, |
| 273 | FLAGS_new_kernel, |
| 274 | FLAGS_out_file, |
Jay Srinivasan | 738fdf3 | 2012-12-07 17:40:54 -0800 | [diff] [blame] | 275 | FLAGS_private_key, |
Darin Petkov | 8e447e0 | 2013-04-16 16:23:50 +0200 | [diff] [blame^] | 276 | FLAGS_chunk_size, |
Jay Srinivasan | 738fdf3 | 2012-12-07 17:40:54 -0800 | [diff] [blame] | 277 | &metadata_size)) { |
Chris Sosa | c7c19cd | 2011-02-08 17:02:12 -0800 | [diff] [blame] | 278 | return 1; |
| 279 | } |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 280 | return 0; |
Andrew de los Reyes | 4fe15d0 | 2009-12-10 19:01:36 -0800 | [diff] [blame] | 281 | } |
| 282 | |
| 283 | } // namespace {} |
| 284 | |
| 285 | } // namespace chromeos_update_engine |
| 286 | |
| 287 | int main(int argc, char** argv) { |
| 288 | return chromeos_update_engine::Main(argc, argv); |
| 289 | } |