1#pragma once
2
3#include "unit.hpp"
4
5struct Mount : public Unit
6{
7 explicit Mount(const std::string &id, toml::table &table, std::shared_ptr<const Template> template_ = nullptr, const ArgumentMap &args = {});
8
9 const std::string mount_point;
10 const std::string fs_type;
11 const std::string options;
12 const std::string device;
13
14 private:
15 UnitType GetType() const override
16 {
17 return UnitType::Mount;
18 }
19 bool Start() override;
20 bool Stop() override;
21 void onPrint(std::ostream &os) const override;
22};
23