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.
#ifndef INIT_STARTUP_FACTORY_MODE_MOUNT_HELPER_H_
#define INIT_STARTUP_FACTORY_MODE_MOUNT_HELPER_H_
#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 {
public:
FactoryModeMountHelper(libstorage::Platform* platform,
StartupDep* startup_dep,
const Flags& flags,
const base::FilePath& root,
const base::FilePath& stateful);
bool DoMountVarAndHomeChronos() override;
};
} // namespace startup
#endif // INIT_STARTUP_FACTORY_MODE_MOUNT_HELPER_H_