blob: 86aa3fa19d0455461ff6c5bc8380d231460bb630 [file] [log] [blame]
// Copyright 2020 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 <base/logging.h>
#include "minios/minios.h"
namespace {
constexpr char kDebugConsole[] = "/dev/pts/2";
} // namespace
int MiniOs::Run() {
LOG(INFO) << "Starting miniOS.";
if (!screens_.Init()) {
LOG(ERROR) << "Screens init failed. Exiting.";
return 1;
}
screens_.ShowStepper({"done", "done", "done"});
// Start the shell on DEBUG console.
return ProcessManager().RunCommand({"/bin/sh"}, kDebugConsole, kDebugConsole);
}