blob: 75bea968a6d798ba2152208acd2805c8332c86e4 [file] [log] [blame]
// Copyright 2018 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.
#ifndef OOBE_CONFIG_ROLLBACK_CONSTANTS_H_
#define OOBE_CONFIG_ROLLBACK_CONSTANTS_H_
#include <base/files/file_util.h>
namespace oobe_config {
inline constexpr char kStatefulPartitionPath[] = "/mnt/stateful_partition/";
// oobe_config_prepare_save copied the files into this directory.
inline constexpr char kSaveTempPath[] = "/var/lib/oobe_config_save/";
// oobe_config_finish_restore is expecting the files in this directory.
inline constexpr char kRestoreTempPath[] = "/var/lib/oobe_config_restore/";
// The rollback data is stored here on unencrypted stateful as an encrypted
// proto. This is the file which is preserved over powerwash.
inline constexpr char kUnencryptedStatefulRollbackDataFile[] =
"/mnt/stateful_partition/unencrypted/preserve/rollback_data";
// The rollback data is stored here on encrypted stateful as an unencrypted
// proto.
inline constexpr char kEncryptedStatefulRollbackDataFile[] =
"/var/lib/oobe_config_restore/rollback_data";
// The name of the marker file used to trigger a save of rollback data
// during the next shutdown.
inline constexpr char kRollbackSaveMarkerFile[] =
"/mnt/stateful_partition/.save_rollback_data";
// The path to the file that indicates if OOBE has completed.
inline constexpr char kOobeCompletedFile[] = "/home/chronos/.oobe_completed";
inline constexpr char kOobeCompletedFileName[] = ".oobe_completed";
// The path to the file that indicates if metrics reporting is enabled.
inline constexpr char kMetricsReportingEnabledFile[] =
"/home/chronos/Consent To Send Stats";
inline constexpr char kMetricsReportingEnabledFileName[] =
"Consent To Send Stats";
inline constexpr char kOobeConfigSaveUsername[] = "oobe_config_save";
inline constexpr char kRootUsername[] = "root";
inline constexpr char kPreserveGroupName[] = "preserve";
// Path to the file indicating the data save was successful.
inline constexpr char kDataSavedFile[] =
"/var/lib/oobe_config_save/.data_saved";
inline constexpr char kRollbackDataForPmsgFile[] =
"/var/lib/oobe_config_save/data_for_pstore";
inline constexpr char kPstorePath[] = "/sys/fs/pstore/";
} // namespace oobe_config
#endif // OOBE_CONFIG_ROLLBACK_CONSTANTS_H_