19 #ifndef SBUILD_CHROOT_FACET_BLOCK_DEVICE_BASE_H
20 #define SBUILD_CHROOT_FACET_BLOCK_DEVICE_BASE_H
22 #include <sbuild/chroot/chroot.h>
23 #include <sbuild/chroot/facet/facet.h>
24 #include <sbuild/chroot/facet/storage.h>
std::string device
The block device to use.
Definition: block-device-base.h:108
block_device_base()
The constructor.
Definition: block-device-base.cc:38
virtual std::string get_path() const
Get the path to the chroot.
Definition: block-device-base.cc:83
Debian source builder components.
Definition: ctty.cc:31
virtual void get_keyfile(keyfile &keyfile) const
Copy the chroot properties into a keyfile.
Definition: block-device-base.cc:116
virtual void get_details(format_detail &detail) const
Get detailed information about the chroot for output.
Definition: block-device-base.cc:103
Chroot storage.
Definition: storage.h:39
Container of environment variables.
Definition: environment.h:38
chroot::error error
Exception type.
Definition: block-device-base.h:48
Common chroot data.
Definition: chroot.h:50
virtual void get_used_keys(string_list &used_keys) const
Get a list of the keys used during keyfile parsing.
Definition: block-device-base.cc:110
virtual void setup_env(environment &env) const
Set environment.
Definition: block-device-base.cc:97
virtual void set_keyfile(const keyfile &keyfile)
Set the chroot properties from a keyfile.
Definition: block-device-base.cc:123
Base class for all facets.
Definition: facet.h:50
std::vector< std::string > string_list
A string vector.
Definition: types.h:38
Custom error.
Definition: custom-error.h:31
Configuration file parser.
Definition: keyfile.h:46
A base class for block-device chroots.
Definition: block-device-base.h:43
std::string const & get_device() const
Get the block device of the chroot.
Definition: block-device-base.cc:68
void set_chroot(chroot &chroot, bool copy)
Set containing chroot.
Definition: block-device-base.cc:58
void set_device(const std::string &device)
Set the block device of the chroot.
Definition: block-device-base.cc:74
virtual ~block_device_base()
The destructor.
Definition: block-device-base.cc:53