blob: d50a9e91aecc05f2b9d80369c00389013a9a11c4 [file] [log] [blame]
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include "installer/chromeos_install_config.h"
// Create the configuration structure used during an install.
bool ConfigureInstall(
const std::string& install_dev,
const std::string& install_path,
BiosType bios_type,
InstallConfig* install_config);
// Find the current kernel command line and use it to find the
// current bios type.
// Exported for testing.
bool DetectBiosType(BiosType* bios_type);
// Find out bios type in use from a kernel command line.
// Exported for testing.
bool KernelConfigToBiosType(const std::string& kernel_config, BiosType* type);
// Perform the post install operation. This is used after a kernel and
// rootfs have been copied into to place to make the valid and set them
// up for the next boot.
bool RunPostInstall(const std::string& install_dir,
const std::string& install_dev,
BiosType bios_type,
int* exit_code);