blob: fa3e419dd0c829952d280d460ac35d0fb405d62f [file] [log] [blame]
// Copyright 2023 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
#include <string>
#include <base/files/file_path.h>
#include <base/values.h>
#include <libstorage/platform/platform.h>
#include "init/startup/flags.h"
#include "init/startup/mount_helper.h"
#include "init/startup/startup_dep_impl.h"
namespace startup {
// This class is used when the device is in factory mode. The
// DoMountVarAndHomeChronos and DoUmountVarAndHomeChronos functions
// have different behavior when the device is in factory mode.
class FactoryModeMountHelper : public MountHelper {
FactoryModeMountHelper(libstorage::Platform* platform,
StartupDep* startup_dep,
const Flags& flags,
const base::FilePath& root,
const base::FilePath& stateful);
bool DoMountVarAndHomeChronos() override;
} // namespace startup