1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
<title>sbuild: sbuild::chroot_mountable Class Reference</title>
4
<link href="tabs.css" rel="stylesheet" type="text/css">
5
<link href="doxygen.css" rel="stylesheet" type="text/css">
7
<!-- Generated by Doxygen 1.5.9 -->
8
<div class="navigation" id="top">
11
<li><a href="index.html"><span>Main Page</span></a></li>
12
<li><a href="pages.html"><span>Related Pages</span></a></li>
13
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
14
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
15
<li><a href="files.html"><span>Files</span></a></li>
16
<li><a href="dirs.html"><span>Directories</span></a></li>
21
<li><a href="annotated.html"><span>Class List</span></a></li>
22
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
23
<li><a href="functions.html"><span>Class Members</span></a></li>
26
<div class="navpath"><a class="el" href="namespacesbuild.html">sbuild</a>::<a class="el" href="classsbuild_1_1chroot__mountable.html">chroot_mountable</a>
29
<div class="contents">
30
<h1>sbuild::chroot_mountable Class Reference</h1><!-- doxytag: class="sbuild::chroot_mountable" --><!-- doxytag: inherits="sbuild::chroot" -->A <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> stored on an unmounted block device.
31
<a href="#_details">More...</a>
33
<code>#include <<a class="el" href="sbuild-chroot-mountable_8h_source.html">sbuild-chroot-mountable.h</a>></code>
35
<div class="dynheader">
36
Inheritance diagram for sbuild::chroot_mountable:</div>
37
<div class="dynsection">
38
<p><center><img src="classsbuild_1_1chroot__mountable__inherit__graph.png" border="0" usemap="#sbuild_1_1chroot__mountable__inherit__map" alt="Inheritance graph"></center>
39
<map name="sbuild_1_1chroot__mountable__inherit__map">
40
<area shape="rect" href="classsbuild_1_1chroot__block__device.html" title="A chroot stored on an unmounted block device." alt="" coords="8,160,189,189"><area shape="rect" href="classsbuild_1_1chroot__loopback.html" title="A chroot stored in a file for loopback mounting." alt="" coords="213,160,371,189"><area shape="rect" href="classsbuild_1_1chroot.html" title="Common chroot data." alt="" coords="145,5,244,35"><area shape="rect" href="classsbuild_1_1chroot__lvm__snapshot.html" title="A chroot stored on an LVM logical volume (LV)." alt="" coords="5,237,192,267"></map>
41
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
42
<div class="dynheader">
43
Collaboration diagram for sbuild::chroot_mountable:</div>
44
<div class="dynsection">
45
<p><center><img src="classsbuild_1_1chroot__mountable__coll__graph.png" border="0" usemap="#sbuild_1_1chroot__mountable__coll__map" alt="Collaboration graph"></center>
46
<map name="sbuild_1_1chroot__mountable__coll__map">
47
<area shape="rect" href="classsbuild_1_1chroot.html" title="Common chroot data." alt="" coords="341,565,440,595"><area shape="rect" href="classsbuild_1_1regex.html" title="POSIX extended regular expression." alt="" coords="208,428,304,457"><area shape="rect" href="classsbuild_1_1personality.html" title="Chroot personality." alt="" coords="328,428,453,457"><area shape="rect" title="STL class." alt="" coords="427,101,507,131"><area shape="rect" title="STL class." alt="" coords="388,5,545,35"><area shape="rect" title="STL class." alt="" coords="157,101,277,131"><area shape="rect" title="STL class." alt="" coords="19,101,133,131"></map>
48
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
51
<a href="classsbuild_1_1chroot__mountable-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
53
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
54
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__mountable.html#2bfda615a6fdeb4d8b8e696b820f496e">~chroot_mountable</a> ()</td></tr>
56
<tr><td class="mdescLeft"> </td><td class="mdescRight">The destructor. <a href="#2bfda615a6fdeb4d8b8e696b820f496e"></a><br></td></tr>
57
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual std::string const & </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__mountable.html#4596badf4cfcc4d0dcc8455d2006cfcf">get_mount_device</a> () const =0</td></tr>
59
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the mount device of the <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a>. <a href="#4596badf4cfcc4d0dcc8455d2006cfcf"></a><br></td></tr>
60
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string const & </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__mountable.html#2fa56af3a4e0efdf48c66e04e4541cc2">get_mount_options</a> () const </td></tr>
62
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the filesystem mount_options of the <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> block device. <a href="#2fa56af3a4e0efdf48c66e04e4541cc2"></a><br></td></tr>
63
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__mountable.html#fd3f5cdfd109138c55ecce0ce40668cb">set_mount_options</a> (std::string const &<a class="el" href="classsbuild_1_1chroot__mountable.html#d6bfae753ad1d937b4e4fe197ff5a98b">mount_options</a>)</td></tr>
65
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the filesystem mount_options of the <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> block device. <a href="#fd3f5cdfd109138c55ecce0ce40668cb"></a><br></td></tr>
66
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual std::string const & </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__mountable.html#3144714399e889829b051833ee6f3ca7">get_location</a> () const </td></tr>
68
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the location. <a href="#3144714399e889829b051833ee6f3ca7"></a><br></td></tr>
69
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__mountable.html#bd02363f2f15135c0e34b0a5d4b7f714">set_location</a> (std::string const &<a class="el" href="classsbuild_1_1chroot.html#efbc5a3c1c7d5cb7a349f70bebaccac1">location</a>)</td></tr>
71
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the location. <a href="#bd02363f2f15135c0e34b0a5d4b7f714"></a><br></td></tr>
72
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__mountable.html#04cf528fb6152c54b827c037c8547f00">setup_env</a> (<a class="el" href="classsbuild_1_1environment.html">environment</a> &env)</td></tr>
74
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set <a class="el" href="classsbuild_1_1environment.html" title="Container of environment variables.">environment</a>. <a href="#04cf528fb6152c54b827c037c8547f00"></a><br></td></tr>
75
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e">session_flags</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__mountable.html#2bec81805a33eea2669006ed1714a694">get_session_flags</a> () const </td></tr>
77
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the <a class="el" href="classsbuild_1_1session.html" title="Session handler.">session</a> flags of the <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a>. <a href="#2bec81805a33eea2669006ed1714a694"></a><br></td></tr>
78
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
79
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__mountable.html#4c3bc73fbc97910e8b0405e4ed8de4f9">chroot_mountable</a> ()</td></tr>
81
<tr><td class="mdescLeft"> </td><td class="mdescRight">The constructor. <a href="#4c3bc73fbc97910e8b0405e4ed8de4f9"></a><br></td></tr>
82
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__mountable.html#c9d89dca3fe73a3ae6083453e5c7d77e">get_details</a> (<a class="el" href="classsbuild_1_1format__detail.html">format_detail</a> &detail) const </td></tr>
84
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get detailed information about the <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> for output. <a href="#c9d89dca3fe73a3ae6083453e5c7d77e"></a><br></td></tr>
85
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__mountable.html#a6513a647adbe707ea2d533dd142d4e0">get_keyfile</a> (<a class="el" href="classsbuild_1_1basic__keyfile.html">keyfile</a> &<a class="el" href="classsbuild_1_1basic__keyfile.html">keyfile</a>) const </td></tr>
87
<tr><td class="mdescLeft"> </td><td class="mdescRight">Copy the <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> properties into a keyfile. <a href="#a6513a647adbe707ea2d533dd142d4e0"></a><br></td></tr>
88
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__mountable.html#489bade6c26fee3669973a158a214404">set_keyfile</a> (<a class="el" href="classsbuild_1_1basic__keyfile.html">keyfile</a> const &<a class="el" href="classsbuild_1_1basic__keyfile.html">keyfile</a>, <a class="el" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f">string_list</a> &used_keys)</td></tr>
90
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> properties from a keyfile. <a href="#489bade6c26fee3669973a158a214404"></a><br></td></tr>
91
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
92
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__mountable.html#d6bfae753ad1d937b4e4fe197ff5a98b">mount_options</a></td></tr>
94
<tr><td class="mdescLeft"> </td><td class="mdescRight">The options to mount the device with. <a href="#d6bfae753ad1d937b4e4fe197ff5a98b"></a><br></td></tr>
95
<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
96
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__mountable.html#d93ec14845f07d687e98a51953056cd6">chroot</a></td></tr>
99
<hr><a name="_details"></a><h2>Detailed Description</h2>
100
A <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> stored on an unmounted block device.
102
The device will be mounted on demand. <hr><h2>Constructor & Destructor Documentation</h2>
103
<a class="anchor" name="4c3bc73fbc97910e8b0405e4ed8de4f9"></a><!-- doxytag: member="sbuild::chroot_mountable::chroot_mountable" ref="4c3bc73fbc97910e8b0405e4ed8de4f9" args="()" -->
104
<div class="memitem">
105
<div class="memproto">
106
<table class="memname">
108
<td class="memname">chroot_mountable::chroot_mountable </td>
110
<td class="paramname"> </td>
111
<td> ) </td>
112
<td><code> [protected]</code></td>
124
<a class="anchor" name="2bfda615a6fdeb4d8b8e696b820f496e"></a><!-- doxytag: member="sbuild::chroot_mountable::~chroot_mountable" ref="2bfda615a6fdeb4d8b8e696b820f496e" args="()" -->
125
<div class="memitem">
126
<div class="memproto">
127
<table class="memname">
129
<td class="memname">chroot_mountable::~chroot_mountable </td>
131
<td class="paramname"> </td>
132
<td> ) </td>
133
<td><code> [virtual]</code></td>
145
<hr><h2>Member Function Documentation</h2>
146
<a class="anchor" name="c9d89dca3fe73a3ae6083453e5c7d77e"></a><!-- doxytag: member="sbuild::chroot_mountable::get_details" ref="c9d89dca3fe73a3ae6083453e5c7d77e" args="(format_detail &detail) const " -->
147
<div class="memitem">
148
<div class="memproto">
149
<table class="memname">
151
<td class="memname">void chroot_mountable::get_details </td>
153
<td class="paramtype"><a class="el" href="classsbuild_1_1format__detail.html">format_detail</a> & </td>
154
<td class="paramname"> <em>detail</em> </td>
155
<td> ) </td>
156
<td> const<code> [protected, virtual]</code></td>
163
Get detailed information about the <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> for output.
165
<dl compact><dt><b>Parameters:</b></dt><dd>
166
<table border="0" cellspacing="2" cellpadding="0">
167
<tr><td valign="top"></td><td valign="top"><em>detail</em> </td><td>the details to output to. </td></tr>
171
<p>Reimplemented from <a class="el" href="classsbuild_1_1chroot.html#2f067f08b2a4104503a31a3a12a1f447">sbuild::chroot</a>.</p>
173
<p>Reimplemented in <a class="el" href="classsbuild_1_1chroot__block__device.html#51b846bb33b77998e7b05953571bad38">sbuild::chroot_block_device</a>, <a class="el" href="classsbuild_1_1chroot__loopback.html#72a390e930b87daca204b8e54f18428f">sbuild::chroot_loopback</a>, and <a class="el" href="classsbuild_1_1chroot__lvm__snapshot.html#fd8c9bbb8475c30a86beafde4c837c9f">sbuild::chroot_lvm_snapshot</a>.</p>
175
<p>References <a class="el" href="sbuild-format-detail_8cc_source.html#l00042">sbuild::format_detail::add()</a>, <a class="el" href="sbuild-chroot-mountable_8cc_source.html#l00045">get_mount_options()</a>, and <a class="el" href="sbuild-chroot-mountable_8h_source.html#l00100">mount_options</a>.</p>
179
<a class="anchor" name="a6513a647adbe707ea2d533dd142d4e0"></a><!-- doxytag: member="sbuild::chroot_mountable::get_keyfile" ref="a6513a647adbe707ea2d533dd142d4e0" args="(keyfile &keyfile) const " -->
180
<div class="memitem">
181
<div class="memproto">
182
<table class="memname">
184
<td class="memname">void chroot_mountable::get_keyfile </td>
186
<td class="paramtype"><a class="el" href="classsbuild_1_1basic__keyfile.html">keyfile</a> & </td>
187
<td class="paramname"> <em>keyfile</em> </td>
188
<td> ) </td>
189
<td> const<code> [protected, virtual]</code></td>
196
Copy the <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> properties into a keyfile.
198
The keyfile group with the name of the <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> will be set; if it already exists, it will be removed before setting it.<p>
199
<dl compact><dt><b>Parameters:</b></dt><dd>
200
<table border="0" cellspacing="2" cellpadding="0">
201
<tr><td valign="top"></td><td valign="top"><em>keyfile</em> </td><td>the keyfile to use. </td></tr>
205
<p>Reimplemented from <a class="el" href="classsbuild_1_1chroot.html#bd88b14c1aae6b73da82d1a59967d86c">sbuild::chroot</a>.</p>
207
<p>Reimplemented in <a class="el" href="classsbuild_1_1chroot__block__device.html#8aa2ab631c222afcf86495c011649351">sbuild::chroot_block_device</a>, <a class="el" href="classsbuild_1_1chroot__loopback.html#f2f32c1eee597149c60bef3f1c11175c">sbuild::chroot_loopback</a>, and <a class="el" href="classsbuild_1_1chroot__lvm__snapshot.html#a99036a024257918e4a00b3d377003c1">sbuild::chroot_lvm_snapshot</a>.</p>
209
<p>References <a class="el" href="sbuild-chroot-mountable_8cc_source.html#l00057">get_location()</a>, <a class="el" href="sbuild-chroot-mountable_8cc_source.html#l00045">get_mount_options()</a>, <a class="el" href="sbuild-chroot_8cc_source.html#l00144">sbuild::chroot::get_name()</a>, and <a class="el" href="sbuild-basic-keyfile_8h_source.html#l00902">sbuild::basic_keyfile< K, P >::set_object_value()</a>.</p>
213
<a class="anchor" name="3144714399e889829b051833ee6f3ca7"></a><!-- doxytag: member="sbuild::chroot_mountable::get_location" ref="3144714399e889829b051833ee6f3ca7" args="() const " -->
214
<div class="memitem">
215
<div class="memproto">
216
<table class="memname">
218
<td class="memname">std::string const & chroot_mountable::get_location </td>
220
<td class="paramname"> </td>
221
<td> ) </td>
222
<td> const<code> [virtual]</code></td>
231
This is a path to the <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> directory inside the device (absolute path from the device root).<p>
232
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the location. </dd></dl>
234
<p>Reimplemented from <a class="el" href="classsbuild_1_1chroot.html#51dc847229a1f9979e6151797dc8122f">sbuild::chroot</a>.</p>
236
<p>Referenced by <a class="el" href="sbuild-chroot-mountable_8cc_source.html#l00095">get_keyfile()</a>.</p>
240
<a class="anchor" name="4596badf4cfcc4d0dcc8455d2006cfcf"></a><!-- doxytag: member="sbuild::chroot_mountable::get_mount_device" ref="4596badf4cfcc4d0dcc8455d2006cfcf" args="() const =0" -->
241
<div class="memitem">
242
<div class="memproto">
243
<table class="memname">
245
<td class="memname">virtual std::string const& sbuild::chroot_mountable::get_mount_device </td>
247
<td class="paramname"> </td>
248
<td> ) </td>
249
<td> const<code> [pure virtual]</code></td>
256
Get the mount device of the <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a>.
258
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the device. </dd></dl>
260
<p>Reimplemented from <a class="el" href="classsbuild_1_1chroot.html#48e3f8e86bda7a0e7e14e5b4b625c75f">sbuild::chroot</a>.</p>
262
<p>Implemented in <a class="el" href="classsbuild_1_1chroot__block__device.html#b749c15ff89c485693685d7505b0c316">sbuild::chroot_block_device</a>, <a class="el" href="classsbuild_1_1chroot__loopback.html#defdb7f031a2e28b644517ac20d84da1">sbuild::chroot_loopback</a>, and <a class="el" href="classsbuild_1_1chroot__lvm__snapshot.html#4862102cead274965f30b5be0cf9e3ec">sbuild::chroot_lvm_snapshot</a>.</p>
266
<a class="anchor" name="2fa56af3a4e0efdf48c66e04e4541cc2"></a><!-- doxytag: member="sbuild::chroot_mountable::get_mount_options" ref="2fa56af3a4e0efdf48c66e04e4541cc2" args="() const " -->
267
<div class="memitem">
268
<div class="memproto">
269
<table class="memname">
271
<td class="memname">std::string const & chroot_mountable::get_mount_options </td>
273
<td class="paramname"> </td>
274
<td> ) </td>
282
Get the filesystem mount_options of the <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> block device.
284
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the mount options. </dd></dl>
286
<p>References <a class="el" href="sbuild-chroot-mountable_8h_source.html#l00100">mount_options</a>.</p>
288
<p>Referenced by <a class="el" href="sbuild-chroot-mountable_8cc_source.html#l00086">get_details()</a>, <a class="el" href="sbuild-chroot-mountable_8cc_source.html#l00095">get_keyfile()</a>, and <a class="el" href="sbuild-chroot-mountable_8cc_source.html#l00072">setup_env()</a>.</p>
292
<a class="anchor" name="2bec81805a33eea2669006ed1714a694"></a><!-- doxytag: member="sbuild::chroot_mountable::get_session_flags" ref="2bec81805a33eea2669006ed1714a694" args="() const " -->
293
<div class="memitem">
294
<div class="memproto">
295
<table class="memname">
297
<td class="memname"><a class="el" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e">sbuild::chroot::session_flags</a> chroot_mountable::get_session_flags </td>
299
<td class="paramname"> </td>
300
<td> ) </td>
301
<td> const<code> [virtual]</code></td>
308
Get the <a class="el" href="classsbuild_1_1session.html" title="Session handler.">session</a> flags of the <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a>.
310
These determine how the Session controlling the <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> will operate.<p>
311
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the <a class="el" href="classsbuild_1_1session.html" title="Session handler.">session</a> flags. </dd></dl>
313
<p>Implements <a class="el" href="classsbuild_1_1chroot.html#3971cded8d1c466c20bfec514729161a">sbuild::chroot</a>.</p>
315
<p>Reimplemented in <a class="el" href="classsbuild_1_1chroot__block__device.html#c9b3041d99ce000d51f784ff6f1e3d4b">sbuild::chroot_block_device</a>, <a class="el" href="classsbuild_1_1chroot__loopback.html#af93b6ac96a4e47ef7562e719ef8cfc2">sbuild::chroot_loopback</a>, and <a class="el" href="classsbuild_1_1chroot__lvm__snapshot.html#41ca7a27aa4b88fbc7ec146a4fff25c4">sbuild::chroot_lvm_snapshot</a>.</p>
317
<p>References <a class="el" href="sbuild-chroot_8h_source.html#l00059">sbuild::chroot::SESSION_NOFLAGS</a>.</p>
321
<a class="anchor" name="489bade6c26fee3669973a158a214404"></a><!-- doxytag: member="sbuild::chroot_mountable::set_keyfile" ref="489bade6c26fee3669973a158a214404" args="(keyfile const &keyfile, string_list &used_keys)" -->
322
<div class="memitem">
323
<div class="memproto">
324
<table class="memname">
326
<td class="memname">void chroot_mountable::set_keyfile </td>
328
<td class="paramtype"><a class="el" href="classsbuild_1_1basic__keyfile.html">keyfile</a> const & </td>
329
<td class="paramname"> <em>keyfile</em>, </td>
332
<td class="paramkey"></td>
334
<td class="paramtype"><a class="el" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f">string_list</a> & </td>
335
<td class="paramname"> <em>used_keys</em></td><td> </td>
340
<td></td><td></td><td><code> [protected, virtual]</code></td>
347
Set the <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> properties from a keyfile.
349
The <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> name must have previously been set, so that the correct keyfile group may be determined.<p>
350
<dl compact><dt><b>Parameters:</b></dt><dd>
351
<table border="0" cellspacing="2" cellpadding="0">
352
<tr><td valign="top"></td><td valign="top"><em>keyfile</em> </td><td>the keyfile to get the properties from. </td></tr>
353
<tr><td valign="top"></td><td valign="top"><em>used_keys</em> </td><td>a list of the keys used will be set. </td></tr>
357
<p>Reimplemented from <a class="el" href="classsbuild_1_1chroot.html#0b8555f5ea3bc9c03b8be043a2a4d96c">sbuild::chroot</a>.</p>
359
<p>Reimplemented in <a class="el" href="classsbuild_1_1chroot__block__device.html#81c3ff021550eaa2b168e56dd318559b">sbuild::chroot_block_device</a>, <a class="el" href="classsbuild_1_1chroot__loopback.html#f3d447fd3ca8bb097b35755a39045cce">sbuild::chroot_loopback</a>, and <a class="el" href="classsbuild_1_1chroot__lvm__snapshot.html#7a9041e884f3863a2539188809de5357">sbuild::chroot_lvm_snapshot</a>.</p>
361
<p>References <a class="el" href="sbuild-chroot_8cc_source.html#l00144">sbuild::chroot::get_name()</a>, <a class="el" href="sbuild-basic-keyfile_8h_source.html#l01031">sbuild::basic_keyfile< K, P >::get_object_value()</a>, <a class="el" href="sbuild-keyfile-base_8h_source.html#l00049">sbuild::keyfile_base::PRIORITY_OPTIONAL</a>, <a class="el" href="sbuild-chroot-mountable_8cc_source.html#l00063">set_location()</a>, and <a class="el" href="sbuild-chroot-mountable_8cc_source.html#l00051">set_mount_options()</a>.</p>
365
<a class="anchor" name="bd02363f2f15135c0e34b0a5d4b7f714"></a><!-- doxytag: member="sbuild::chroot_mountable::set_location" ref="bd02363f2f15135c0e34b0a5d4b7f714" args="(std::string const &location)" -->
366
<div class="memitem">
367
<div class="memproto">
368
<table class="memname">
370
<td class="memname">void chroot_mountable::set_location </td>
372
<td class="paramtype">std::string const & </td>
373
<td class="paramname"> <em>location</em> </td>
374
<td> ) </td>
375
<td><code> [virtual]</code></td>
384
This is a path to the <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> directory inside the device (absolute path from the device root).<p>
385
<dl compact><dt><b>Parameters:</b></dt><dd>
386
<table border="0" cellspacing="2" cellpadding="0">
387
<tr><td valign="top"></td><td valign="top"><em>location</em> </td><td>the location. </td></tr>
391
<p>Reimplemented from <a class="el" href="classsbuild_1_1chroot.html#dabe7e9b1f1bc2a93096ad15ec0b2973">sbuild::chroot</a>.</p>
393
<p>References <a class="el" href="sbuild-util_8cc_source.html#l00153">sbuild::is_absname()</a>, and <a class="el" href="sbuild-chroot_8h_source.html#l00081">sbuild::chroot::LOCATION_ABS</a>.</p>
395
<p>Referenced by <a class="el" href="sbuild-chroot-mountable_8cc_source.html#l00107">set_keyfile()</a>.</p>
399
<a class="anchor" name="fd3f5cdfd109138c55ecce0ce40668cb"></a><!-- doxytag: member="sbuild::chroot_mountable::set_mount_options" ref="fd3f5cdfd109138c55ecce0ce40668cb" args="(std::string const &mount_options)" -->
400
<div class="memitem">
401
<div class="memproto">
402
<table class="memname">
404
<td class="memname">void chroot_mountable::set_mount_options </td>
406
<td class="paramtype">std::string const & </td>
407
<td class="paramname"> <em>mount_options</em> </td>
408
<td> ) </td>
416
Set the filesystem mount_options of the <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> block device.
418
<dl compact><dt><b>Parameters:</b></dt><dd>
419
<table border="0" cellspacing="2" cellpadding="0">
420
<tr><td valign="top"></td><td valign="top"><em>mount_options</em> </td><td>the mount options. </td></tr>
424
<p>Referenced by <a class="el" href="sbuild-chroot-mountable_8cc_source.html#l00107">set_keyfile()</a>.</p>
428
<a class="anchor" name="04cf528fb6152c54b827c037c8547f00"></a><!-- doxytag: member="sbuild::chroot_mountable::setup_env" ref="04cf528fb6152c54b827c037c8547f00" args="(environment &env)" -->
429
<div class="memitem">
430
<div class="memproto">
431
<table class="memname">
433
<td class="memname">void chroot_mountable::setup_env </td>
435
<td class="paramtype"><a class="el" href="classsbuild_1_1environment.html">environment</a> & </td>
436
<td class="paramname"> <em>env</em> </td>
437
<td> ) </td>
438
<td><code> [virtual]</code></td>
445
Set <a class="el" href="classsbuild_1_1environment.html" title="Container of environment variables.">environment</a>.
447
Set the <a class="el" href="classsbuild_1_1environment.html" title="Container of environment variables.">environment</a> that the setup scripts will see during execution.<p>
448
<dl compact><dt><b>Parameters:</b></dt><dd>
449
<table border="0" cellspacing="2" cellpadding="0">
450
<tr><td valign="top"></td><td valign="top"><em>env</em> </td><td>the <a class="el" href="classsbuild_1_1environment.html" title="Container of environment variables.">environment</a> to set. </td></tr>
454
<p>Reimplemented from <a class="el" href="classsbuild_1_1chroot.html#5eef8f0da324842ae34393a52462f9e5">sbuild::chroot</a>.</p>
456
<p>Reimplemented in <a class="el" href="classsbuild_1_1chroot__block__device.html#660e4d607f97b12e7f1d32cfa6eb65ba">sbuild::chroot_block_device</a>, <a class="el" href="classsbuild_1_1chroot__loopback.html#3a1c672b205a4999e5c37f2ab2fed273">sbuild::chroot_loopback</a>, and <a class="el" href="classsbuild_1_1chroot__lvm__snapshot.html#cc589550ffd00460ab6a782fb75518d7">sbuild::chroot_lvm_snapshot</a>.</p>
458
<p>References <a class="el" href="sbuild-environment_8cc_source.html#l00055">sbuild::environment::add()</a>, and <a class="el" href="sbuild-chroot-mountable_8cc_source.html#l00045">get_mount_options()</a>.</p>
462
<hr><h2>Friends And Related Function Documentation</h2>
463
<a class="anchor" name="d93ec14845f07d687e98a51953056cd6"></a><!-- doxytag: member="sbuild::chroot_mountable::chroot" ref="d93ec14845f07d687e98a51953056cd6" args="" -->
464
<div class="memitem">
465
<div class="memproto">
466
<table class="memname">
468
<td class="memname">friend class <a class="el" href="classsbuild_1_1chroot.html">chroot</a><code> [friend]</code> </td>
476
<p>Reimplemented in <a class="el" href="classsbuild_1_1chroot__block__device.html#d93ec14845f07d687e98a51953056cd6">sbuild::chroot_block_device</a>, <a class="el" href="classsbuild_1_1chroot__loopback.html#d93ec14845f07d687e98a51953056cd6">sbuild::chroot_loopback</a>, and <a class="el" href="classsbuild_1_1chroot__lvm__snapshot.html#d93ec14845f07d687e98a51953056cd6">sbuild::chroot_lvm_snapshot</a>.</p>
480
<hr><h2>Member Data Documentation</h2>
481
<a class="anchor" name="d6bfae753ad1d937b4e4fe197ff5a98b"></a><!-- doxytag: member="sbuild::chroot_mountable::mount_options" ref="d6bfae753ad1d937b4e4fe197ff5a98b" args="" -->
482
<div class="memitem">
483
<div class="memproto">
484
<table class="memname">
486
<td class="memname">std::string <a class="el" href="classsbuild_1_1chroot__mountable.html#d6bfae753ad1d937b4e4fe197ff5a98b">sbuild::chroot_mountable::mount_options</a><code> [private]</code> </td>
493
The options to mount the device with.
496
<p>Referenced by <a class="el" href="sbuild-chroot-mountable_8cc_source.html#l00086">get_details()</a>, and <a class="el" href="sbuild-chroot-mountable_8cc_source.html#l00045">get_mount_options()</a>.</p>
500
<hr>The documentation for this class was generated from the following files:<ul>
501
<li>sbuild/<a class="el" href="sbuild-chroot-mountable_8h_source.html">sbuild-chroot-mountable.h</a><li>sbuild/<a class="el" href="sbuild-chroot-mountable_8cc.html">sbuild-chroot-mountable.cc</a></ul>
503
<hr size="1"><address style="text-align: right;"><small>Generated on Sun May 17 18:39:15 2009 for sbuild by
504
<a href="http://www.doxygen.org/index.html">
505
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>