| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 5 |
<title>Root partition mount point: OSTree API references</title> |
| 6 |
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"> |
| 7 |
<link rel="home" href="index.html" title="OSTree API references"> |
| 8 |
<link rel="up" href="reference.html" title="API Reference"> |
| 9 |
<link rel="prev" href="ostree-In-memory-modifiable-filesystem-tree.html" title="In-memory modifiable filesystem tree"> |
| 10 |
<link rel="next" href="ostree-Progress-notification-system-for-asynchronous-operations.html" title="Progress notification system for asynchronous operations"> |
| 11 |
<meta name="generator" content="GTK-Doc V1.34.0 (XML mode)"> |
| 12 |
<link rel="stylesheet" href="style.css" type="text/css"> |
| 13 |
</head> |
| 14 |
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
| 15 |
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> |
| 16 |
<td width="100%" align="left" class="shortcuts"> |
| 17 |
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> |
| 18 |
<a href="#ostree-Root-partition-mount-point.description" class="shortcut">Description</a></span> |
| 19 |
</td> |
| 20 |
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> |
| 21 |
<td><a accesskey="u" href="reference.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> |
| 22 |
<td><a accesskey="p" href="ostree-In-memory-modifiable-filesystem-tree.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> |
| 23 |
<td><a accesskey="n" href="ostree-Progress-notification-system-for-asynchronous-operations.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> |
| 24 |
</tr></table> |
| 25 |
<div class="refentry"> |
| 26 |
<a name="ostree-Root-partition-mount-point"></a><div class="titlepage"></div> |
| 27 |
<div class="refnamediv"><table width="100%"><tr> |
| 28 |
<td valign="top"> |
| 29 |
<h2><span class="refentrytitle"><a name="ostree-Root-partition-mount-point.top_of_page"></a>Root partition mount point</span></h2> |
| 30 |
<p>Root partition mount point — Manage physical root filesystem</p> |
| 31 |
</td> |
| 32 |
<td class="gallery_image" valign="top" align="right"></td> |
| 33 |
</tr></table></div> |
| 34 |
<div class="refsect1"> |
| 35 |
<a name="ostree-Root-partition-mount-point.functions"></a><h2>Functions</h2> |
| 36 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 37 |
<colgroup> |
| 38 |
<col width="150px" class="functions_proto_type"> |
| 39 |
<col class="functions_proto_name"> |
| 40 |
</colgroup> |
| 41 |
<tbody> |
| 42 |
<tr> |
| 43 |
<td class="function_type"> |
| 44 |
<a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="returnvalue">OstreeSysroot</span></a> * |
| 45 |
</td> |
| 46 |
<td class="function_name"> |
| 47 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-new" title="ostree_sysroot_new ()">ostree_sysroot_new</a> <span class="c_punctuation">()</span> |
| 48 |
</td> |
| 49 |
</tr> |
| 50 |
<tr> |
| 51 |
<td class="function_type"> |
| 52 |
<a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="returnvalue">OstreeSysroot</span></a> * |
| 53 |
</td> |
| 54 |
<td class="function_name"> |
| 55 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-new-default" title="ostree_sysroot_new_default ()">ostree_sysroot_new_default</a> <span class="c_punctuation">()</span> |
| 56 |
</td> |
| 57 |
</tr> |
| 58 |
<tr> |
| 59 |
<td class="function_type"> |
| 60 |
<span class="returnvalue">gboolean</span> |
| 61 |
</td> |
| 62 |
<td class="function_name"> |
| 63 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-initialize" title="ostree_sysroot_initialize ()">ostree_sysroot_initialize</a> <span class="c_punctuation">()</span> |
| 64 |
</td> |
| 65 |
</tr> |
| 66 |
<tr> |
| 67 |
<td class="function_type"> |
| 68 |
<span class="returnvalue">gboolean</span> |
| 69 |
</td> |
| 70 |
<td class="function_name"> |
| 71 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-initialize-with-mount-namespace" title="ostree_sysroot_initialize_with_mount_namespace ()">ostree_sysroot_initialize_with_mount_namespace</a> <span class="c_punctuation">()</span> |
| 72 |
</td> |
| 73 |
</tr> |
| 74 |
<tr> |
| 75 |
<td class="function_type"> |
| 76 |
<span class="returnvalue">GFile</span> * |
| 77 |
</td> |
| 78 |
<td class="function_name"> |
| 79 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-get-path" title="ostree_sysroot_get_path ()">ostree_sysroot_get_path</a> <span class="c_punctuation">()</span> |
| 80 |
</td> |
| 81 |
</tr> |
| 82 |
<tr> |
| 83 |
<td class="function_type"> |
| 84 |
<span class="returnvalue">gboolean</span> |
| 85 |
</td> |
| 86 |
<td class="function_name"> |
| 87 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-load" title="ostree_sysroot_load ()">ostree_sysroot_load</a> <span class="c_punctuation">()</span> |
| 88 |
</td> |
| 89 |
</tr> |
| 90 |
<tr> |
| 91 |
<td class="function_type"> |
| 92 |
<span class="returnvalue">gboolean</span> |
| 93 |
</td> |
| 94 |
<td class="function_name"> |
| 95 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-load-if-changed" title="ostree_sysroot_load_if_changed ()">ostree_sysroot_load_if_changed</a> <span class="c_punctuation">()</span> |
| 96 |
</td> |
| 97 |
</tr> |
| 98 |
<tr> |
| 99 |
<td class="function_type"> |
| 100 |
<span class="returnvalue">gboolean</span> |
| 101 |
</td> |
| 102 |
<td class="function_name"> |
| 103 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-lock" title="ostree_sysroot_lock ()">ostree_sysroot_lock</a> <span class="c_punctuation">()</span> |
| 104 |
</td> |
| 105 |
</tr> |
| 106 |
<tr> |
| 107 |
<td class="function_type"> |
| 108 |
<span class="returnvalue">gboolean</span> |
| 109 |
</td> |
| 110 |
<td class="function_name"> |
| 111 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-try-lock" title="ostree_sysroot_try_lock ()">ostree_sysroot_try_lock</a> <span class="c_punctuation">()</span> |
| 112 |
</td> |
| 113 |
</tr> |
| 114 |
<tr> |
| 115 |
<td class="function_type"> |
| 116 |
<span class="returnvalue">void</span> |
| 117 |
</td> |
| 118 |
<td class="function_name"> |
| 119 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-lock-async" title="ostree_sysroot_lock_async ()">ostree_sysroot_lock_async</a> <span class="c_punctuation">()</span> |
| 120 |
</td> |
| 121 |
</tr> |
| 122 |
<tr> |
| 123 |
<td class="function_type"> |
| 124 |
<span class="returnvalue">gboolean</span> |
| 125 |
</td> |
| 126 |
<td class="function_name"> |
| 127 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-lock-finish" title="ostree_sysroot_lock_finish ()">ostree_sysroot_lock_finish</a> <span class="c_punctuation">()</span> |
| 128 |
</td> |
| 129 |
</tr> |
| 130 |
<tr> |
| 131 |
<td class="function_type"> |
| 132 |
<span class="returnvalue">void</span> |
| 133 |
</td> |
| 134 |
<td class="function_name"> |
| 135 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-unlock" title="ostree_sysroot_unlock ()">ostree_sysroot_unlock</a> <span class="c_punctuation">()</span> |
| 136 |
</td> |
| 137 |
</tr> |
| 138 |
<tr> |
| 139 |
<td class="function_type"> |
| 140 |
<span class="returnvalue">void</span> |
| 141 |
</td> |
| 142 |
<td class="function_name"> |
| 143 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-unload" title="ostree_sysroot_unload ()">ostree_sysroot_unload</a> <span class="c_punctuation">()</span> |
| 144 |
</td> |
| 145 |
</tr> |
| 146 |
<tr> |
| 147 |
<td class="function_type"> |
| 148 |
<span class="returnvalue">gboolean</span> |
| 149 |
</td> |
| 150 |
<td class="function_name"> |
| 151 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-update-post-copy" title="ostree_sysroot_update_post_copy ()">ostree_sysroot_update_post_copy</a> <span class="c_punctuation">()</span> |
| 152 |
</td> |
| 153 |
</tr> |
| 154 |
<tr> |
| 155 |
<td class="function_type"> |
| 156 |
<span class="returnvalue">void</span> |
| 157 |
</td> |
| 158 |
<td class="function_name"> |
| 159 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-set-mount-namespace-in-use" title="ostree_sysroot_set_mount_namespace_in_use ()">ostree_sysroot_set_mount_namespace_in_use</a> <span class="c_punctuation">()</span> |
| 160 |
</td> |
| 161 |
</tr> |
| 162 |
<tr> |
| 163 |
<td class="function_type"> |
| 164 |
<span class="returnvalue">gboolean</span> |
| 165 |
</td> |
| 166 |
<td class="function_name"> |
| 167 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-is-booted" title="ostree_sysroot_is_booted ()">ostree_sysroot_is_booted</a> <span class="c_punctuation">()</span> |
| 168 |
</td> |
| 169 |
</tr> |
| 170 |
<tr> |
| 171 |
<td class="function_type"> |
| 172 |
<span class="returnvalue">int</span> |
| 173 |
</td> |
| 174 |
<td class="function_name"> |
| 175 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-get-fd" title="ostree_sysroot_get_fd ()">ostree_sysroot_get_fd</a> <span class="c_punctuation">()</span> |
| 176 |
</td> |
| 177 |
</tr> |
| 178 |
<tr> |
| 179 |
<td class="function_type"> |
| 180 |
<span class="returnvalue">gboolean</span> |
| 181 |
</td> |
| 182 |
<td class="function_name"> |
| 183 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-ensure-initialized" title="ostree_sysroot_ensure_initialized ()">ostree_sysroot_ensure_initialized</a> <span class="c_punctuation">()</span> |
| 184 |
</td> |
| 185 |
</tr> |
| 186 |
<tr> |
| 187 |
<td class="function_type"> |
| 188 |
<span class="returnvalue">int</span> |
| 189 |
</td> |
| 190 |
<td class="function_name"> |
| 191 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-get-bootversion" title="ostree_sysroot_get_bootversion ()">ostree_sysroot_get_bootversion</a> <span class="c_punctuation">()</span> |
| 192 |
</td> |
| 193 |
</tr> |
| 194 |
<tr> |
| 195 |
<td class="function_type"> |
| 196 |
<span class="returnvalue">int</span> |
| 197 |
</td> |
| 198 |
<td class="function_name"> |
| 199 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-get-subbootversion" title="ostree_sysroot_get_subbootversion ()">ostree_sysroot_get_subbootversion</a> <span class="c_punctuation">()</span> |
| 200 |
</td> |
| 201 |
</tr> |
| 202 |
<tr> |
| 203 |
<td class="function_type"> |
| 204 |
<span class="returnvalue">GPtrArray</span> * |
| 205 |
</td> |
| 206 |
<td class="function_name"> |
| 207 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-get-deployments" title="ostree_sysroot_get_deployments ()">ostree_sysroot_get_deployments</a> <span class="c_punctuation">()</span> |
| 208 |
</td> |
| 209 |
</tr> |
| 210 |
<tr> |
| 211 |
<td class="function_type"> |
| 212 |
<a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="returnvalue">OstreeDeployment</span></a> * |
| 213 |
</td> |
| 214 |
<td class="function_name"> |
| 215 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-get-booted-deployment" title="ostree_sysroot_get_booted_deployment ()">ostree_sysroot_get_booted_deployment</a> <span class="c_punctuation">()</span> |
| 216 |
</td> |
| 217 |
</tr> |
| 218 |
<tr> |
| 219 |
<td class="function_type"> |
| 220 |
<a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="returnvalue">OstreeDeployment</span></a> * |
| 221 |
</td> |
| 222 |
<td class="function_name"> |
| 223 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-require-booted-deployment" title="ostree_sysroot_require_booted_deployment ()">ostree_sysroot_require_booted_deployment</a> <span class="c_punctuation">()</span> |
| 224 |
</td> |
| 225 |
</tr> |
| 226 |
<tr> |
| 227 |
<td class="function_type"> |
| 228 |
<span class="returnvalue">GFile</span> * |
| 229 |
</td> |
| 230 |
<td class="function_name"> |
| 231 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-get-deployment-directory" title="ostree_sysroot_get_deployment_directory ()">ostree_sysroot_get_deployment_directory</a> <span class="c_punctuation">()</span> |
| 232 |
</td> |
| 233 |
</tr> |
| 234 |
<tr> |
| 235 |
<td class="function_type"> |
| 236 |
<span class="returnvalue">char</span> * |
| 237 |
</td> |
| 238 |
<td class="function_name"> |
| 239 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-get-deployment-dirpath" title="ostree_sysroot_get_deployment_dirpath ()">ostree_sysroot_get_deployment_dirpath</a> <span class="c_punctuation">()</span> |
| 240 |
</td> |
| 241 |
</tr> |
| 242 |
<tr> |
| 243 |
<td class="function_type"> |
| 244 |
<span class="returnvalue">GFile</span> * |
| 245 |
</td> |
| 246 |
<td class="function_name"> |
| 247 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-get-deployment-origin-path" title="ostree_sysroot_get_deployment_origin_path ()">ostree_sysroot_get_deployment_origin_path</a> <span class="c_punctuation">()</span> |
| 248 |
</td> |
| 249 |
</tr> |
| 250 |
<tr> |
| 251 |
<td class="function_type"> |
| 252 |
<span class="returnvalue">gboolean</span> |
| 253 |
</td> |
| 254 |
<td class="function_name"> |
| 255 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-cleanup" title="ostree_sysroot_cleanup ()">ostree_sysroot_cleanup</a> <span class="c_punctuation">()</span> |
| 256 |
</td> |
| 257 |
</tr> |
| 258 |
<tr> |
| 259 |
<td class="function_type"> |
| 260 |
<span class="returnvalue">gboolean</span> |
| 261 |
</td> |
| 262 |
<td class="function_name"> |
| 263 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-prepare-cleanup" title="ostree_sysroot_prepare_cleanup ()">ostree_sysroot_prepare_cleanup</a> <span class="c_punctuation">()</span> |
| 264 |
</td> |
| 265 |
</tr> |
| 266 |
<tr> |
| 267 |
<td class="function_type"> |
| 268 |
<span class="returnvalue">gboolean</span> |
| 269 |
</td> |
| 270 |
<td class="function_name"> |
| 271 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-cleanup-prune-repo" title="ostree_sysroot_cleanup_prune_repo ()">ostree_sysroot_cleanup_prune_repo</a> <span class="c_punctuation">()</span> |
| 272 |
</td> |
| 273 |
</tr> |
| 274 |
<tr> |
| 275 |
<td class="function_type"> |
| 276 |
<a class="link" href="ostree-OstreeRepo.html#OstreeRepo" title="OstreeRepo"><span class="returnvalue">OstreeRepo</span></a> * |
| 277 |
</td> |
| 278 |
<td class="function_name"> |
| 279 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-repo" title="ostree_sysroot_repo ()">ostree_sysroot_repo</a> <span class="c_punctuation">()</span> |
| 280 |
</td> |
| 281 |
</tr> |
| 282 |
<tr> |
| 283 |
<td class="function_type"> |
| 284 |
<span class="returnvalue">gboolean</span> |
| 285 |
</td> |
| 286 |
<td class="function_name"> |
| 287 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-get-repo" title="ostree_sysroot_get_repo ()">ostree_sysroot_get_repo</a> <span class="c_punctuation">()</span> |
| 288 |
</td> |
| 289 |
</tr> |
| 290 |
<tr> |
| 291 |
<td class="function_type"> |
| 292 |
<a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="returnvalue">OstreeDeployment</span></a> * |
| 293 |
</td> |
| 294 |
<td class="function_name"> |
| 295 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-get-staged-deployment" title="ostree_sysroot_get_staged_deployment ()">ostree_sysroot_get_staged_deployment</a> <span class="c_punctuation">()</span> |
| 296 |
</td> |
| 297 |
</tr> |
| 298 |
<tr> |
| 299 |
<td class="function_type"> |
| 300 |
<span class="returnvalue">gboolean</span> |
| 301 |
</td> |
| 302 |
<td class="function_name"> |
| 303 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-init-osname" title="ostree_sysroot_init_osname ()">ostree_sysroot_init_osname</a> <span class="c_punctuation">()</span> |
| 304 |
</td> |
| 305 |
</tr> |
| 306 |
<tr> |
| 307 |
<td class="function_type"> |
| 308 |
<span class="returnvalue">gboolean</span> |
| 309 |
</td> |
| 310 |
<td class="function_name"> |
| 311 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-deployment-kexec-load" title="ostree_sysroot_deployment_kexec_load ()">ostree_sysroot_deployment_kexec_load</a> <span class="c_punctuation">()</span> |
| 312 |
</td> |
| 313 |
</tr> |
| 314 |
<tr> |
| 315 |
<td class="function_type"> |
| 316 |
<span class="returnvalue">gboolean</span> |
| 317 |
</td> |
| 318 |
<td class="function_name"> |
| 319 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-deployment-set-kargs" title="ostree_sysroot_deployment_set_kargs ()">ostree_sysroot_deployment_set_kargs</a> <span class="c_punctuation">()</span> |
| 320 |
</td> |
| 321 |
</tr> |
| 322 |
<tr> |
| 323 |
<td class="function_type"> |
| 324 |
<span class="returnvalue">gboolean</span> |
| 325 |
</td> |
| 326 |
<td class="function_name"> |
| 327 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-deployment-set-kargs-in-place" title="ostree_sysroot_deployment_set_kargs_in_place ()">ostree_sysroot_deployment_set_kargs_in_place</a> <span class="c_punctuation">()</span> |
| 328 |
</td> |
| 329 |
</tr> |
| 330 |
<tr> |
| 331 |
<td class="function_type"> |
| 332 |
<span class="returnvalue">gboolean</span> |
| 333 |
</td> |
| 334 |
<td class="function_name"> |
| 335 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-deployment-set-mutable" title="ostree_sysroot_deployment_set_mutable ()">ostree_sysroot_deployment_set_mutable</a> <span class="c_punctuation">()</span> |
| 336 |
</td> |
| 337 |
</tr> |
| 338 |
<tr> |
| 339 |
<td class="function_type"> |
| 340 |
<span class="returnvalue">gboolean</span> |
| 341 |
</td> |
| 342 |
<td class="function_name"> |
| 343 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-deployment-unlock" title="ostree_sysroot_deployment_unlock ()">ostree_sysroot_deployment_unlock</a> <span class="c_punctuation">()</span> |
| 344 |
</td> |
| 345 |
</tr> |
| 346 |
<tr> |
| 347 |
<td class="function_type"> |
| 348 |
<span class="returnvalue">gboolean</span> |
| 349 |
</td> |
| 350 |
<td class="function_name"> |
| 351 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-deployment-set-pinned" title="ostree_sysroot_deployment_set_pinned ()">ostree_sysroot_deployment_set_pinned</a> <span class="c_punctuation">()</span> |
| 352 |
</td> |
| 353 |
</tr> |
| 354 |
<tr> |
| 355 |
<td class="function_type"> |
| 356 |
<span class="returnvalue">gboolean</span> |
| 357 |
</td> |
| 358 |
<td class="function_name"> |
| 359 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-write-deployments" title="ostree_sysroot_write_deployments ()">ostree_sysroot_write_deployments</a> <span class="c_punctuation">()</span> |
| 360 |
</td> |
| 361 |
</tr> |
| 362 |
<tr> |
| 363 |
<td class="function_type"> |
| 364 |
<span class="returnvalue">gboolean</span> |
| 365 |
</td> |
| 366 |
<td class="function_name"> |
| 367 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-write-deployments-with-options" title="ostree_sysroot_write_deployments_with_options ()">ostree_sysroot_write_deployments_with_options</a> <span class="c_punctuation">()</span> |
| 368 |
</td> |
| 369 |
</tr> |
| 370 |
<tr> |
| 371 |
<td class="function_type"> |
| 372 |
<span class="returnvalue">gboolean</span> |
| 373 |
</td> |
| 374 |
<td class="function_name"> |
| 375 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-write-origin-file" title="ostree_sysroot_write_origin_file ()">ostree_sysroot_write_origin_file</a> <span class="c_punctuation">()</span> |
| 376 |
</td> |
| 377 |
</tr> |
| 378 |
<tr> |
| 379 |
<td class="function_type"> |
| 380 |
<span class="returnvalue">gboolean</span> |
| 381 |
</td> |
| 382 |
<td class="function_name"> |
| 383 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-stage-tree" title="ostree_sysroot_stage_tree ()">ostree_sysroot_stage_tree</a> <span class="c_punctuation">()</span> |
| 384 |
</td> |
| 385 |
</tr> |
| 386 |
<tr> |
| 387 |
<td class="function_type"> |
| 388 |
<span class="returnvalue">gboolean</span> |
| 389 |
</td> |
| 390 |
<td class="function_name"> |
| 391 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-stage-tree-with-options" title="ostree_sysroot_stage_tree_with_options ()">ostree_sysroot_stage_tree_with_options</a> <span class="c_punctuation">()</span> |
| 392 |
</td> |
| 393 |
</tr> |
| 394 |
<tr> |
| 395 |
<td class="function_type"> |
| 396 |
<span class="returnvalue">gboolean</span> |
| 397 |
</td> |
| 398 |
<td class="function_name"> |
| 399 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-stage-overlay-initrd" title="ostree_sysroot_stage_overlay_initrd ()">ostree_sysroot_stage_overlay_initrd</a> <span class="c_punctuation">()</span> |
| 400 |
</td> |
| 401 |
</tr> |
| 402 |
<tr> |
| 403 |
<td class="function_type"> |
| 404 |
<span class="returnvalue">gboolean</span> |
| 405 |
</td> |
| 406 |
<td class="function_name"> |
| 407 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-change-finalization" title="ostree_sysroot_change_finalization ()">ostree_sysroot_change_finalization</a> <span class="c_punctuation">()</span> |
| 408 |
</td> |
| 409 |
</tr> |
| 410 |
<tr> |
| 411 |
<td class="function_type"> |
| 412 |
<span class="returnvalue">gboolean</span> |
| 413 |
</td> |
| 414 |
<td class="function_name"> |
| 415 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-deploy-tree" title="ostree_sysroot_deploy_tree ()">ostree_sysroot_deploy_tree</a> <span class="c_punctuation">()</span> |
| 416 |
</td> |
| 417 |
</tr> |
| 418 |
<tr> |
| 419 |
<td class="function_type"> |
| 420 |
<span class="returnvalue">gboolean</span> |
| 421 |
</td> |
| 422 |
<td class="function_name"> |
| 423 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-deploy-tree-with-options" title="ostree_sysroot_deploy_tree_with_options ()">ostree_sysroot_deploy_tree_with_options</a> <span class="c_punctuation">()</span> |
| 424 |
</td> |
| 425 |
</tr> |
| 426 |
<tr> |
| 427 |
<td class="function_type"> |
| 428 |
<a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="returnvalue">OstreeDeployment</span></a> * |
| 429 |
</td> |
| 430 |
<td class="function_name"> |
| 431 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-get-merge-deployment" title="ostree_sysroot_get_merge_deployment ()">ostree_sysroot_get_merge_deployment</a> <span class="c_punctuation">()</span> |
| 432 |
</td> |
| 433 |
</tr> |
| 434 |
<tr> |
| 435 |
<td class="function_type"> |
| 436 |
<span class="returnvalue">void</span> |
| 437 |
</td> |
| 438 |
<td class="function_name"> |
| 439 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-query-deployments-for" title="ostree_sysroot_query_deployments_for ()">ostree_sysroot_query_deployments_for</a> <span class="c_punctuation">()</span> |
| 440 |
</td> |
| 441 |
</tr> |
| 442 |
<tr> |
| 443 |
<td class="function_type"> |
| 444 |
<span class="returnvalue">GKeyFile</span> * |
| 445 |
</td> |
| 446 |
<td class="function_name"> |
| 447 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-origin-new-from-refspec" title="ostree_sysroot_origin_new_from_refspec ()">ostree_sysroot_origin_new_from_refspec</a> <span class="c_punctuation">()</span> |
| 448 |
</td> |
| 449 |
</tr> |
| 450 |
<tr> |
| 451 |
<td class="function_type"> |
| 452 |
<span class="returnvalue">gboolean</span> |
| 453 |
</td> |
| 454 |
<td class="function_name"> |
| 455 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-simple-write-deployment" title="ostree_sysroot_simple_write_deployment ()">ostree_sysroot_simple_write_deployment</a> <span class="c_punctuation">()</span> |
| 456 |
</td> |
| 457 |
</tr> |
| 458 |
</tbody> |
| 459 |
</table></div> |
| 460 |
</div> |
| 461 |
<div class="refsect1"> |
| 462 |
<a name="ostree-Root-partition-mount-point.other"></a><h2>Types and Values</h2> |
| 463 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 464 |
<colgroup> |
| 465 |
<col width="150px" class="other_proto_type"> |
| 466 |
<col class="other_proto_name"> |
| 467 |
</colgroup> |
| 468 |
<tbody> |
| 469 |
<tr> |
| 470 |
<td class="typedef_keyword">typedef</td> |
| 471 |
<td class="function_name"><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot">OstreeSysroot</a></td> |
| 472 |
</tr> |
| 473 |
<tr> |
| 474 |
<td class="datatype_keyword">enum</td> |
| 475 |
<td class="function_name"><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysrootSimpleWriteDeploymentFlags" title="enum OstreeSysrootSimpleWriteDeploymentFlags">OstreeSysrootSimpleWriteDeploymentFlags</a></td> |
| 476 |
</tr> |
| 477 |
</tbody> |
| 478 |
</table></div> |
| 479 |
</div> |
| 480 |
<div class="refsect1"> |
| 481 |
<a name="ostree-Root-partition-mount-point.description"></a><h2>Description</h2> |
| 482 |
<p>A <a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> object represents a physical root filesystem, |
| 483 |
which in particular should contain a toplevel /ostree directory. |
| 484 |
Inside this directory is an <a class="link" href="ostree-OstreeRepo.html#OstreeRepo" title="OstreeRepo"><span class="type">OstreeRepo</span></a> in /ostree/repo, plus a set |
| 485 |
of deployments in /ostree/deploy.</p> |
| 486 |
<p>This class is not by default safe against concurrent use by threads |
| 487 |
or external processes. You can use <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-lock" title="ostree_sysroot_lock ()"><code class="function">ostree_sysroot_lock()</code></a> to |
| 488 |
perform locking externally.</p> |
| 489 |
</div> |
| 490 |
<div class="refsect1"> |
| 491 |
<a name="ostree-Root-partition-mount-point.functions_details"></a><h2>Functions</h2> |
| 492 |
<div class="refsect2"> |
| 493 |
<a name="ostree-sysroot-new"></a><h3>ostree_sysroot_new ()</h3> |
| 494 |
<pre class="programlisting"><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="returnvalue">OstreeSysroot</span></a> * |
| 495 |
ostree_sysroot_new (<em class="parameter"><code><span class="type">GFile</span> *path</code></em>);</pre> |
| 496 |
<p>Create a new <a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> object for the sysroot at <em class="parameter"><code>path</code></em> |
| 497 |
. If <em class="parameter"><code>path</code></em> |
| 498 |
is <code class="literal">NULL</code>, |
| 499 |
the current visible root file system is used, equivalent to |
| 500 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-new-default" title="ostree_sysroot_new_default ()"><code class="function">ostree_sysroot_new_default()</code></a>.</p> |
| 501 |
<div class="refsect3"> |
| 502 |
<a name="ostree-sysroot-new.parameters"></a><h4>Parameters</h4> |
| 503 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 504 |
<colgroup> |
| 505 |
<col width="150px" class="parameters_name"> |
| 506 |
<col class="parameters_description"> |
| 507 |
<col width="200px" class="parameters_annotations"> |
| 508 |
</colgroup> |
| 509 |
<tbody><tr> |
| 510 |
<td class="parameter_name"><p>path</p></td> |
| 511 |
<td class="parameter_description"><p>Path to a system root directory, or <code class="literal">NULL</code> to use the |
| 512 |
current visible root file system. </p></td> |
| 513 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> |
| 514 |
</tr></tbody> |
| 515 |
</table></div> |
| 516 |
</div> |
| 517 |
<div class="refsect3"> |
| 518 |
<a name="ostree-sysroot-new.returns"></a><h4>Returns</h4> |
| 519 |
<p>An accessor object for an system root located at <em class="parameter"><code>path</code></em> |
| 520 |
. </p> |
| 521 |
<p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p> |
| 522 |
</div> |
| 523 |
</div> |
| 524 |
<hr> |
| 525 |
<div class="refsect2"> |
| 526 |
<a name="ostree-sysroot-new-default"></a><h3>ostree_sysroot_new_default ()</h3> |
| 527 |
<pre class="programlisting"><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="returnvalue">OstreeSysroot</span></a> * |
| 528 |
ostree_sysroot_new_default (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> |
| 529 |
<div class="refsect3"> |
| 530 |
<a name="ostree-sysroot-new-default.returns"></a><h4>Returns</h4> |
| 531 |
<p>An accessor for the current visible root / filesystem. </p> |
| 532 |
<p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p> |
| 533 |
</div> |
| 534 |
</div> |
| 535 |
<hr> |
| 536 |
<div class="refsect2"> |
| 537 |
<a name="ostree-sysroot-initialize"></a><h3>ostree_sysroot_initialize ()</h3> |
| 538 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 539 |
ostree_sysroot_initialize (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 540 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 541 |
<p>Subset of <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-load" title="ostree_sysroot_load ()"><code class="function">ostree_sysroot_load()</code></a>; performs basic initialization. Notably, one |
| 542 |
can invoke <code class="literal"><a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-get-fd" title="ostree_sysroot_get_fd ()"><code class="function">ostree_sysroot_get_fd()</code></a></code> after calling this function.</p> |
| 543 |
<p>It is not necessary to call this function if <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-load" title="ostree_sysroot_load ()"><code class="function">ostree_sysroot_load()</code></a> is |
| 544 |
invoked.</p> |
| 545 |
<div class="refsect3"> |
| 546 |
<a name="ostree-sysroot-initialize.parameters"></a><h4>Parameters</h4> |
| 547 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 548 |
<colgroup> |
| 549 |
<col width="150px" class="parameters_name"> |
| 550 |
<col class="parameters_description"> |
| 551 |
<col width="200px" class="parameters_annotations"> |
| 552 |
</colgroup> |
| 553 |
<tbody><tr> |
| 554 |
<td class="parameter_name"><p>self</p></td> |
| 555 |
<td class="parameter_description"><p>sysroot</p></td> |
| 556 |
<td class="parameter_annotations"> </td> |
| 557 |
</tr></tbody> |
| 558 |
</table></div> |
| 559 |
</div> |
| 560 |
<p class="since">Since: 2020.1</p> |
| 561 |
</div> |
| 562 |
<hr> |
| 563 |
<div class="refsect2"> |
| 564 |
<a name="ostree-sysroot-initialize-with-mount-namespace"></a><h3>ostree_sysroot_initialize_with_mount_namespace ()</h3> |
| 565 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 566 |
ostree_sysroot_initialize_with_mount_namespace |
| 567 |
(<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 568 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 569 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 570 |
<p>Prepare the current process for modifying a booted sysroot, if applicable. |
| 571 |
This function subsumes the functionality of <code class="literal">ostree_sysroot_initialize</code> |
| 572 |
and may be invoked wherever that function is.</p> |
| 573 |
<p>If the sysroot does not appear to be booted, or where the current process is not uid 0, |
| 574 |
this function returns successfully.</p> |
| 575 |
<p>Otherwise, if the process is in the same mount namespace as pid 1, create |
| 576 |
a new namespace.</p> |
| 577 |
<p>If you invoke this function, it must be before <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-load" title="ostree_sysroot_load ()"><code class="function">ostree_sysroot_load()</code></a>; it may |
| 578 |
be invoked before or after <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-initialize" title="ostree_sysroot_initialize ()"><code class="function">ostree_sysroot_initialize()</code></a>.</p> |
| 579 |
<p class="since">Since: 2022.7</p> |
| 580 |
</div> |
| 581 |
<hr> |
| 582 |
<div class="refsect2"> |
| 583 |
<a name="ostree-sysroot-get-path"></a><h3>ostree_sysroot_get_path ()</h3> |
| 584 |
<pre class="programlisting"><span class="returnvalue">GFile</span> * |
| 585 |
ostree_sysroot_get_path (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>);</pre> |
| 586 |
<div class="refsect3"> |
| 587 |
<a name="ostree-sysroot-get-path.parameters"></a><h4>Parameters</h4> |
| 588 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 589 |
<colgroup> |
| 590 |
<col width="150px" class="parameters_name"> |
| 591 |
<col class="parameters_description"> |
| 592 |
<col width="200px" class="parameters_annotations"> |
| 593 |
</colgroup> |
| 594 |
<tbody><tr> |
| 595 |
<td class="parameter_name"><p>self</p></td> |
| 596 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 597 |
<td class="parameter_annotations"> </td> |
| 598 |
</tr></tbody> |
| 599 |
</table></div> |
| 600 |
</div> |
| 601 |
<div class="refsect3"> |
| 602 |
<a name="ostree-sysroot-get-path.returns"></a><h4>Returns</h4> |
| 603 |
<p>Path to rootfs. </p> |
| 604 |
<p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL must not be passed as the value in, out, in-out; or as a return value."><span class="acronym">not nullable</span></acronym>]</span></p> |
| 605 |
</div> |
| 606 |
</div> |
| 607 |
<hr> |
| 608 |
<div class="refsect2"> |
| 609 |
<a name="ostree-sysroot-load"></a><h3>ostree_sysroot_load ()</h3> |
| 610 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 611 |
ostree_sysroot_load (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 612 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 613 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 614 |
<p>Load deployment list, bootversion, and subbootversion from the |
| 615 |
rootfs <em class="parameter"><code>self</code></em> |
| 616 |
.</p> |
| 617 |
<div class="refsect3"> |
| 618 |
<a name="ostree-sysroot-load.parameters"></a><h4>Parameters</h4> |
| 619 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 620 |
<colgroup> |
| 621 |
<col width="150px" class="parameters_name"> |
| 622 |
<col class="parameters_description"> |
| 623 |
<col width="200px" class="parameters_annotations"> |
| 624 |
</colgroup> |
| 625 |
<tbody> |
| 626 |
<tr> |
| 627 |
<td class="parameter_name"><p>self</p></td> |
| 628 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 629 |
<td class="parameter_annotations"> </td> |
| 630 |
</tr> |
| 631 |
<tr> |
| 632 |
<td class="parameter_name"><p>cancellable</p></td> |
| 633 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 634 |
<td class="parameter_annotations"> </td> |
| 635 |
</tr> |
| 636 |
<tr> |
| 637 |
<td class="parameter_name"><p>error</p></td> |
| 638 |
<td class="parameter_description"><p>Error</p></td> |
| 639 |
<td class="parameter_annotations"> </td> |
| 640 |
</tr> |
| 641 |
</tbody> |
| 642 |
</table></div> |
| 643 |
</div> |
| 644 |
</div> |
| 645 |
<hr> |
| 646 |
<div class="refsect2"> |
| 647 |
<a name="ostree-sysroot-load-if-changed"></a><h3>ostree_sysroot_load_if_changed ()</h3> |
| 648 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 649 |
ostree_sysroot_load_if_changed (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 650 |
<em class="parameter"><code><span class="type">gboolean</span> *out_changed</code></em>, |
| 651 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 652 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 653 |
<div class="refsect3"> |
| 654 |
<a name="ostree-sysroot-load-if-changed.parameters"></a><h4>Parameters</h4> |
| 655 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 656 |
<colgroup> |
| 657 |
<col width="150px" class="parameters_name"> |
| 658 |
<col class="parameters_description"> |
| 659 |
<col width="200px" class="parameters_annotations"> |
| 660 |
</colgroup> |
| 661 |
<tbody> |
| 662 |
<tr> |
| 663 |
<td class="parameter_name"><p>self</p></td> |
| 664 |
<td class="parameter_description"><p><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a></p></td> |
| 665 |
<td class="parameter_annotations"> </td> |
| 666 |
</tr> |
| 667 |
<tr> |
| 668 |
<td class="parameter_name"><p>out_changed</p></td> |
| 669 |
<td class="parameter_description"><p>. </p></td> |
| 670 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Out parameter, where caller must allocate storage."><span class="acronym">out caller-allocates</span></acronym>]</span></td> |
| 671 |
</tr> |
| 672 |
<tr> |
| 673 |
<td class="parameter_name"><p>cancellable</p></td> |
| 674 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 675 |
<td class="parameter_annotations"> </td> |
| 676 |
</tr> |
| 677 |
<tr> |
| 678 |
<td class="parameter_name"><p>error</p></td> |
| 679 |
<td class="parameter_description"><p>Error</p></td> |
| 680 |
<td class="parameter_annotations"> </td> |
| 681 |
</tr> |
| 682 |
</tbody> |
| 683 |
</table></div> |
| 684 |
</div> |
| 685 |
<p class="since">Since: 2016.4</p> |
| 686 |
</div> |
| 687 |
<hr> |
| 688 |
<div class="refsect2"> |
| 689 |
<a name="ostree-sysroot-lock"></a><h3>ostree_sysroot_lock ()</h3> |
| 690 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 691 |
ostree_sysroot_lock (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 692 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 693 |
<p>Acquire an exclusive multi-process write lock for <em class="parameter"><code>self</code></em> |
| 694 |
. This call |
| 695 |
blocks until the lock has been acquired. The lock is not |
| 696 |
reentrant.</p> |
| 697 |
<p>Release the lock with <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-unlock" title="ostree_sysroot_unlock ()"><code class="function">ostree_sysroot_unlock()</code></a>. The lock will also |
| 698 |
be released if <em class="parameter"><code>self</code></em> |
| 699 |
is deallocated.</p> |
| 700 |
<div class="refsect3"> |
| 701 |
<a name="ostree-sysroot-lock.parameters"></a><h4>Parameters</h4> |
| 702 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 703 |
<colgroup> |
| 704 |
<col width="150px" class="parameters_name"> |
| 705 |
<col class="parameters_description"> |
| 706 |
<col width="200px" class="parameters_annotations"> |
| 707 |
</colgroup> |
| 708 |
<tbody> |
| 709 |
<tr> |
| 710 |
<td class="parameter_name"><p>self</p></td> |
| 711 |
<td class="parameter_description"><p>Self</p></td> |
| 712 |
<td class="parameter_annotations"> </td> |
| 713 |
</tr> |
| 714 |
<tr> |
| 715 |
<td class="parameter_name"><p>error</p></td> |
| 716 |
<td class="parameter_description"><p>Error</p></td> |
| 717 |
<td class="parameter_annotations"> </td> |
| 718 |
</tr> |
| 719 |
</tbody> |
| 720 |
</table></div> |
| 721 |
</div> |
| 722 |
</div> |
| 723 |
<hr> |
| 724 |
<div class="refsect2"> |
| 725 |
<a name="ostree-sysroot-try-lock"></a><h3>ostree_sysroot_try_lock ()</h3> |
| 726 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 727 |
ostree_sysroot_try_lock (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 728 |
<em class="parameter"><code><span class="type">gboolean</span> *out_acquired</code></em>, |
| 729 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 730 |
<p>Try to acquire an exclusive multi-process write lock for <em class="parameter"><code>self</code></em> |
| 731 |
. If |
| 732 |
another process holds the lock, this function will return |
| 733 |
immediately, setting <em class="parameter"><code>out_acquired</code></em> |
| 734 |
to <code class="literal">FALSE</code>, and returning <code class="literal">TRUE</code> |
| 735 |
(and no error).</p> |
| 736 |
<p>Release the lock with <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-unlock" title="ostree_sysroot_unlock ()"><code class="function">ostree_sysroot_unlock()</code></a>. The lock will also |
| 737 |
be released if <em class="parameter"><code>self</code></em> |
| 738 |
is deallocated.</p> |
| 739 |
<div class="refsect3"> |
| 740 |
<a name="ostree-sysroot-try-lock.parameters"></a><h4>Parameters</h4> |
| 741 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 742 |
<colgroup> |
| 743 |
<col width="150px" class="parameters_name"> |
| 744 |
<col class="parameters_description"> |
| 745 |
<col width="200px" class="parameters_annotations"> |
| 746 |
</colgroup> |
| 747 |
<tbody> |
| 748 |
<tr> |
| 749 |
<td class="parameter_name"><p>self</p></td> |
| 750 |
<td class="parameter_description"><p>Self</p></td> |
| 751 |
<td class="parameter_annotations"> </td> |
| 752 |
</tr> |
| 753 |
<tr> |
| 754 |
<td class="parameter_name"><p>out_acquired</p></td> |
| 755 |
<td class="parameter_description"><p>Whether or not the lock has been acquired. </p></td> |
| 756 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> |
| 757 |
</tr> |
| 758 |
<tr> |
| 759 |
<td class="parameter_name"><p>error</p></td> |
| 760 |
<td class="parameter_description"><p>Error</p></td> |
| 761 |
<td class="parameter_annotations"> </td> |
| 762 |
</tr> |
| 763 |
</tbody> |
| 764 |
</table></div> |
| 765 |
</div> |
| 766 |
</div> |
| 767 |
<hr> |
| 768 |
<div class="refsect2"> |
| 769 |
<a name="ostree-sysroot-lock-async"></a><h3>ostree_sysroot_lock_async ()</h3> |
| 770 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 771 |
ostree_sysroot_lock_async (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 772 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 773 |
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>, |
| 774 |
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre> |
| 775 |
<p>An asynchronous version of <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-lock" title="ostree_sysroot_lock ()"><code class="function">ostree_sysroot_lock()</code></a>.</p> |
| 776 |
<div class="refsect3"> |
| 777 |
<a name="ostree-sysroot-lock-async.parameters"></a><h4>Parameters</h4> |
| 778 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 779 |
<colgroup> |
| 780 |
<col width="150px" class="parameters_name"> |
| 781 |
<col class="parameters_description"> |
| 782 |
<col width="200px" class="parameters_annotations"> |
| 783 |
</colgroup> |
| 784 |
<tbody> |
| 785 |
<tr> |
| 786 |
<td class="parameter_name"><p>self</p></td> |
| 787 |
<td class="parameter_description"><p>Self</p></td> |
| 788 |
<td class="parameter_annotations"> </td> |
| 789 |
</tr> |
| 790 |
<tr> |
| 791 |
<td class="parameter_name"><p>cancellable</p></td> |
| 792 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 793 |
<td class="parameter_annotations"> </td> |
| 794 |
</tr> |
| 795 |
<tr> |
| 796 |
<td class="parameter_name"><p>callback</p></td> |
| 797 |
<td class="parameter_description"><p>Callback</p></td> |
| 798 |
<td class="parameter_annotations"> </td> |
| 799 |
</tr> |
| 800 |
<tr> |
| 801 |
<td class="parameter_name"><p>user_data</p></td> |
| 802 |
<td class="parameter_description"><p>User data</p></td> |
| 803 |
<td class="parameter_annotations"> </td> |
| 804 |
</tr> |
| 805 |
</tbody> |
| 806 |
</table></div> |
| 807 |
</div> |
| 808 |
</div> |
| 809 |
<hr> |
| 810 |
<div class="refsect2"> |
| 811 |
<a name="ostree-sysroot-lock-finish"></a><h3>ostree_sysroot_lock_finish ()</h3> |
| 812 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 813 |
ostree_sysroot_lock_finish (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 814 |
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>, |
| 815 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 816 |
<p>Call when <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-lock-async" title="ostree_sysroot_lock_async ()"><code class="function">ostree_sysroot_lock_async()</code></a> is ready.</p> |
| 817 |
<div class="refsect3"> |
| 818 |
<a name="ostree-sysroot-lock-finish.parameters"></a><h4>Parameters</h4> |
| 819 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 820 |
<colgroup> |
| 821 |
<col width="150px" class="parameters_name"> |
| 822 |
<col class="parameters_description"> |
| 823 |
<col width="200px" class="parameters_annotations"> |
| 824 |
</colgroup> |
| 825 |
<tbody> |
| 826 |
<tr> |
| 827 |
<td class="parameter_name"><p>self</p></td> |
| 828 |
<td class="parameter_description"><p>Self</p></td> |
| 829 |
<td class="parameter_annotations"> </td> |
| 830 |
</tr> |
| 831 |
<tr> |
| 832 |
<td class="parameter_name"><p>result</p></td> |
| 833 |
<td class="parameter_description"><p>Result</p></td> |
| 834 |
<td class="parameter_annotations"> </td> |
| 835 |
</tr> |
| 836 |
<tr> |
| 837 |
<td class="parameter_name"><p>error</p></td> |
| 838 |
<td class="parameter_description"><p>Error</p></td> |
| 839 |
<td class="parameter_annotations"> </td> |
| 840 |
</tr> |
| 841 |
</tbody> |
| 842 |
</table></div> |
| 843 |
</div> |
| 844 |
</div> |
| 845 |
<hr> |
| 846 |
<div class="refsect2"> |
| 847 |
<a name="ostree-sysroot-unlock"></a><h3>ostree_sysroot_unlock ()</h3> |
| 848 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 849 |
ostree_sysroot_unlock (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>);</pre> |
| 850 |
<p>Clear the lock previously acquired with <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-lock" title="ostree_sysroot_lock ()"><code class="function">ostree_sysroot_lock()</code></a>. It |
| 851 |
is safe to call this function if the lock has not been previously |
| 852 |
acquired.</p> |
| 853 |
<div class="refsect3"> |
| 854 |
<a name="ostree-sysroot-unlock.parameters"></a><h4>Parameters</h4> |
| 855 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 856 |
<colgroup> |
| 857 |
<col width="150px" class="parameters_name"> |
| 858 |
<col class="parameters_description"> |
| 859 |
<col width="200px" class="parameters_annotations"> |
| 860 |
</colgroup> |
| 861 |
<tbody><tr> |
| 862 |
<td class="parameter_name"><p>self</p></td> |
| 863 |
<td class="parameter_description"><p>Self</p></td> |
| 864 |
<td class="parameter_annotations"> </td> |
| 865 |
</tr></tbody> |
| 866 |
</table></div> |
| 867 |
</div> |
| 868 |
</div> |
| 869 |
<hr> |
| 870 |
<div class="refsect2"> |
| 871 |
<a name="ostree-sysroot-unload"></a><h3>ostree_sysroot_unload ()</h3> |
| 872 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 873 |
ostree_sysroot_unload (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>);</pre> |
| 874 |
<p>Release any resources such as file descriptors referring to the |
| 875 |
root directory of this sysroot. Normally, those resources are |
| 876 |
cleared by finalization, but in garbage collected languages that |
| 877 |
may not be predictable.</p> |
| 878 |
<p>This undoes the effect of <code class="literal"><a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-load" title="ostree_sysroot_load ()"><code class="function">ostree_sysroot_load()</code></a></code>.</p> |
| 879 |
<div class="refsect3"> |
| 880 |
<a name="ostree-sysroot-unload.parameters"></a><h4>Parameters</h4> |
| 881 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 882 |
<colgroup> |
| 883 |
<col width="150px" class="parameters_name"> |
| 884 |
<col class="parameters_description"> |
| 885 |
<col width="200px" class="parameters_annotations"> |
| 886 |
</colgroup> |
| 887 |
<tbody><tr> |
| 888 |
<td class="parameter_name"><p>self</p></td> |
| 889 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 890 |
<td class="parameter_annotations"> </td> |
| 891 |
</tr></tbody> |
| 892 |
</table></div> |
| 893 |
</div> |
| 894 |
</div> |
| 895 |
<hr> |
| 896 |
<div class="refsect2"> |
| 897 |
<a name="ostree-sysroot-update-post-copy"></a><h3>ostree_sysroot_update_post_copy ()</h3> |
| 898 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 899 |
ostree_sysroot_update_post_copy (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 900 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 901 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 902 |
<p>Update a sysroot as needed after having copied it into place using file-level |
| 903 |
operations. This enables options like fs-verity on the required files that may |
| 904 |
have been lost during the copy.</p> |
| 905 |
<div class="refsect3"> |
| 906 |
<a name="ostree-sysroot-update-post-copy.parameters"></a><h4>Parameters</h4> |
| 907 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 908 |
<colgroup> |
| 909 |
<col width="150px" class="parameters_name"> |
| 910 |
<col class="parameters_description"> |
| 911 |
<col width="200px" class="parameters_annotations"> |
| 912 |
</colgroup> |
| 913 |
<tbody> |
| 914 |
<tr> |
| 915 |
<td class="parameter_name"><p>self</p></td> |
| 916 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 917 |
<td class="parameter_annotations"> </td> |
| 918 |
</tr> |
| 919 |
<tr> |
| 920 |
<td class="parameter_name"><p>error</p></td> |
| 921 |
<td class="parameter_description"><p>Error</p></td> |
| 922 |
<td class="parameter_annotations"> </td> |
| 923 |
</tr> |
| 924 |
</tbody> |
| 925 |
</table></div> |
| 926 |
</div> |
| 927 |
<p class="since">Since: 2023.11</p> |
| 928 |
</div> |
| 929 |
<hr> |
| 930 |
<div class="refsect2"> |
| 931 |
<a name="ostree-sysroot-set-mount-namespace-in-use"></a><h3>ostree_sysroot_set_mount_namespace_in_use ()</h3> |
| 932 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 933 |
ostree_sysroot_set_mount_namespace_in_use |
| 934 |
(<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>);</pre> |
| 935 |
<p>If this function is invoked, then libostree will assume that |
| 936 |
a private Linux mount namespace has been created by the process. |
| 937 |
The primary use case for this is to have e.g. /sysroot mounted |
| 938 |
read-only by default.</p> |
| 939 |
<p>If this function has been called, then when a function which requires |
| 940 |
writable access is invoked, libostree will automatically remount as writable |
| 941 |
any mount points on which it operates. This currently is just <code class="literal">/sysroot</code> and |
| 942 |
<code class="literal">/boot</code>.</p> |
| 943 |
<p>If you invoke this function, it must be before <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-load" title="ostree_sysroot_load ()"><code class="function">ostree_sysroot_load()</code></a>; it may |
| 944 |
be invoked before or after <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-initialize" title="ostree_sysroot_initialize ()"><code class="function">ostree_sysroot_initialize()</code></a>.</p> |
| 945 |
<p class="since">Since: 2020.1</p> |
| 946 |
</div> |
| 947 |
<hr> |
| 948 |
<div class="refsect2"> |
| 949 |
<a name="ostree-sysroot-is-booted"></a><h3>ostree_sysroot_is_booted ()</h3> |
| 950 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 951 |
ostree_sysroot_is_booted (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>);</pre> |
| 952 |
<p>Can only be invoked after <code class="literal"><a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-initialize" title="ostree_sysroot_initialize ()"><code class="function">ostree_sysroot_initialize()</code></a></code>.</p> |
| 953 |
<div class="refsect3"> |
| 954 |
<a name="ostree-sysroot-is-booted.parameters"></a><h4>Parameters</h4> |
| 955 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 956 |
<colgroup> |
| 957 |
<col width="150px" class="parameters_name"> |
| 958 |
<col class="parameters_description"> |
| 959 |
<col width="200px" class="parameters_annotations"> |
| 960 |
</colgroup> |
| 961 |
<tbody><tr> |
| 962 |
<td class="parameter_name"><p>self</p></td> |
| 963 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 964 |
<td class="parameter_annotations"> </td> |
| 965 |
</tr></tbody> |
| 966 |
</table></div> |
| 967 |
</div> |
| 968 |
<div class="refsect3"> |
| 969 |
<a name="ostree-sysroot-is-booted.returns"></a><h4>Returns</h4> |
| 970 |
<p> <code class="literal">TRUE</code> iff the sysroot points to a booted deployment</p> |
| 971 |
</div> |
| 972 |
<p class="since">Since: 2020.1</p> |
| 973 |
</div> |
| 974 |
<hr> |
| 975 |
<div class="refsect2"> |
| 976 |
<a name="ostree-sysroot-get-fd"></a><h3>ostree_sysroot_get_fd ()</h3> |
| 977 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 978 |
ostree_sysroot_get_fd (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>);</pre> |
| 979 |
<p>Access a file descriptor that refers to the root directory of this sysroot. |
| 980 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-initialize" title="ostree_sysroot_initialize ()"><code class="function">ostree_sysroot_initialize()</code></a> (or <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-load" title="ostree_sysroot_load ()"><code class="function">ostree_sysroot_load()</code></a>) must have been invoked |
| 981 |
prior to calling this function.</p> |
| 982 |
<div class="refsect3"> |
| 983 |
<a name="ostree-sysroot-get-fd.parameters"></a><h4>Parameters</h4> |
| 984 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 985 |
<colgroup> |
| 986 |
<col width="150px" class="parameters_name"> |
| 987 |
<col class="parameters_description"> |
| 988 |
<col width="200px" class="parameters_annotations"> |
| 989 |
</colgroup> |
| 990 |
<tbody><tr> |
| 991 |
<td class="parameter_name"><p>self</p></td> |
| 992 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 993 |
<td class="parameter_annotations"> </td> |
| 994 |
</tr></tbody> |
| 995 |
</table></div> |
| 996 |
</div> |
| 997 |
<div class="refsect3"> |
| 998 |
<a name="ostree-sysroot-get-fd.returns"></a><h4>Returns</h4> |
| 999 |
<p> A file descriptor valid for the lifetime of <em class="parameter"><code>self</code></em> |
| 1000 |
</p> |
| 1001 |
</div> |
| 1002 |
</div> |
| 1003 |
<hr> |
| 1004 |
<div class="refsect2"> |
| 1005 |
<a name="ostree-sysroot-ensure-initialized"></a><h3>ostree_sysroot_ensure_initialized ()</h3> |
| 1006 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 1007 |
ostree_sysroot_ensure_initialized (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 1008 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 1009 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 1010 |
<p>Ensure that <em class="parameter"><code>self</code></em> |
| 1011 |
is set up as a valid rootfs, by creating |
| 1012 |
/ostree/repo, among other things.</p> |
| 1013 |
<div class="refsect3"> |
| 1014 |
<a name="ostree-sysroot-ensure-initialized.parameters"></a><h4>Parameters</h4> |
| 1015 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1016 |
<colgroup> |
| 1017 |
<col width="150px" class="parameters_name"> |
| 1018 |
<col class="parameters_description"> |
| 1019 |
<col width="200px" class="parameters_annotations"> |
| 1020 |
</colgroup> |
| 1021 |
<tbody> |
| 1022 |
<tr> |
| 1023 |
<td class="parameter_name"><p>self</p></td> |
| 1024 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1025 |
<td class="parameter_annotations"> </td> |
| 1026 |
</tr> |
| 1027 |
<tr> |
| 1028 |
<td class="parameter_name"><p>cancellable</p></td> |
| 1029 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 1030 |
<td class="parameter_annotations"> </td> |
| 1031 |
</tr> |
| 1032 |
<tr> |
| 1033 |
<td class="parameter_name"><p>error</p></td> |
| 1034 |
<td class="parameter_description"><p>Error</p></td> |
| 1035 |
<td class="parameter_annotations"> </td> |
| 1036 |
</tr> |
| 1037 |
</tbody> |
| 1038 |
</table></div> |
| 1039 |
</div> |
| 1040 |
</div> |
| 1041 |
<hr> |
| 1042 |
<div class="refsect2"> |
| 1043 |
<a name="ostree-sysroot-get-bootversion"></a><h3>ostree_sysroot_get_bootversion ()</h3> |
| 1044 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 1045 |
ostree_sysroot_get_bootversion (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>);</pre> |
| 1046 |
</div> |
| 1047 |
<hr> |
| 1048 |
<div class="refsect2"> |
| 1049 |
<a name="ostree-sysroot-get-subbootversion"></a><h3>ostree_sysroot_get_subbootversion ()</h3> |
| 1050 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 1051 |
ostree_sysroot_get_subbootversion (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>);</pre> |
| 1052 |
</div> |
| 1053 |
<hr> |
| 1054 |
<div class="refsect2"> |
| 1055 |
<a name="ostree-sysroot-get-deployments"></a><h3>ostree_sysroot_get_deployments ()</h3> |
| 1056 |
<pre class="programlisting"><span class="returnvalue">GPtrArray</span> * |
| 1057 |
ostree_sysroot_get_deployments (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>);</pre> |
| 1058 |
<div class="refsect3"> |
| 1059 |
<a name="ostree-sysroot-get-deployments.parameters"></a><h4>Parameters</h4> |
| 1060 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1061 |
<colgroup> |
| 1062 |
<col width="150px" class="parameters_name"> |
| 1063 |
<col class="parameters_description"> |
| 1064 |
<col width="200px" class="parameters_annotations"> |
| 1065 |
</colgroup> |
| 1066 |
<tbody><tr> |
| 1067 |
<td class="parameter_name"><p>self</p></td> |
| 1068 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1069 |
<td class="parameter_annotations"> </td> |
| 1070 |
</tr></tbody> |
| 1071 |
</table></div> |
| 1072 |
</div> |
| 1073 |
<div class="refsect3"> |
| 1074 |
<a name="ostree-sysroot-get-deployments.returns"></a><h4>Returns</h4> |
| 1075 |
<p>Ordered list of deployments. </p> |
| 1076 |
<p><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> OstreeDeployment][<acronym title="The caller owns the data container, but not the data inside it."><span class="acronym">transfer container</span></acronym>]</span></p> |
| 1077 |
</div> |
| 1078 |
</div> |
| 1079 |
<hr> |
| 1080 |
<div class="refsect2"> |
| 1081 |
<a name="ostree-sysroot-get-booted-deployment"></a><h3>ostree_sysroot_get_booted_deployment ()</h3> |
| 1082 |
<pre class="programlisting"><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="returnvalue">OstreeDeployment</span></a> * |
| 1083 |
ostree_sysroot_get_booted_deployment (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>);</pre> |
| 1084 |
<p>This function may only be called if the sysroot is loaded.</p> |
| 1085 |
<div class="refsect3"> |
| 1086 |
<a name="ostree-sysroot-get-booted-deployment.parameters"></a><h4>Parameters</h4> |
| 1087 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1088 |
<colgroup> |
| 1089 |
<col width="150px" class="parameters_name"> |
| 1090 |
<col class="parameters_description"> |
| 1091 |
<col width="200px" class="parameters_annotations"> |
| 1092 |
</colgroup> |
| 1093 |
<tbody><tr> |
| 1094 |
<td class="parameter_name"><p>self</p></td> |
| 1095 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1096 |
<td class="parameter_annotations"> </td> |
| 1097 |
</tr></tbody> |
| 1098 |
</table></div> |
| 1099 |
</div> |
| 1100 |
<div class="refsect3"> |
| 1101 |
<a name="ostree-sysroot-get-booted-deployment.returns"></a><h4>Returns</h4> |
| 1102 |
<p>The currently booted deployment, or <code class="literal">NULL</code> if none. </p> |
| 1103 |
<p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p> |
| 1104 |
</div> |
| 1105 |
</div> |
| 1106 |
<hr> |
| 1107 |
<div class="refsect2"> |
| 1108 |
<a name="ostree-sysroot-require-booted-deployment"></a><h3>ostree_sysroot_require_booted_deployment ()</h3> |
| 1109 |
<pre class="programlisting"><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="returnvalue">OstreeDeployment</span></a> * |
| 1110 |
ostree_sysroot_require_booted_deployment |
| 1111 |
(<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 1112 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 1113 |
<p>Find the booted deployment, or return an error if not booted via OSTree.</p> |
| 1114 |
<div class="refsect3"> |
| 1115 |
<a name="ostree-sysroot-require-booted-deployment.parameters"></a><h4>Parameters</h4> |
| 1116 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1117 |
<colgroup> |
| 1118 |
<col width="150px" class="parameters_name"> |
| 1119 |
<col class="parameters_description"> |
| 1120 |
<col width="200px" class="parameters_annotations"> |
| 1121 |
</colgroup> |
| 1122 |
<tbody><tr> |
| 1123 |
<td class="parameter_name"><p>self</p></td> |
| 1124 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1125 |
<td class="parameter_annotations"> </td> |
| 1126 |
</tr></tbody> |
| 1127 |
</table></div> |
| 1128 |
</div> |
| 1129 |
<div class="refsect3"> |
| 1130 |
<a name="ostree-sysroot-require-booted-deployment.returns"></a><h4>Returns</h4> |
| 1131 |
<p>The currently booted deployment, or an error. </p> |
| 1132 |
<p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL must not be passed as the value in, out, in-out; or as a return value."><span class="acronym">not nullable</span></acronym>]</span></p> |
| 1133 |
</div> |
| 1134 |
<p class="since">Since: 2021.1</p> |
| 1135 |
</div> |
| 1136 |
<hr> |
| 1137 |
<div class="refsect2"> |
| 1138 |
<a name="ostree-sysroot-get-deployment-directory"></a><h3>ostree_sysroot_get_deployment_directory ()</h3> |
| 1139 |
<pre class="programlisting"><span class="returnvalue">GFile</span> * |
| 1140 |
ostree_sysroot_get_deployment_directory |
| 1141 |
(<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 1142 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *deployment</code></em>);</pre> |
| 1143 |
<div class="refsect3"> |
| 1144 |
<a name="ostree-sysroot-get-deployment-directory.parameters"></a><h4>Parameters</h4> |
| 1145 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1146 |
<colgroup> |
| 1147 |
<col width="150px" class="parameters_name"> |
| 1148 |
<col class="parameters_description"> |
| 1149 |
<col width="200px" class="parameters_annotations"> |
| 1150 |
</colgroup> |
| 1151 |
<tbody> |
| 1152 |
<tr> |
| 1153 |
<td class="parameter_name"><p>self</p></td> |
| 1154 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1155 |
<td class="parameter_annotations"> </td> |
| 1156 |
</tr> |
| 1157 |
<tr> |
| 1158 |
<td class="parameter_name"><p>deployment</p></td> |
| 1159 |
<td class="parameter_description"><p>A deployment</p></td> |
| 1160 |
<td class="parameter_annotations"> </td> |
| 1161 |
</tr> |
| 1162 |
</tbody> |
| 1163 |
</table></div> |
| 1164 |
</div> |
| 1165 |
<div class="refsect3"> |
| 1166 |
<a name="ostree-sysroot-get-deployment-directory.returns"></a><h4>Returns</h4> |
| 1167 |
<p>Path to deployment root directory. </p> |
| 1168 |
<p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p> |
| 1169 |
</div> |
| 1170 |
</div> |
| 1171 |
<hr> |
| 1172 |
<div class="refsect2"> |
| 1173 |
<a name="ostree-sysroot-get-deployment-dirpath"></a><h3>ostree_sysroot_get_deployment_dirpath ()</h3> |
| 1174 |
<pre class="programlisting"><span class="returnvalue">char</span> * |
| 1175 |
ostree_sysroot_get_deployment_dirpath (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 1176 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *deployment</code></em>);</pre> |
| 1177 |
<p>Note this function only returns a *relative* path - if you want |
| 1178 |
to access, it, you must either use fd-relative api such as <code class="function">openat()</code>, |
| 1179 |
or concatenate it with the full <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-get-path" title="ostree_sysroot_get_path ()"><code class="function">ostree_sysroot_get_path()</code></a>.</p> |
| 1180 |
<div class="refsect3"> |
| 1181 |
<a name="ostree-sysroot-get-deployment-dirpath.parameters"></a><h4>Parameters</h4> |
| 1182 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1183 |
<colgroup> |
| 1184 |
<col width="150px" class="parameters_name"> |
| 1185 |
<col class="parameters_description"> |
| 1186 |
<col width="200px" class="parameters_annotations"> |
| 1187 |
</colgroup> |
| 1188 |
<tbody> |
| 1189 |
<tr> |
| 1190 |
<td class="parameter_name"><p>self</p></td> |
| 1191 |
<td class="parameter_description"><p>Repo</p></td> |
| 1192 |
<td class="parameter_annotations"> </td> |
| 1193 |
</tr> |
| 1194 |
<tr> |
| 1195 |
<td class="parameter_name"><p>deployment</p></td> |
| 1196 |
<td class="parameter_description"><p>A deployment</p></td> |
| 1197 |
<td class="parameter_annotations"> </td> |
| 1198 |
</tr> |
| 1199 |
</tbody> |
| 1200 |
</table></div> |
| 1201 |
</div> |
| 1202 |
<div class="refsect3"> |
| 1203 |
<a name="ostree-sysroot-get-deployment-dirpath.returns"></a><h4>Returns</h4> |
| 1204 |
<p>Path to deployment root directory, relative to sysroot. </p> |
| 1205 |
<p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL must not be passed as the value in, out, in-out; or as a return value."><span class="acronym">not nullable</span></acronym>]</span></p> |
| 1206 |
</div> |
| 1207 |
</div> |
| 1208 |
<hr> |
| 1209 |
<div class="refsect2"> |
| 1210 |
<a name="ostree-sysroot-get-deployment-origin-path"></a><h3>ostree_sysroot_get_deployment_origin_path ()</h3> |
| 1211 |
<pre class="programlisting"><span class="returnvalue">GFile</span> * |
| 1212 |
ostree_sysroot_get_deployment_origin_path |
| 1213 |
(<em class="parameter"><code><span class="type">GFile</span> *deployment_path</code></em>);</pre> |
| 1214 |
<div class="refsect3"> |
| 1215 |
<a name="ostree-sysroot-get-deployment-origin-path.parameters"></a><h4>Parameters</h4> |
| 1216 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1217 |
<colgroup> |
| 1218 |
<col width="150px" class="parameters_name"> |
| 1219 |
<col class="parameters_description"> |
| 1220 |
<col width="200px" class="parameters_annotations"> |
| 1221 |
</colgroup> |
| 1222 |
<tbody><tr> |
| 1223 |
<td class="parameter_name"><p>deployment_path</p></td> |
| 1224 |
<td class="parameter_description"><p>A deployment path</p></td> |
| 1225 |
<td class="parameter_annotations"> </td> |
| 1226 |
</tr></tbody> |
| 1227 |
</table></div> |
| 1228 |
</div> |
| 1229 |
<div class="refsect3"> |
| 1230 |
<a name="ostree-sysroot-get-deployment-origin-path.returns"></a><h4>Returns</h4> |
| 1231 |
<p>Path to deployment origin file. </p> |
| 1232 |
<p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p> |
| 1233 |
</div> |
| 1234 |
</div> |
| 1235 |
<hr> |
| 1236 |
<div class="refsect2"> |
| 1237 |
<a name="ostree-sysroot-cleanup"></a><h3>ostree_sysroot_cleanup ()</h3> |
| 1238 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 1239 |
ostree_sysroot_cleanup (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 1240 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 1241 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 1242 |
<p>Delete any state that resulted from a partially completed |
| 1243 |
transaction, such as incomplete deployments.</p> |
| 1244 |
<div class="refsect3"> |
| 1245 |
<a name="ostree-sysroot-cleanup.parameters"></a><h4>Parameters</h4> |
| 1246 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1247 |
<colgroup> |
| 1248 |
<col width="150px" class="parameters_name"> |
| 1249 |
<col class="parameters_description"> |
| 1250 |
<col width="200px" class="parameters_annotations"> |
| 1251 |
</colgroup> |
| 1252 |
<tbody> |
| 1253 |
<tr> |
| 1254 |
<td class="parameter_name"><p>self</p></td> |
| 1255 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1256 |
<td class="parameter_annotations"> </td> |
| 1257 |
</tr> |
| 1258 |
<tr> |
| 1259 |
<td class="parameter_name"><p>cancellable</p></td> |
| 1260 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 1261 |
<td class="parameter_annotations"> </td> |
| 1262 |
</tr> |
| 1263 |
<tr> |
| 1264 |
<td class="parameter_name"><p>error</p></td> |
| 1265 |
<td class="parameter_description"><p>Error</p></td> |
| 1266 |
<td class="parameter_annotations"> </td> |
| 1267 |
</tr> |
| 1268 |
</tbody> |
| 1269 |
</table></div> |
| 1270 |
</div> |
| 1271 |
</div> |
| 1272 |
<hr> |
| 1273 |
<div class="refsect2"> |
| 1274 |
<a name="ostree-sysroot-prepare-cleanup"></a><h3>ostree_sysroot_prepare_cleanup ()</h3> |
| 1275 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 1276 |
ostree_sysroot_prepare_cleanup (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 1277 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 1278 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 1279 |
<p>Like <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-cleanup" title="ostree_sysroot_cleanup ()"><code class="function">ostree_sysroot_cleanup()</code></a> in that it cleans up incomplete deployments |
| 1280 |
and old boot versions, but does NOT prune the repository.</p> |
| 1281 |
<div class="refsect3"> |
| 1282 |
<a name="ostree-sysroot-prepare-cleanup.parameters"></a><h4>Parameters</h4> |
| 1283 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1284 |
<colgroup> |
| 1285 |
<col width="150px" class="parameters_name"> |
| 1286 |
<col class="parameters_description"> |
| 1287 |
<col width="200px" class="parameters_annotations"> |
| 1288 |
</colgroup> |
| 1289 |
<tbody> |
| 1290 |
<tr> |
| 1291 |
<td class="parameter_name"><p>self</p></td> |
| 1292 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1293 |
<td class="parameter_annotations"> </td> |
| 1294 |
</tr> |
| 1295 |
<tr> |
| 1296 |
<td class="parameter_name"><p>cancellable</p></td> |
| 1297 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 1298 |
<td class="parameter_annotations"> </td> |
| 1299 |
</tr> |
| 1300 |
<tr> |
| 1301 |
<td class="parameter_name"><p>error</p></td> |
| 1302 |
<td class="parameter_description"><p>Error</p></td> |
| 1303 |
<td class="parameter_annotations"> </td> |
| 1304 |
</tr> |
| 1305 |
</tbody> |
| 1306 |
</table></div> |
| 1307 |
</div> |
| 1308 |
</div> |
| 1309 |
<hr> |
| 1310 |
<div class="refsect2"> |
| 1311 |
<a name="ostree-sysroot-cleanup-prune-repo"></a><h3>ostree_sysroot_cleanup_prune_repo ()</h3> |
| 1312 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 1313 |
ostree_sysroot_cleanup_prune_repo (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *sysroot</code></em>, |
| 1314 |
<em class="parameter"><code><span class="type">OstreeRepoPruneOptions</span> *options</code></em>, |
| 1315 |
<em class="parameter"><code><span class="type">gint</span> *out_objects_total</code></em>, |
| 1316 |
<em class="parameter"><code><span class="type">gint</span> *out_objects_pruned</code></em>, |
| 1317 |
<em class="parameter"><code><span class="type">guint64</span> *out_pruned_object_size_total</code></em>, |
| 1318 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 1319 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 1320 |
<p>Prune the system repository. This is a thin wrapper |
| 1321 |
around <a class="link" href="ostree-OstreeRepo.html#ostree-repo-prune-from-reachable" title="ostree_repo_prune_from_reachable ()"><code class="function">ostree_repo_prune_from_reachable()</code></a>; the primary |
| 1322 |
addition is that this function automatically gathers |
| 1323 |
all deployed commits into the reachable set.</p> |
| 1324 |
<p>You generally want to at least set the <code class="literal">OSTREE_REPO_PRUNE_FLAGS_REFS_ONLY</code> |
| 1325 |
flag in <em class="parameter"><code>options</code></em> |
| 1326 |
. A commit traversal depth of <code class="literal">0</code> is assumed.</p> |
| 1327 |
<p>Locking: exclusive</p> |
| 1328 |
<div class="refsect3"> |
| 1329 |
<a name="ostree-sysroot-cleanup-prune-repo.parameters"></a><h4>Parameters</h4> |
| 1330 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1331 |
<colgroup> |
| 1332 |
<col width="150px" class="parameters_name"> |
| 1333 |
<col class="parameters_description"> |
| 1334 |
<col width="200px" class="parameters_annotations"> |
| 1335 |
</colgroup> |
| 1336 |
<tbody> |
| 1337 |
<tr> |
| 1338 |
<td class="parameter_name"><p>sysroot</p></td> |
| 1339 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1340 |
<td class="parameter_annotations"> </td> |
| 1341 |
</tr> |
| 1342 |
<tr> |
| 1343 |
<td class="parameter_name"><p>options</p></td> |
| 1344 |
<td class="parameter_description"><p>Flags controlling pruning</p></td> |
| 1345 |
<td class="parameter_annotations"> </td> |
| 1346 |
</tr> |
| 1347 |
<tr> |
| 1348 |
<td class="parameter_name"><p>out_objects_total</p></td> |
| 1349 |
<td class="parameter_description"><p>Number of objects found. </p></td> |
| 1350 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> |
| 1351 |
</tr> |
| 1352 |
<tr> |
| 1353 |
<td class="parameter_name"><p>out_objects_pruned</p></td> |
| 1354 |
<td class="parameter_description"><p>Number of objects deleted. </p></td> |
| 1355 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> |
| 1356 |
</tr> |
| 1357 |
<tr> |
| 1358 |
<td class="parameter_name"><p>out_pruned_object_size_total</p></td> |
| 1359 |
<td class="parameter_description"><p>Storage size in bytes of objects deleted. </p></td> |
| 1360 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> |
| 1361 |
</tr> |
| 1362 |
<tr> |
| 1363 |
<td class="parameter_name"><p>cancellable</p></td> |
| 1364 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 1365 |
<td class="parameter_annotations"> </td> |
| 1366 |
</tr> |
| 1367 |
<tr> |
| 1368 |
<td class="parameter_name"><p>error</p></td> |
| 1369 |
<td class="parameter_description"><p>Error</p></td> |
| 1370 |
<td class="parameter_annotations"> </td> |
| 1371 |
</tr> |
| 1372 |
</tbody> |
| 1373 |
</table></div> |
| 1374 |
</div> |
| 1375 |
<p class="since">Since: 2018.6</p> |
| 1376 |
</div> |
| 1377 |
<hr> |
| 1378 |
<div class="refsect2"> |
| 1379 |
<a name="ostree-sysroot-repo"></a><h3>ostree_sysroot_repo ()</h3> |
| 1380 |
<pre class="programlisting"><a class="link" href="ostree-OstreeRepo.html#OstreeRepo" title="OstreeRepo"><span class="returnvalue">OstreeRepo</span></a> * |
| 1381 |
ostree_sysroot_repo (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>);</pre> |
| 1382 |
<p>This function is a variant of <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-get-repo" title="ostree_sysroot_get_repo ()"><code class="function">ostree_sysroot_get_repo()</code></a> that cannot fail, and |
| 1383 |
returns a cached repository. Can only be called after <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-initialize" title="ostree_sysroot_initialize ()"><code class="function">ostree_sysroot_initialize()</code></a> |
| 1384 |
or <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-load" title="ostree_sysroot_load ()"><code class="function">ostree_sysroot_load()</code></a> has been invoked successfully.</p> |
| 1385 |
<div class="refsect3"> |
| 1386 |
<a name="ostree-sysroot-repo.parameters"></a><h4>Parameters</h4> |
| 1387 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1388 |
<colgroup> |
| 1389 |
<col width="150px" class="parameters_name"> |
| 1390 |
<col class="parameters_description"> |
| 1391 |
<col width="200px" class="parameters_annotations"> |
| 1392 |
</colgroup> |
| 1393 |
<tbody><tr> |
| 1394 |
<td class="parameter_name"><p>self</p></td> |
| 1395 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1396 |
<td class="parameter_annotations"> </td> |
| 1397 |
</tr></tbody> |
| 1398 |
</table></div> |
| 1399 |
</div> |
| 1400 |
<div class="refsect3"> |
| 1401 |
<a name="ostree-sysroot-repo.returns"></a><h4>Returns</h4> |
| 1402 |
<p>The OSTree repository in sysroot <em class="parameter"><code>self</code></em> |
| 1403 |
. </p> |
| 1404 |
<p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL must not be passed as the value in, out, in-out; or as a return value."><span class="acronym">not nullable</span></acronym>]</span></p> |
| 1405 |
</div> |
| 1406 |
<p class="since">Since: 2017.7</p> |
| 1407 |
</div> |
| 1408 |
<hr> |
| 1409 |
<div class="refsect2"> |
| 1410 |
<a name="ostree-sysroot-get-repo"></a><h3>ostree_sysroot_get_repo ()</h3> |
| 1411 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 1412 |
ostree_sysroot_get_repo (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 1413 |
<em class="parameter"><code><a class="link" href="ostree-OstreeRepo.html#OstreeRepo" title="OstreeRepo"><span class="type">OstreeRepo</span></a> **out_repo</code></em>, |
| 1414 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 1415 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 1416 |
<p>Retrieve the OSTree repository in sysroot <em class="parameter"><code>self</code></em> |
| 1417 |
. The repo is guaranteed to be open |
| 1418 |
(see <a class="link" href="ostree-OstreeRepo.html#ostree-repo-open" title="ostree_repo_open ()"><code class="function">ostree_repo_open()</code></a>).</p> |
| 1419 |
<div class="refsect3"> |
| 1420 |
<a name="ostree-sysroot-get-repo.parameters"></a><h4>Parameters</h4> |
| 1421 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1422 |
<colgroup> |
| 1423 |
<col width="150px" class="parameters_name"> |
| 1424 |
<col class="parameters_description"> |
| 1425 |
<col width="200px" class="parameters_annotations"> |
| 1426 |
</colgroup> |
| 1427 |
<tbody> |
| 1428 |
<tr> |
| 1429 |
<td class="parameter_name"><p>self</p></td> |
| 1430 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1431 |
<td class="parameter_annotations"> </td> |
| 1432 |
</tr> |
| 1433 |
<tr> |
| 1434 |
<td class="parameter_name"><p>out_repo</p></td> |
| 1435 |
<td class="parameter_description"><p>Repository in sysroot <em class="parameter"><code>self</code></em> |
| 1436 |
. </p></td> |
| 1437 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed instead of a pointer to a location."><span class="acronym">optional</span></acronym>]</span></td> |
| 1438 |
</tr> |
| 1439 |
<tr> |
| 1440 |
<td class="parameter_name"><p>cancellable</p></td> |
| 1441 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 1442 |
<td class="parameter_annotations"> </td> |
| 1443 |
</tr> |
| 1444 |
<tr> |
| 1445 |
<td class="parameter_name"><p>error</p></td> |
| 1446 |
<td class="parameter_description"><p>Error</p></td> |
| 1447 |
<td class="parameter_annotations"> </td> |
| 1448 |
</tr> |
| 1449 |
</tbody> |
| 1450 |
</table></div> |
| 1451 |
</div> |
| 1452 |
<div class="refsect3"> |
| 1453 |
<a name="ostree-sysroot-get-repo.returns"></a><h4>Returns</h4> |
| 1454 |
<p> <code class="literal">TRUE</code> on success, <code class="literal">FALSE</code> otherwise</p> |
| 1455 |
</div> |
| 1456 |
</div> |
| 1457 |
<hr> |
| 1458 |
<div class="refsect2"> |
| 1459 |
<a name="ostree-sysroot-get-staged-deployment"></a><h3>ostree_sysroot_get_staged_deployment ()</h3> |
| 1460 |
<pre class="programlisting"><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="returnvalue">OstreeDeployment</span></a> * |
| 1461 |
ostree_sysroot_get_staged_deployment (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>);</pre> |
| 1462 |
<div class="refsect3"> |
| 1463 |
<a name="ostree-sysroot-get-staged-deployment.parameters"></a><h4>Parameters</h4> |
| 1464 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1465 |
<colgroup> |
| 1466 |
<col width="150px" class="parameters_name"> |
| 1467 |
<col class="parameters_description"> |
| 1468 |
<col width="200px" class="parameters_annotations"> |
| 1469 |
</colgroup> |
| 1470 |
<tbody><tr> |
| 1471 |
<td class="parameter_name"><p>self</p></td> |
| 1472 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1473 |
<td class="parameter_annotations"> </td> |
| 1474 |
</tr></tbody> |
| 1475 |
</table></div> |
| 1476 |
</div> |
| 1477 |
<div class="refsect3"> |
| 1478 |
<a name="ostree-sysroot-get-staged-deployment.returns"></a><h4>Returns</h4> |
| 1479 |
<p>The currently staged deployment, or <code class="literal">NULL</code> if none. </p> |
| 1480 |
<p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p> |
| 1481 |
</div> |
| 1482 |
<p class="since">Since: 2018.5</p> |
| 1483 |
</div> |
| 1484 |
<hr> |
| 1485 |
<div class="refsect2"> |
| 1486 |
<a name="ostree-sysroot-init-osname"></a><h3>ostree_sysroot_init_osname ()</h3> |
| 1487 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 1488 |
ostree_sysroot_init_osname (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 1489 |
<em class="parameter"><code>const <span class="type">char</span> *osname</code></em>, |
| 1490 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 1491 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 1492 |
<p>Initialize the directory structure for an "osname", which is a |
| 1493 |
group of operating system deployments, with a shared <code class="literal">/var</code>. One |
| 1494 |
is required for generating a deployment.</p> |
| 1495 |
<div class="refsect3"> |
| 1496 |
<a name="ostree-sysroot-init-osname.parameters"></a><h4>Parameters</h4> |
| 1497 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1498 |
<colgroup> |
| 1499 |
<col width="150px" class="parameters_name"> |
| 1500 |
<col class="parameters_description"> |
| 1501 |
<col width="200px" class="parameters_annotations"> |
| 1502 |
</colgroup> |
| 1503 |
<tbody> |
| 1504 |
<tr> |
| 1505 |
<td class="parameter_name"><p>self</p></td> |
| 1506 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1507 |
<td class="parameter_annotations"> </td> |
| 1508 |
</tr> |
| 1509 |
<tr> |
| 1510 |
<td class="parameter_name"><p>osname</p></td> |
| 1511 |
<td class="parameter_description"><p>Name group of operating system checkouts</p></td> |
| 1512 |
<td class="parameter_annotations"> </td> |
| 1513 |
</tr> |
| 1514 |
<tr> |
| 1515 |
<td class="parameter_name"><p>cancellable</p></td> |
| 1516 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 1517 |
<td class="parameter_annotations"> </td> |
| 1518 |
</tr> |
| 1519 |
<tr> |
| 1520 |
<td class="parameter_name"><p>error</p></td> |
| 1521 |
<td class="parameter_description"><p>Error</p></td> |
| 1522 |
<td class="parameter_annotations"> </td> |
| 1523 |
</tr> |
| 1524 |
</tbody> |
| 1525 |
</table></div> |
| 1526 |
</div> |
| 1527 |
<p class="since">Since: 2016.4</p> |
| 1528 |
</div> |
| 1529 |
<hr> |
| 1530 |
<div class="refsect2"> |
| 1531 |
<a name="ostree-sysroot-deployment-kexec-load"></a><h3>ostree_sysroot_deployment_kexec_load ()</h3> |
| 1532 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 1533 |
ostree_sysroot_deployment_kexec_load (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 1534 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *deployment</code></em>, |
| 1535 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 1536 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 1537 |
<p>Prepare the specified deployment for a kexec.</p> |
| 1538 |
<div class="refsect3"> |
| 1539 |
<a name="ostree-sysroot-deployment-kexec-load.parameters"></a><h4>Parameters</h4> |
| 1540 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1541 |
<colgroup> |
| 1542 |
<col width="150px" class="parameters_name"> |
| 1543 |
<col class="parameters_description"> |
| 1544 |
<col width="200px" class="parameters_annotations"> |
| 1545 |
</colgroup> |
| 1546 |
<tbody> |
| 1547 |
<tr> |
| 1548 |
<td class="parameter_name"><p>self</p></td> |
| 1549 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1550 |
<td class="parameter_annotations"> </td> |
| 1551 |
</tr> |
| 1552 |
<tr> |
| 1553 |
<td class="parameter_name"><p>deployment</p></td> |
| 1554 |
<td class="parameter_description"><p>Deployment to prepare a kexec for</p></td> |
| 1555 |
<td class="parameter_annotations"> </td> |
| 1556 |
</tr> |
| 1557 |
<tr> |
| 1558 |
<td class="parameter_name"><p>cancellable</p></td> |
| 1559 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 1560 |
<td class="parameter_annotations"> </td> |
| 1561 |
</tr> |
| 1562 |
<tr> |
| 1563 |
<td class="parameter_name"><p>error</p></td> |
| 1564 |
<td class="parameter_description"><p>Error</p></td> |
| 1565 |
<td class="parameter_annotations"> </td> |
| 1566 |
</tr> |
| 1567 |
</tbody> |
| 1568 |
</table></div> |
| 1569 |
</div> |
| 1570 |
<p class="since">Since: 2025.1</p> |
| 1571 |
</div> |
| 1572 |
<hr> |
| 1573 |
<div class="refsect2"> |
| 1574 |
<a name="ostree-sysroot-deployment-set-kargs"></a><h3>ostree_sysroot_deployment_set_kargs ()</h3> |
| 1575 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 1576 |
ostree_sysroot_deployment_set_kargs (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 1577 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *deployment</code></em>, |
| 1578 |
<em class="parameter"><code><span class="type">char</span> **new_kargs</code></em>, |
| 1579 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 1580 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 1581 |
<p>Entirely replace the kernel arguments of <em class="parameter"><code>deployment</code></em> |
| 1582 |
with the |
| 1583 |
values in <em class="parameter"><code>new_kargs</code></em> |
| 1584 |
.</p> |
| 1585 |
<div class="refsect3"> |
| 1586 |
<a name="ostree-sysroot-deployment-set-kargs.parameters"></a><h4>Parameters</h4> |
| 1587 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1588 |
<colgroup> |
| 1589 |
<col width="150px" class="parameters_name"> |
| 1590 |
<col class="parameters_description"> |
| 1591 |
<col width="200px" class="parameters_annotations"> |
| 1592 |
</colgroup> |
| 1593 |
<tbody> |
| 1594 |
<tr> |
| 1595 |
<td class="parameter_name"><p>self</p></td> |
| 1596 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1597 |
<td class="parameter_annotations"> </td> |
| 1598 |
</tr> |
| 1599 |
<tr> |
| 1600 |
<td class="parameter_name"><p>deployment</p></td> |
| 1601 |
<td class="parameter_description"><p>A deployment</p></td> |
| 1602 |
<td class="parameter_annotations"> </td> |
| 1603 |
</tr> |
| 1604 |
<tr> |
| 1605 |
<td class="parameter_name"><p>new_kargs</p></td> |
| 1606 |
<td class="parameter_description"><p>Replace deployment's kernel arguments. </p></td> |
| 1607 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span></td> |
| 1608 |
</tr> |
| 1609 |
<tr> |
| 1610 |
<td class="parameter_name"><p>cancellable</p></td> |
| 1611 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 1612 |
<td class="parameter_annotations"> </td> |
| 1613 |
</tr> |
| 1614 |
<tr> |
| 1615 |
<td class="parameter_name"><p>error</p></td> |
| 1616 |
<td class="parameter_description"><p>Error</p></td> |
| 1617 |
<td class="parameter_annotations"> </td> |
| 1618 |
</tr> |
| 1619 |
</tbody> |
| 1620 |
</table></div> |
| 1621 |
</div> |
| 1622 |
</div> |
| 1623 |
<hr> |
| 1624 |
<div class="refsect2"> |
| 1625 |
<a name="ostree-sysroot-deployment-set-kargs-in-place"></a><h3>ostree_sysroot_deployment_set_kargs_in_place ()</h3> |
| 1626 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 1627 |
ostree_sysroot_deployment_set_kargs_in_place |
| 1628 |
(<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 1629 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *deployment</code></em>, |
| 1630 |
<em class="parameter"><code><span class="type">char</span> *kargs_str</code></em>, |
| 1631 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 1632 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 1633 |
<p>Replace the kernel arguments of <em class="parameter"><code>deployment</code></em> |
| 1634 |
with the values in <em class="parameter"><code>kargs_str</code></em> |
| 1635 |
.</p> |
| 1636 |
<div class="refsect3"> |
| 1637 |
<a name="ostree-sysroot-deployment-set-kargs-in-place.parameters"></a><h4>Parameters</h4> |
| 1638 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1639 |
<colgroup> |
| 1640 |
<col width="150px" class="parameters_name"> |
| 1641 |
<col class="parameters_description"> |
| 1642 |
<col width="200px" class="parameters_annotations"> |
| 1643 |
</colgroup> |
| 1644 |
<tbody> |
| 1645 |
<tr> |
| 1646 |
<td class="parameter_name"><p>self</p></td> |
| 1647 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1648 |
<td class="parameter_annotations"> </td> |
| 1649 |
</tr> |
| 1650 |
<tr> |
| 1651 |
<td class="parameter_name"><p>deployment</p></td> |
| 1652 |
<td class="parameter_description"><p>A deployment</p></td> |
| 1653 |
<td class="parameter_annotations"> </td> |
| 1654 |
</tr> |
| 1655 |
<tr> |
| 1656 |
<td class="parameter_name"><p>kargs_str</p></td> |
| 1657 |
<td class="parameter_description"><p>Replace <em class="parameter"><code>deployment</code></em> |
| 1658 |
's kernel arguments. </p></td> |
| 1659 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> |
| 1660 |
</tr> |
| 1661 |
<tr> |
| 1662 |
<td class="parameter_name"><p>cancellable</p></td> |
| 1663 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 1664 |
<td class="parameter_annotations"> </td> |
| 1665 |
</tr> |
| 1666 |
<tr> |
| 1667 |
<td class="parameter_name"><p>error</p></td> |
| 1668 |
<td class="parameter_description"><p>Error</p></td> |
| 1669 |
<td class="parameter_annotations"> </td> |
| 1670 |
</tr> |
| 1671 |
</tbody> |
| 1672 |
</table></div> |
| 1673 |
</div> |
| 1674 |
</div> |
| 1675 |
<hr> |
| 1676 |
<div class="refsect2"> |
| 1677 |
<a name="ostree-sysroot-deployment-set-mutable"></a><h3>ostree_sysroot_deployment_set_mutable ()</h3> |
| 1678 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 1679 |
ostree_sysroot_deployment_set_mutable (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 1680 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *deployment</code></em>, |
| 1681 |
<em class="parameter"><code><span class="type">gboolean</span> is_mutable</code></em>, |
| 1682 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 1683 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 1684 |
<p>By default, deployment directories are not mutable. This function |
| 1685 |
will allow making them temporarily mutable, for example to allow |
| 1686 |
layering additional non-OSTree content.</p> |
| 1687 |
<div class="refsect3"> |
| 1688 |
<a name="ostree-sysroot-deployment-set-mutable.parameters"></a><h4>Parameters</h4> |
| 1689 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1690 |
<colgroup> |
| 1691 |
<col width="150px" class="parameters_name"> |
| 1692 |
<col class="parameters_description"> |
| 1693 |
<col width="200px" class="parameters_annotations"> |
| 1694 |
</colgroup> |
| 1695 |
<tbody> |
| 1696 |
<tr> |
| 1697 |
<td class="parameter_name"><p>self</p></td> |
| 1698 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1699 |
<td class="parameter_annotations"> </td> |
| 1700 |
</tr> |
| 1701 |
<tr> |
| 1702 |
<td class="parameter_name"><p>deployment</p></td> |
| 1703 |
<td class="parameter_description"><p>A deployment</p></td> |
| 1704 |
<td class="parameter_annotations"> </td> |
| 1705 |
</tr> |
| 1706 |
<tr> |
| 1707 |
<td class="parameter_name"><p>is_mutable</p></td> |
| 1708 |
<td class="parameter_description"><p>Whether or not deployment's files can be changed</p></td> |
| 1709 |
<td class="parameter_annotations"> </td> |
| 1710 |
</tr> |
| 1711 |
<tr> |
| 1712 |
<td class="parameter_name"><p>cancellable</p></td> |
| 1713 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 1714 |
<td class="parameter_annotations"> </td> |
| 1715 |
</tr> |
| 1716 |
<tr> |
| 1717 |
<td class="parameter_name"><p>error</p></td> |
| 1718 |
<td class="parameter_description"><p>Error</p></td> |
| 1719 |
<td class="parameter_annotations"> </td> |
| 1720 |
</tr> |
| 1721 |
</tbody> |
| 1722 |
</table></div> |
| 1723 |
</div> |
| 1724 |
</div> |
| 1725 |
<hr> |
| 1726 |
<div class="refsect2"> |
| 1727 |
<a name="ostree-sysroot-deployment-unlock"></a><h3>ostree_sysroot_deployment_unlock ()</h3> |
| 1728 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 1729 |
ostree_sysroot_deployment_unlock (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 1730 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *deployment</code></em>, |
| 1731 |
<em class="parameter"><code><span class="type">OstreeDeploymentUnlockedState</span> unlocked_state</code></em>, |
| 1732 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 1733 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 1734 |
<p>Configure the target deployment <em class="parameter"><code>deployment</code></em> |
| 1735 |
such that it |
| 1736 |
is writable. There are multiple modes, essentially differing |
| 1737 |
in whether or not any changes persist across reboot.</p> |
| 1738 |
<p>The <code class="literal">OSTREE_DEPLOYMENT_UNLOCKED_HOTFIX</code> state is persistent |
| 1739 |
across reboots.</p> |
| 1740 |
<div class="refsect3"> |
| 1741 |
<a name="ostree-sysroot-deployment-unlock.parameters"></a><h4>Parameters</h4> |
| 1742 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1743 |
<colgroup> |
| 1744 |
<col width="150px" class="parameters_name"> |
| 1745 |
<col class="parameters_description"> |
| 1746 |
<col width="200px" class="parameters_annotations"> |
| 1747 |
</colgroup> |
| 1748 |
<tbody> |
| 1749 |
<tr> |
| 1750 |
<td class="parameter_name"><p>self</p></td> |
| 1751 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1752 |
<td class="parameter_annotations"> </td> |
| 1753 |
</tr> |
| 1754 |
<tr> |
| 1755 |
<td class="parameter_name"><p>deployment</p></td> |
| 1756 |
<td class="parameter_description"><p>Deployment</p></td> |
| 1757 |
<td class="parameter_annotations"> </td> |
| 1758 |
</tr> |
| 1759 |
<tr> |
| 1760 |
<td class="parameter_name"><p>unlocked_state</p></td> |
| 1761 |
<td class="parameter_description"><p>Transition to this unlocked state</p></td> |
| 1762 |
<td class="parameter_annotations"> </td> |
| 1763 |
</tr> |
| 1764 |
<tr> |
| 1765 |
<td class="parameter_name"><p>cancellable</p></td> |
| 1766 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 1767 |
<td class="parameter_annotations"> </td> |
| 1768 |
</tr> |
| 1769 |
<tr> |
| 1770 |
<td class="parameter_name"><p>error</p></td> |
| 1771 |
<td class="parameter_description"><p>Error</p></td> |
| 1772 |
<td class="parameter_annotations"> </td> |
| 1773 |
</tr> |
| 1774 |
</tbody> |
| 1775 |
</table></div> |
| 1776 |
</div> |
| 1777 |
<p class="since">Since: 2016.4</p> |
| 1778 |
</div> |
| 1779 |
<hr> |
| 1780 |
<div class="refsect2"> |
| 1781 |
<a name="ostree-sysroot-deployment-set-pinned"></a><h3>ostree_sysroot_deployment_set_pinned ()</h3> |
| 1782 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 1783 |
ostree_sysroot_deployment_set_pinned (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 1784 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *deployment</code></em>, |
| 1785 |
<em class="parameter"><code><span class="type">gboolean</span> is_pinned</code></em>, |
| 1786 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 1787 |
<p>By default, deployments may be subject to garbage collection. Typical uses of |
| 1788 |
libostree only retain at most 2 deployments. If <em class="parameter"><code>is_pinned</code></em> |
| 1789 |
is <code class="literal">TRUE</code>, a |
| 1790 |
metadata bit will be set causing libostree to avoid automatic GC of the |
| 1791 |
deployment. However, this is really an "advisory" note; it's still possible |
| 1792 |
for e.g. older versions of libostree unaware of pinning to GC the deployment.</p> |
| 1793 |
<p>This function does nothing and returns successfully if the deployment |
| 1794 |
is already in the desired pinning state. It is an error to try to pin |
| 1795 |
the staged deployment (as it's not in the bootloader entries).</p> |
| 1796 |
<div class="refsect3"> |
| 1797 |
<a name="ostree-sysroot-deployment-set-pinned.parameters"></a><h4>Parameters</h4> |
| 1798 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1799 |
<colgroup> |
| 1800 |
<col width="150px" class="parameters_name"> |
| 1801 |
<col class="parameters_description"> |
| 1802 |
<col width="200px" class="parameters_annotations"> |
| 1803 |
</colgroup> |
| 1804 |
<tbody> |
| 1805 |
<tr> |
| 1806 |
<td class="parameter_name"><p>self</p></td> |
| 1807 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1808 |
<td class="parameter_annotations"> </td> |
| 1809 |
</tr> |
| 1810 |
<tr> |
| 1811 |
<td class="parameter_name"><p>deployment</p></td> |
| 1812 |
<td class="parameter_description"><p>A deployment</p></td> |
| 1813 |
<td class="parameter_annotations"> </td> |
| 1814 |
</tr> |
| 1815 |
<tr> |
| 1816 |
<td class="parameter_name"><p>is_pinned</p></td> |
| 1817 |
<td class="parameter_description"><p>Whether or not deployment will be automatically GC'd</p></td> |
| 1818 |
<td class="parameter_annotations"> </td> |
| 1819 |
</tr> |
| 1820 |
<tr> |
| 1821 |
<td class="parameter_name"><p>error</p></td> |
| 1822 |
<td class="parameter_description"><p>Error</p></td> |
| 1823 |
<td class="parameter_annotations"> </td> |
| 1824 |
</tr> |
| 1825 |
</tbody> |
| 1826 |
</table></div> |
| 1827 |
</div> |
| 1828 |
<p class="since">Since: 2018.3</p> |
| 1829 |
</div> |
| 1830 |
<hr> |
| 1831 |
<div class="refsect2"> |
| 1832 |
<a name="ostree-sysroot-write-deployments"></a><h3>ostree_sysroot_write_deployments ()</h3> |
| 1833 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 1834 |
ostree_sysroot_write_deployments (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 1835 |
<em class="parameter"><code><span class="type">GPtrArray</span> *new_deployments</code></em>, |
| 1836 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 1837 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 1838 |
<p>Older version of <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-write-deployments-with-options" title="ostree_sysroot_write_deployments_with_options ()"><code class="function">ostree_sysroot_write_deployments_with_options()</code></a>. This |
| 1839 |
version will perform post-deployment cleanup by default.</p> |
| 1840 |
<div class="refsect3"> |
| 1841 |
<a name="ostree-sysroot-write-deployments.parameters"></a><h4>Parameters</h4> |
| 1842 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1843 |
<colgroup> |
| 1844 |
<col width="150px" class="parameters_name"> |
| 1845 |
<col class="parameters_description"> |
| 1846 |
<col width="200px" class="parameters_annotations"> |
| 1847 |
</colgroup> |
| 1848 |
<tbody> |
| 1849 |
<tr> |
| 1850 |
<td class="parameter_name"><p>self</p></td> |
| 1851 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1852 |
<td class="parameter_annotations"> </td> |
| 1853 |
</tr> |
| 1854 |
<tr> |
| 1855 |
<td class="parameter_name"><p>new_deployments</p></td> |
| 1856 |
<td class="parameter_description"><p>List of new deployments. </p></td> |
| 1857 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> OstreeDeployment]</span></td> |
| 1858 |
</tr> |
| 1859 |
<tr> |
| 1860 |
<td class="parameter_name"><p>cancellable</p></td> |
| 1861 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 1862 |
<td class="parameter_annotations"> </td> |
| 1863 |
</tr> |
| 1864 |
<tr> |
| 1865 |
<td class="parameter_name"><p>error</p></td> |
| 1866 |
<td class="parameter_description"><p>Error</p></td> |
| 1867 |
<td class="parameter_annotations"> </td> |
| 1868 |
</tr> |
| 1869 |
</tbody> |
| 1870 |
</table></div> |
| 1871 |
</div> |
| 1872 |
</div> |
| 1873 |
<hr> |
| 1874 |
<div class="refsect2"> |
| 1875 |
<a name="ostree-sysroot-write-deployments-with-options"></a><h3>ostree_sysroot_write_deployments_with_options ()</h3> |
| 1876 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 1877 |
ostree_sysroot_write_deployments_with_options |
| 1878 |
(<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 1879 |
<em class="parameter"><code><span class="type">GPtrArray</span> *new_deployments</code></em>, |
| 1880 |
<em class="parameter"><code><span class="type">OstreeSysrootWriteDeploymentsOpts</span> *opts</code></em>, |
| 1881 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 1882 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 1883 |
<p>Assuming <em class="parameter"><code>new_deployments</code></em> |
| 1884 |
have already been deployed in place on disk via |
| 1885 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-deploy-tree" title="ostree_sysroot_deploy_tree ()"><code class="function">ostree_sysroot_deploy_tree()</code></a>, atomically update bootloader configuration. By |
| 1886 |
default, no post-transaction cleanup will be performed. You should invoke |
| 1887 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-cleanup" title="ostree_sysroot_cleanup ()"><code class="function">ostree_sysroot_cleanup()</code></a> at some point after the transaction, or specify |
| 1888 |
<code class="literal">do_postclean</code> in <em class="parameter"><code>opts</code></em> |
| 1889 |
. Skipping the post-transaction cleanup is useful |
| 1890 |
if for example you want to control pruning of the repository.</p> |
| 1891 |
<div class="refsect3"> |
| 1892 |
<a name="ostree-sysroot-write-deployments-with-options.parameters"></a><h4>Parameters</h4> |
| 1893 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1894 |
<colgroup> |
| 1895 |
<col width="150px" class="parameters_name"> |
| 1896 |
<col class="parameters_description"> |
| 1897 |
<col width="200px" class="parameters_annotations"> |
| 1898 |
</colgroup> |
| 1899 |
<tbody> |
| 1900 |
<tr> |
| 1901 |
<td class="parameter_name"><p>self</p></td> |
| 1902 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 1903 |
<td class="parameter_annotations"> </td> |
| 1904 |
</tr> |
| 1905 |
<tr> |
| 1906 |
<td class="parameter_name"><p>new_deployments</p></td> |
| 1907 |
<td class="parameter_description"><p>List of new deployments. </p></td> |
| 1908 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> OstreeDeployment]</span></td> |
| 1909 |
</tr> |
| 1910 |
<tr> |
| 1911 |
<td class="parameter_name"><p>opts</p></td> |
| 1912 |
<td class="parameter_description"><p>Options</p></td> |
| 1913 |
<td class="parameter_annotations"> </td> |
| 1914 |
</tr> |
| 1915 |
<tr> |
| 1916 |
<td class="parameter_name"><p>cancellable</p></td> |
| 1917 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 1918 |
<td class="parameter_annotations"> </td> |
| 1919 |
</tr> |
| 1920 |
<tr> |
| 1921 |
<td class="parameter_name"><p>error</p></td> |
| 1922 |
<td class="parameter_description"><p>Error</p></td> |
| 1923 |
<td class="parameter_annotations"> </td> |
| 1924 |
</tr> |
| 1925 |
</tbody> |
| 1926 |
</table></div> |
| 1927 |
</div> |
| 1928 |
<p class="since">Since: 2017.4</p> |
| 1929 |
</div> |
| 1930 |
<hr> |
| 1931 |
<div class="refsect2"> |
| 1932 |
<a name="ostree-sysroot-write-origin-file"></a><h3>ostree_sysroot_write_origin_file ()</h3> |
| 1933 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 1934 |
ostree_sysroot_write_origin_file (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *sysroot</code></em>, |
| 1935 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *deployment</code></em>, |
| 1936 |
<em class="parameter"><code><span class="type">GKeyFile</span> *new_origin</code></em>, |
| 1937 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 1938 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 1939 |
<p>Immediately replace the origin file of the referenced <em class="parameter"><code>deployment</code></em> |
| 1940 |
|
| 1941 |
with the contents of <em class="parameter"><code>new_origin</code></em> |
| 1942 |
. If <em class="parameter"><code>new_origin</code></em> |
| 1943 |
is <code class="literal">NULL</code>, |
| 1944 |
this function will write the current origin of <em class="parameter"><code>deployment</code></em> |
| 1945 |
.</p> |
| 1946 |
<div class="refsect3"> |
| 1947 |
<a name="ostree-sysroot-write-origin-file.parameters"></a><h4>Parameters</h4> |
| 1948 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 1949 |
<colgroup> |
| 1950 |
<col width="150px" class="parameters_name"> |
| 1951 |
<col class="parameters_description"> |
| 1952 |
<col width="200px" class="parameters_annotations"> |
| 1953 |
</colgroup> |
| 1954 |
<tbody> |
| 1955 |
<tr> |
| 1956 |
<td class="parameter_name"><p>sysroot</p></td> |
| 1957 |
<td class="parameter_description"><p>System root</p></td> |
| 1958 |
<td class="parameter_annotations"> </td> |
| 1959 |
</tr> |
| 1960 |
<tr> |
| 1961 |
<td class="parameter_name"><p>deployment</p></td> |
| 1962 |
<td class="parameter_description"><p>Deployment</p></td> |
| 1963 |
<td class="parameter_annotations"> </td> |
| 1964 |
</tr> |
| 1965 |
<tr> |
| 1966 |
<td class="parameter_name"><p>new_origin</p></td> |
| 1967 |
<td class="parameter_description"><p>Origin content. </p></td> |
| 1968 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> |
| 1969 |
</tr> |
| 1970 |
<tr> |
| 1971 |
<td class="parameter_name"><p>cancellable</p></td> |
| 1972 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 1973 |
<td class="parameter_annotations"> </td> |
| 1974 |
</tr> |
| 1975 |
<tr> |
| 1976 |
<td class="parameter_name"><p>error</p></td> |
| 1977 |
<td class="parameter_description"><p>Error</p></td> |
| 1978 |
<td class="parameter_annotations"> </td> |
| 1979 |
</tr> |
| 1980 |
</tbody> |
| 1981 |
</table></div> |
| 1982 |
</div> |
| 1983 |
</div> |
| 1984 |
<hr> |
| 1985 |
<div class="refsect2"> |
| 1986 |
<a name="ostree-sysroot-stage-tree"></a><h3>ostree_sysroot_stage_tree ()</h3> |
| 1987 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 1988 |
ostree_sysroot_stage_tree (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 1989 |
<em class="parameter"><code>const <span class="type">char</span> *osname</code></em>, |
| 1990 |
<em class="parameter"><code>const <span class="type">char</span> *revision</code></em>, |
| 1991 |
<em class="parameter"><code><span class="type">GKeyFile</span> *origin</code></em>, |
| 1992 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *merge_deployment</code></em>, |
| 1993 |
<em class="parameter"><code><span class="type">char</span> **override_kernel_argv</code></em>, |
| 1994 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> **out_new_deployment</code></em>, |
| 1995 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 1996 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 1997 |
<p>Older version of <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-stage-tree-with-options" title="ostree_sysroot_stage_tree_with_options ()"><code class="function">ostree_sysroot_stage_tree_with_options()</code></a>.</p> |
| 1998 |
<div class="refsect3"> |
| 1999 |
<a name="ostree-sysroot-stage-tree.parameters"></a><h4>Parameters</h4> |
| 2000 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 2001 |
<colgroup> |
| 2002 |
<col width="150px" class="parameters_name"> |
| 2003 |
<col class="parameters_description"> |
| 2004 |
<col width="200px" class="parameters_annotations"> |
| 2005 |
</colgroup> |
| 2006 |
<tbody> |
| 2007 |
<tr> |
| 2008 |
<td class="parameter_name"><p>self</p></td> |
| 2009 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 2010 |
<td class="parameter_annotations"> </td> |
| 2011 |
</tr> |
| 2012 |
<tr> |
| 2013 |
<td class="parameter_name"><p>osname</p></td> |
| 2014 |
<td class="parameter_description"><p>osname to use for merge deployment. </p></td> |
| 2015 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> |
| 2016 |
</tr> |
| 2017 |
<tr> |
| 2018 |
<td class="parameter_name"><p>revision</p></td> |
| 2019 |
<td class="parameter_description"><p>Checksum to add</p></td> |
| 2020 |
<td class="parameter_annotations"> </td> |
| 2021 |
</tr> |
| 2022 |
<tr> |
| 2023 |
<td class="parameter_name"><p>origin</p></td> |
| 2024 |
<td class="parameter_description"><p>Origin to use for upgrades. </p></td> |
| 2025 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> |
| 2026 |
</tr> |
| 2027 |
<tr> |
| 2028 |
<td class="parameter_name"><p>merge_deployment</p></td> |
| 2029 |
<td class="parameter_description"><p>Use this deployment for merge path. </p></td> |
| 2030 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> |
| 2031 |
</tr> |
| 2032 |
<tr> |
| 2033 |
<td class="parameter_name"><p>override_kernel_argv</p></td> |
| 2034 |
<td class="parameter_description"><p>Use these as |
| 2035 |
kernel arguments; if <code class="literal">NULL</code>, inherit options from provided_merge_deployment. </p></td> |
| 2036 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span></td> |
| 2037 |
</tr> |
| 2038 |
<tr> |
| 2039 |
<td class="parameter_name"><p>out_new_deployment</p></td> |
| 2040 |
<td class="parameter_description"><p>The new deployment path. </p></td> |
| 2041 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> |
| 2042 |
</tr> |
| 2043 |
<tr> |
| 2044 |
<td class="parameter_name"><p>cancellable</p></td> |
| 2045 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 2046 |
<td class="parameter_annotations"> </td> |
| 2047 |
</tr> |
| 2048 |
<tr> |
| 2049 |
<td class="parameter_name"><p>error</p></td> |
| 2050 |
<td class="parameter_description"><p>Error</p></td> |
| 2051 |
<td class="parameter_annotations"> </td> |
| 2052 |
</tr> |
| 2053 |
</tbody> |
| 2054 |
</table></div> |
| 2055 |
</div> |
| 2056 |
<p class="since">Since: 2018.5</p> |
| 2057 |
</div> |
| 2058 |
<hr> |
| 2059 |
<div class="refsect2"> |
| 2060 |
<a name="ostree-sysroot-stage-tree-with-options"></a><h3>ostree_sysroot_stage_tree_with_options ()</h3> |
| 2061 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 2062 |
ostree_sysroot_stage_tree_with_options |
| 2063 |
(<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 2064 |
<em class="parameter"><code>const <span class="type">char</span> *osname</code></em>, |
| 2065 |
<em class="parameter"><code>const <span class="type">char</span> *revision</code></em>, |
| 2066 |
<em class="parameter"><code><span class="type">GKeyFile</span> *origin</code></em>, |
| 2067 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *merge_deployment</code></em>, |
| 2068 |
<em class="parameter"><code><span class="type">OstreeSysrootDeployTreeOpts</span> *opts</code></em>, |
| 2069 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> **out_new_deployment</code></em>, |
| 2070 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 2071 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 2072 |
<p>Like <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-deploy-tree" title="ostree_sysroot_deploy_tree ()"><code class="function">ostree_sysroot_deploy_tree()</code></a>, but "finalization" only occurs at OS |
| 2073 |
shutdown time.</p> |
| 2074 |
<div class="refsect3"> |
| 2075 |
<a name="ostree-sysroot-stage-tree-with-options.parameters"></a><h4>Parameters</h4> |
| 2076 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 2077 |
<colgroup> |
| 2078 |
<col width="150px" class="parameters_name"> |
| 2079 |
<col class="parameters_description"> |
| 2080 |
<col width="200px" class="parameters_annotations"> |
| 2081 |
</colgroup> |
| 2082 |
<tbody> |
| 2083 |
<tr> |
| 2084 |
<td class="parameter_name"><p>self</p></td> |
| 2085 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 2086 |
<td class="parameter_annotations"> </td> |
| 2087 |
</tr> |
| 2088 |
<tr> |
| 2089 |
<td class="parameter_name"><p>osname</p></td> |
| 2090 |
<td class="parameter_description"><p>osname to use for merge deployment. </p></td> |
| 2091 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> |
| 2092 |
</tr> |
| 2093 |
<tr> |
| 2094 |
<td class="parameter_name"><p>revision</p></td> |
| 2095 |
<td class="parameter_description"><p>Checksum to add</p></td> |
| 2096 |
<td class="parameter_annotations"> </td> |
| 2097 |
</tr> |
| 2098 |
<tr> |
| 2099 |
<td class="parameter_name"><p>origin</p></td> |
| 2100 |
<td class="parameter_description"><p>Origin to use for upgrades. </p></td> |
| 2101 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> |
| 2102 |
</tr> |
| 2103 |
<tr> |
| 2104 |
<td class="parameter_name"><p>merge_deployment</p></td> |
| 2105 |
<td class="parameter_description"><p>Use this deployment for merge path. </p></td> |
| 2106 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> |
| 2107 |
</tr> |
| 2108 |
<tr> |
| 2109 |
<td class="parameter_name"><p>opts</p></td> |
| 2110 |
<td class="parameter_description"><p>Options</p></td> |
| 2111 |
<td class="parameter_annotations"> </td> |
| 2112 |
</tr> |
| 2113 |
<tr> |
| 2114 |
<td class="parameter_name"><p>out_new_deployment</p></td> |
| 2115 |
<td class="parameter_description"><p>The new deployment path. </p></td> |
| 2116 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> |
| 2117 |
</tr> |
| 2118 |
<tr> |
| 2119 |
<td class="parameter_name"><p>cancellable</p></td> |
| 2120 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 2121 |
<td class="parameter_annotations"> </td> |
| 2122 |
</tr> |
| 2123 |
<tr> |
| 2124 |
<td class="parameter_name"><p>error</p></td> |
| 2125 |
<td class="parameter_description"><p>Error</p></td> |
| 2126 |
<td class="parameter_annotations"> </td> |
| 2127 |
</tr> |
| 2128 |
</tbody> |
| 2129 |
</table></div> |
| 2130 |
</div> |
| 2131 |
<p class="since">Since: 2020.7</p> |
| 2132 |
</div> |
| 2133 |
<hr> |
| 2134 |
<div class="refsect2"> |
| 2135 |
<a name="ostree-sysroot-stage-overlay-initrd"></a><h3>ostree_sysroot_stage_overlay_initrd ()</h3> |
| 2136 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 2137 |
ostree_sysroot_stage_overlay_initrd (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 2138 |
<em class="parameter"><code><span class="type">int</span> fd</code></em>, |
| 2139 |
<em class="parameter"><code><span class="type">char</span> **out_checksum</code></em>, |
| 2140 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 2141 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 2142 |
<p>Stage an overlay initrd to be used in an upcoming deployment. Returns a checksum which |
| 2143 |
can be passed to <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-deploy-tree-with-options" title="ostree_sysroot_deploy_tree_with_options ()"><code class="function">ostree_sysroot_deploy_tree_with_options()</code></a> or |
| 2144 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-stage-tree-with-options" title="ostree_sysroot_stage_tree_with_options ()"><code class="function">ostree_sysroot_stage_tree_with_options()</code></a> via the <code class="literal">overlay_initrds</code> array option.</p> |
| 2145 |
<div class="refsect3"> |
| 2146 |
<a name="ostree-sysroot-stage-overlay-initrd.parameters"></a><h4>Parameters</h4> |
| 2147 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 2148 |
<colgroup> |
| 2149 |
<col width="150px" class="parameters_name"> |
| 2150 |
<col class="parameters_description"> |
| 2151 |
<col width="200px" class="parameters_annotations"> |
| 2152 |
</colgroup> |
| 2153 |
<tbody> |
| 2154 |
<tr> |
| 2155 |
<td class="parameter_name"><p>self</p></td> |
| 2156 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 2157 |
<td class="parameter_annotations"> </td> |
| 2158 |
</tr> |
| 2159 |
<tr> |
| 2160 |
<td class="parameter_name"><p>fd</p></td> |
| 2161 |
<td class="parameter_description"><p>File descriptor to overlay initrd</p></td> |
| 2162 |
<td class="parameter_annotations"> </td> |
| 2163 |
</tr> |
| 2164 |
<tr> |
| 2165 |
<td class="parameter_name"><p>out_checksum</p></td> |
| 2166 |
<td class="parameter_description"><p>Overlay initrd checksum. </p></td> |
| 2167 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></td> |
| 2168 |
</tr> |
| 2169 |
<tr> |
| 2170 |
<td class="parameter_name"><p>cancellable</p></td> |
| 2171 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 2172 |
<td class="parameter_annotations"> </td> |
| 2173 |
</tr> |
| 2174 |
<tr> |
| 2175 |
<td class="parameter_name"><p>error</p></td> |
| 2176 |
<td class="parameter_description"><p>Error</p></td> |
| 2177 |
<td class="parameter_annotations"> </td> |
| 2178 |
</tr> |
| 2179 |
</tbody> |
| 2180 |
</table></div> |
| 2181 |
</div> |
| 2182 |
<p class="since">Since: 2020.7</p> |
| 2183 |
</div> |
| 2184 |
<hr> |
| 2185 |
<div class="refsect2"> |
| 2186 |
<a name="ostree-sysroot-change-finalization"></a><h3>ostree_sysroot_change_finalization ()</h3> |
| 2187 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 2188 |
ostree_sysroot_change_finalization (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 2189 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *deployment</code></em>, |
| 2190 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 2191 |
<p>Given the target deployment (which must be the staged deployment) this API |
| 2192 |
will toggle its "finalization locking" state. If it is currently locked, |
| 2193 |
it will be unlocked (and hence queued to apply on shutdown).</p> |
| 2194 |
<div class="refsect3"> |
| 2195 |
<a name="ostree-sysroot-change-finalization.parameters"></a><h4>Parameters</h4> |
| 2196 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 2197 |
<colgroup> |
| 2198 |
<col width="150px" class="parameters_name"> |
| 2199 |
<col class="parameters_description"> |
| 2200 |
<col width="200px" class="parameters_annotations"> |
| 2201 |
</colgroup> |
| 2202 |
<tbody> |
| 2203 |
<tr> |
| 2204 |
<td class="parameter_name"><p>self</p></td> |
| 2205 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 2206 |
<td class="parameter_annotations"> </td> |
| 2207 |
</tr> |
| 2208 |
<tr> |
| 2209 |
<td class="parameter_name"><p>deployment</p></td> |
| 2210 |
<td class="parameter_description"><p>Deployment which must be staged</p></td> |
| 2211 |
<td class="parameter_annotations"> </td> |
| 2212 |
</tr> |
| 2213 |
<tr> |
| 2214 |
<td class="parameter_name"><p>error</p></td> |
| 2215 |
<td class="parameter_description"><p>Error</p></td> |
| 2216 |
<td class="parameter_annotations"> </td> |
| 2217 |
</tr> |
| 2218 |
</tbody> |
| 2219 |
</table></div> |
| 2220 |
</div> |
| 2221 |
<p class="since">Since: 2023.8</p> |
| 2222 |
</div> |
| 2223 |
<hr> |
| 2224 |
<div class="refsect2"> |
| 2225 |
<a name="ostree-sysroot-deploy-tree"></a><h3>ostree_sysroot_deploy_tree ()</h3> |
| 2226 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 2227 |
ostree_sysroot_deploy_tree (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 2228 |
<em class="parameter"><code>const <span class="type">char</span> *osname</code></em>, |
| 2229 |
<em class="parameter"><code>const <span class="type">char</span> *revision</code></em>, |
| 2230 |
<em class="parameter"><code><span class="type">GKeyFile</span> *origin</code></em>, |
| 2231 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *provided_merge_deployment</code></em>, |
| 2232 |
<em class="parameter"><code><span class="type">char</span> **override_kernel_argv</code></em>, |
| 2233 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> **out_new_deployment</code></em>, |
| 2234 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 2235 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 2236 |
<p>Older version of <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-stage-tree-with-options" title="ostree_sysroot_stage_tree_with_options ()"><code class="function">ostree_sysroot_stage_tree_with_options()</code></a>.</p> |
| 2237 |
<div class="refsect3"> |
| 2238 |
<a name="ostree-sysroot-deploy-tree.parameters"></a><h4>Parameters</h4> |
| 2239 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 2240 |
<colgroup> |
| 2241 |
<col width="150px" class="parameters_name"> |
| 2242 |
<col class="parameters_description"> |
| 2243 |
<col width="200px" class="parameters_annotations"> |
| 2244 |
</colgroup> |
| 2245 |
<tbody> |
| 2246 |
<tr> |
| 2247 |
<td class="parameter_name"><p>self</p></td> |
| 2248 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 2249 |
<td class="parameter_annotations"> </td> |
| 2250 |
</tr> |
| 2251 |
<tr> |
| 2252 |
<td class="parameter_name"><p>osname</p></td> |
| 2253 |
<td class="parameter_description"><p>osname to use for merge deployment. </p></td> |
| 2254 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td> |
| 2255 |
</tr> |
| 2256 |
<tr> |
| 2257 |
<td class="parameter_name"><p>revision</p></td> |
| 2258 |
<td class="parameter_description"><p>Checksum to add</p></td> |
| 2259 |
<td class="parameter_annotations"> </td> |
| 2260 |
</tr> |
| 2261 |
<tr> |
| 2262 |
<td class="parameter_name"><p>origin</p></td> |
| 2263 |
<td class="parameter_description"><p>Origin to use for upgrades. </p></td> |
| 2264 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td> |
| 2265 |
</tr> |
| 2266 |
<tr> |
| 2267 |
<td class="parameter_name"><p>provided_merge_deployment</p></td> |
| 2268 |
<td class="parameter_description"><p>Use this deployment for merge path. </p></td> |
| 2269 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td> |
| 2270 |
</tr> |
| 2271 |
<tr> |
| 2272 |
<td class="parameter_name"><p>override_kernel_argv</p></td> |
| 2273 |
<td class="parameter_description"><p>Use these as |
| 2274 |
kernel arguments; if <code class="literal">NULL</code>, inherit options from provided_merge_deployment. </p></td> |
| 2275 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span></td> |
| 2276 |
</tr> |
| 2277 |
<tr> |
| 2278 |
<td class="parameter_name"><p>out_new_deployment</p></td> |
| 2279 |
<td class="parameter_description"><p>The new deployment path. </p></td> |
| 2280 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> |
| 2281 |
</tr> |
| 2282 |
<tr> |
| 2283 |
<td class="parameter_name"><p>cancellable</p></td> |
| 2284 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 2285 |
<td class="parameter_annotations"> </td> |
| 2286 |
</tr> |
| 2287 |
<tr> |
| 2288 |
<td class="parameter_name"><p>error</p></td> |
| 2289 |
<td class="parameter_description"><p>Error</p></td> |
| 2290 |
<td class="parameter_annotations"> </td> |
| 2291 |
</tr> |
| 2292 |
</tbody> |
| 2293 |
</table></div> |
| 2294 |
</div> |
| 2295 |
<p class="since">Since: 2018.5</p> |
| 2296 |
</div> |
| 2297 |
<hr> |
| 2298 |
<div class="refsect2"> |
| 2299 |
<a name="ostree-sysroot-deploy-tree-with-options"></a><h3>ostree_sysroot_deploy_tree_with_options ()</h3> |
| 2300 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 2301 |
ostree_sysroot_deploy_tree_with_options |
| 2302 |
(<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 2303 |
<em class="parameter"><code>const <span class="type">char</span> *osname</code></em>, |
| 2304 |
<em class="parameter"><code>const <span class="type">char</span> *revision</code></em>, |
| 2305 |
<em class="parameter"><code><span class="type">GKeyFile</span> *origin</code></em>, |
| 2306 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *provided_merge_deployment</code></em>, |
| 2307 |
<em class="parameter"><code><span class="type">OstreeSysrootDeployTreeOpts</span> *opts</code></em>, |
| 2308 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> **out_new_deployment</code></em>, |
| 2309 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 2310 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 2311 |
<p>Check out deployment tree with revision <em class="parameter"><code>revision</code></em> |
| 2312 |
, performing a 3 |
| 2313 |
way merge with <em class="parameter"><code>provided_merge_deployment</code></em> |
| 2314 |
for configuration.</p> |
| 2315 |
<p>When booted into the sysroot, you should use the |
| 2316 |
<a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-stage-tree" title="ostree_sysroot_stage_tree ()"><code class="function">ostree_sysroot_stage_tree()</code></a> API instead.</p> |
| 2317 |
<div class="refsect3"> |
| 2318 |
<a name="ostree-sysroot-deploy-tree-with-options.parameters"></a><h4>Parameters</h4> |
| 2319 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 2320 |
<colgroup> |
| 2321 |
<col width="150px" class="parameters_name"> |
| 2322 |
<col class="parameters_description"> |
| 2323 |
<col width="200px" class="parameters_annotations"> |
| 2324 |
</colgroup> |
| 2325 |
<tbody> |
| 2326 |
<tr> |
| 2327 |
<td class="parameter_name"><p>self</p></td> |
| 2328 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 2329 |
<td class="parameter_annotations"> </td> |
| 2330 |
</tr> |
| 2331 |
<tr> |
| 2332 |
<td class="parameter_name"><p>osname</p></td> |
| 2333 |
<td class="parameter_description"><p>osname to use for merge deployment. </p></td> |
| 2334 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td> |
| 2335 |
</tr> |
| 2336 |
<tr> |
| 2337 |
<td class="parameter_name"><p>revision</p></td> |
| 2338 |
<td class="parameter_description"><p>Checksum to add</p></td> |
| 2339 |
<td class="parameter_annotations"> </td> |
| 2340 |
</tr> |
| 2341 |
<tr> |
| 2342 |
<td class="parameter_name"><p>origin</p></td> |
| 2343 |
<td class="parameter_description"><p>Origin to use for upgrades. </p></td> |
| 2344 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td> |
| 2345 |
</tr> |
| 2346 |
<tr> |
| 2347 |
<td class="parameter_name"><p>provided_merge_deployment</p></td> |
| 2348 |
<td class="parameter_description"><p>Use this deployment for merge path. </p></td> |
| 2349 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td> |
| 2350 |
</tr> |
| 2351 |
<tr> |
| 2352 |
<td class="parameter_name"><p>opts</p></td> |
| 2353 |
<td class="parameter_description"><p>Options. </p></td> |
| 2354 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td> |
| 2355 |
</tr> |
| 2356 |
<tr> |
| 2357 |
<td class="parameter_name"><p>out_new_deployment</p></td> |
| 2358 |
<td class="parameter_description"><p>The new deployment path. </p></td> |
| 2359 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></td> |
| 2360 |
</tr> |
| 2361 |
<tr> |
| 2362 |
<td class="parameter_name"><p>cancellable</p></td> |
| 2363 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 2364 |
<td class="parameter_annotations"> </td> |
| 2365 |
</tr> |
| 2366 |
<tr> |
| 2367 |
<td class="parameter_name"><p>error</p></td> |
| 2368 |
<td class="parameter_description"><p>Error</p></td> |
| 2369 |
<td class="parameter_annotations"> </td> |
| 2370 |
</tr> |
| 2371 |
</tbody> |
| 2372 |
</table></div> |
| 2373 |
</div> |
| 2374 |
<p class="since">Since: 2020.7</p> |
| 2375 |
</div> |
| 2376 |
<hr> |
| 2377 |
<div class="refsect2"> |
| 2378 |
<a name="ostree-sysroot-get-merge-deployment"></a><h3>ostree_sysroot_get_merge_deployment ()</h3> |
| 2379 |
<pre class="programlisting"><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="returnvalue">OstreeDeployment</span></a> * |
| 2380 |
ostree_sysroot_get_merge_deployment (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 2381 |
<em class="parameter"><code>const <span class="type">char</span> *osname</code></em>);</pre> |
| 2382 |
<p>Find the deployment to use as a configuration merge source; this is |
| 2383 |
the first one in the current deployment list which matches osname.</p> |
| 2384 |
<div class="refsect3"> |
| 2385 |
<a name="ostree-sysroot-get-merge-deployment.parameters"></a><h4>Parameters</h4> |
| 2386 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 2387 |
<colgroup> |
| 2388 |
<col width="150px" class="parameters_name"> |
| 2389 |
<col class="parameters_description"> |
| 2390 |
<col width="200px" class="parameters_annotations"> |
| 2391 |
</colgroup> |
| 2392 |
<tbody> |
| 2393 |
<tr> |
| 2394 |
<td class="parameter_name"><p>self</p></td> |
| 2395 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 2396 |
<td class="parameter_annotations"> </td> |
| 2397 |
</tr> |
| 2398 |
<tr> |
| 2399 |
<td class="parameter_name"><p>osname</p></td> |
| 2400 |
<td class="parameter_description"><p>Operating system group. </p></td> |
| 2401 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> |
| 2402 |
</tr> |
| 2403 |
</tbody> |
| 2404 |
</table></div> |
| 2405 |
</div> |
| 2406 |
<div class="refsect3"> |
| 2407 |
<a name="ostree-sysroot-get-merge-deployment.returns"></a><h4>Returns</h4> |
| 2408 |
<p>Configuration merge deployment. </p> |
| 2409 |
<p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p> |
| 2410 |
</div> |
| 2411 |
</div> |
| 2412 |
<hr> |
| 2413 |
<div class="refsect2"> |
| 2414 |
<a name="ostree-sysroot-query-deployments-for"></a><h3>ostree_sysroot_query_deployments_for ()</h3> |
| 2415 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 2416 |
ostree_sysroot_query_deployments_for (<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 2417 |
<em class="parameter"><code>const <span class="type">char</span> *osname</code></em>, |
| 2418 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> **out_pending</code></em>, |
| 2419 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> **out_rollback</code></em>);</pre> |
| 2420 |
<p>Find the pending and rollback deployments for <em class="parameter"><code>osname</code></em> |
| 2421 |
. Pass <code class="literal">NULL</code> for <em class="parameter"><code>osname</code></em> |
| 2422 |
|
| 2423 |
to use the booted deployment's osname. By default, pending deployment is the |
| 2424 |
first deployment in the order that matches <em class="parameter"><code>osname</code></em> |
| 2425 |
, and <em class="parameter"><code>rollback</code></em> |
| 2426 |
will be the |
| 2427 |
next one after the booted deployment, or the deployment after the pending if |
| 2428 |
we're not looking at the booted deployment.</p> |
| 2429 |
<div class="refsect3"> |
| 2430 |
<a name="ostree-sysroot-query-deployments-for.parameters"></a><h4>Parameters</h4> |
| 2431 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 2432 |
<colgroup> |
| 2433 |
<col width="150px" class="parameters_name"> |
| 2434 |
<col class="parameters_description"> |
| 2435 |
<col width="200px" class="parameters_annotations"> |
| 2436 |
</colgroup> |
| 2437 |
<tbody> |
| 2438 |
<tr> |
| 2439 |
<td class="parameter_name"><p>self</p></td> |
| 2440 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 2441 |
<td class="parameter_annotations"> </td> |
| 2442 |
</tr> |
| 2443 |
<tr> |
| 2444 |
<td class="parameter_name"><p>osname</p></td> |
| 2445 |
<td class="parameter_description"><p>"stateroot" name. </p></td> |
| 2446 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> |
| 2447 |
</tr> |
| 2448 |
<tr> |
| 2449 |
<td class="parameter_name"><p>out_pending</p></td> |
| 2450 |
<td class="parameter_description"><p>The pending deployment. </p></td> |
| 2451 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="NULL may be passed instead of a pointer to a location."><span class="acronym">optional</span></acronym>][<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></td> |
| 2452 |
</tr> |
| 2453 |
<tr> |
| 2454 |
<td class="parameter_name"><p>out_rollback</p></td> |
| 2455 |
<td class="parameter_description"><p>The rollback deployment. </p></td> |
| 2456 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="NULL may be passed instead of a pointer to a location."><span class="acronym">optional</span></acronym>][<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></td> |
| 2457 |
</tr> |
| 2458 |
</tbody> |
| 2459 |
</table></div> |
| 2460 |
</div> |
| 2461 |
<p class="since">Since: 2017.7</p> |
| 2462 |
</div> |
| 2463 |
<hr> |
| 2464 |
<div class="refsect2"> |
| 2465 |
<a name="ostree-sysroot-origin-new-from-refspec"></a><h3>ostree_sysroot_origin_new_from_refspec ()</h3> |
| 2466 |
<pre class="programlisting"><span class="returnvalue">GKeyFile</span> * |
| 2467 |
ostree_sysroot_origin_new_from_refspec |
| 2468 |
(<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *self</code></em>, |
| 2469 |
<em class="parameter"><code>const <span class="type">char</span> *refspec</code></em>);</pre> |
| 2470 |
<div class="refsect3"> |
| 2471 |
<a name="ostree-sysroot-origin-new-from-refspec.parameters"></a><h4>Parameters</h4> |
| 2472 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 2473 |
<colgroup> |
| 2474 |
<col width="150px" class="parameters_name"> |
| 2475 |
<col class="parameters_description"> |
| 2476 |
<col width="200px" class="parameters_annotations"> |
| 2477 |
</colgroup> |
| 2478 |
<tbody> |
| 2479 |
<tr> |
| 2480 |
<td class="parameter_name"><p>self</p></td> |
| 2481 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 2482 |
<td class="parameter_annotations"> </td> |
| 2483 |
</tr> |
| 2484 |
<tr> |
| 2485 |
<td class="parameter_name"><p>refspec</p></td> |
| 2486 |
<td class="parameter_description"><p>A refspec</p></td> |
| 2487 |
<td class="parameter_annotations"> </td> |
| 2488 |
</tr> |
| 2489 |
</tbody> |
| 2490 |
</table></div> |
| 2491 |
</div> |
| 2492 |
<div class="refsect3"> |
| 2493 |
<a name="ostree-sysroot-origin-new-from-refspec.returns"></a><h4>Returns</h4> |
| 2494 |
<p>A new config file which sets <em class="parameter"><code>refspec</code></em> |
| 2495 |
as an origin. </p> |
| 2496 |
<p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL must not be passed as the value in, out, in-out; or as a return value."><span class="acronym">not nullable</span></acronym>]</span></p> |
| 2497 |
</div> |
| 2498 |
</div> |
| 2499 |
<hr> |
| 2500 |
<div class="refsect2"> |
| 2501 |
<a name="ostree-sysroot-simple-write-deployment"></a><h3>ostree_sysroot_simple_write_deployment ()</h3> |
| 2502 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 2503 |
ostree_sysroot_simple_write_deployment |
| 2504 |
(<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysroot" title="OstreeSysroot"><span class="type">OstreeSysroot</span></a> *sysroot</code></em>, |
| 2505 |
<em class="parameter"><code>const <span class="type">char</span> *osname</code></em>, |
| 2506 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *new_deployment</code></em>, |
| 2507 |
<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *merge_deployment</code></em>, |
| 2508 |
<em class="parameter"><code><a class="link" href="ostree-Root-partition-mount-point.html#OstreeSysrootSimpleWriteDeploymentFlags" title="enum OstreeSysrootSimpleWriteDeploymentFlags"><span class="type">OstreeSysrootSimpleWriteDeploymentFlags</span></a> flags</code></em>, |
| 2509 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 2510 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 2511 |
<p>Prepend <em class="parameter"><code>new_deployment</code></em> |
| 2512 |
to the list of deployments, commit, and |
| 2513 |
cleanup. By default, all other deployments for the given <em class="parameter"><code>osname</code></em> |
| 2514 |
|
| 2515 |
except the merge deployment and the booted deployment will be |
| 2516 |
garbage collected.</p> |
| 2517 |
<p>If <a class="link" href="ostree-Root-partition-mount-point.html#OSTREE-SYSROOT-SIMPLE-WRITE-DEPLOYMENT-FLAGS-RETAIN:CAPS"><code class="literal">OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN</code></a> is |
| 2518 |
specified, then all current deployments will be kept.</p> |
| 2519 |
<p>If <a class="link" href="ostree-Root-partition-mount-point.html#OSTREE-SYSROOT-SIMPLE-WRITE-DEPLOYMENT-FLAGS-RETAIN-PENDING:CAPS"><code class="literal">OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_PENDING</code></a> is |
| 2520 |
specified, then pending deployments will be kept.</p> |
| 2521 |
<p>If <a class="link" href="ostree-Root-partition-mount-point.html#OSTREE-SYSROOT-SIMPLE-WRITE-DEPLOYMENT-FLAGS-RETAIN-ROLLBACK:CAPS"><code class="literal">OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_ROLLBACK</code></a> is |
| 2522 |
specified, then rollback deployments will be kept.</p> |
| 2523 |
<p>If <a class="link" href="ostree-Root-partition-mount-point.html#OSTREE-SYSROOT-SIMPLE-WRITE-DEPLOYMENT-FLAGS-NOT-DEFAULT:CAPS"><code class="literal">OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NOT_DEFAULT</code></a> is |
| 2524 |
specified, then instead of prepending, the new deployment will be |
| 2525 |
added right after the booted or merge deployment, instead of first.</p> |
| 2526 |
<p>If <a class="link" href="ostree-Root-partition-mount-point.html#OSTREE-SYSROOT-SIMPLE-WRITE-DEPLOYMENT-FLAGS-NO-CLEAN:CAPS"><code class="literal">OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NO_CLEAN</code></a> is |
| 2527 |
specified, then no cleanup will be performed after adding the |
| 2528 |
deployment. Make sure to call <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-cleanup" title="ostree_sysroot_cleanup ()"><code class="function">ostree_sysroot_cleanup()</code></a> sometime |
| 2529 |
later, instead.</p> |
| 2530 |
<div class="refsect3"> |
| 2531 |
<a name="ostree-sysroot-simple-write-deployment.parameters"></a><h4>Parameters</h4> |
| 2532 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 2533 |
<colgroup> |
| 2534 |
<col width="150px" class="parameters_name"> |
| 2535 |
<col class="parameters_description"> |
| 2536 |
<col width="200px" class="parameters_annotations"> |
| 2537 |
</colgroup> |
| 2538 |
<tbody> |
| 2539 |
<tr> |
| 2540 |
<td class="parameter_name"><p>sysroot</p></td> |
| 2541 |
<td class="parameter_description"><p>Sysroot</p></td> |
| 2542 |
<td class="parameter_annotations"> </td> |
| 2543 |
</tr> |
| 2544 |
<tr> |
| 2545 |
<td class="parameter_name"><p>osname</p></td> |
| 2546 |
<td class="parameter_description"><p>OS name. </p></td> |
| 2547 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> |
| 2548 |
</tr> |
| 2549 |
<tr> |
| 2550 |
<td class="parameter_name"><p>new_deployment</p></td> |
| 2551 |
<td class="parameter_description"><p>Prepend this deployment to the list</p></td> |
| 2552 |
<td class="parameter_annotations"> </td> |
| 2553 |
</tr> |
| 2554 |
<tr> |
| 2555 |
<td class="parameter_name"><p>merge_deployment</p></td> |
| 2556 |
<td class="parameter_description"><p>Use this deployment for configuration merge. </p></td> |
| 2557 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> |
| 2558 |
</tr> |
| 2559 |
<tr> |
| 2560 |
<td class="parameter_name"><p>flags</p></td> |
| 2561 |
<td class="parameter_description"><p>Flags controlling behavior</p></td> |
| 2562 |
<td class="parameter_annotations"> </td> |
| 2563 |
</tr> |
| 2564 |
<tr> |
| 2565 |
<td class="parameter_name"><p>cancellable</p></td> |
| 2566 |
<td class="parameter_description"><p>Cancellable</p></td> |
| 2567 |
<td class="parameter_annotations"> </td> |
| 2568 |
</tr> |
| 2569 |
<tr> |
| 2570 |
<td class="parameter_name"><p>error</p></td> |
| 2571 |
<td class="parameter_description"><p>Error</p></td> |
| 2572 |
<td class="parameter_annotations"> </td> |
| 2573 |
</tr> |
| 2574 |
</tbody> |
| 2575 |
</table></div> |
| 2576 |
</div> |
| 2577 |
</div> |
| 2578 |
</div> |
| 2579 |
<div class="refsect1"> |
| 2580 |
<a name="ostree-Root-partition-mount-point.other_details"></a><h2>Types and Values</h2> |
| 2581 |
<div class="refsect2"> |
| 2582 |
<a name="OstreeSysroot"></a><h3>OstreeSysroot</h3> |
| 2583 |
<pre class="programlisting">typedef struct OstreeSysroot OstreeSysroot; |
| 2584 |
</pre> |
| 2585 |
</div> |
| 2586 |
<hr> |
| 2587 |
<div class="refsect2"> |
| 2588 |
<a name="OstreeSysrootSimpleWriteDeploymentFlags"></a><h3>enum OstreeSysrootSimpleWriteDeploymentFlags</h3> |
| 2589 |
<div class="refsect3"> |
| 2590 |
<a name="OstreeSysrootSimpleWriteDeploymentFlags.members"></a><h4>Members</h4> |
| 2591 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 2592 |
<colgroup> |
| 2593 |
<col width="300px" class="enum_members_name"> |
| 2594 |
<col class="enum_members_description"> |
| 2595 |
<col width="200px" class="enum_members_annotations"> |
| 2596 |
</colgroup> |
| 2597 |
<tbody> |
| 2598 |
<tr> |
| 2599 |
<td class="enum_member_name"><p><a name="OSTREE-SYSROOT-SIMPLE-WRITE-DEPLOYMENT-FLAGS-NONE:CAPS"></a>OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NONE</p></td> |
| 2600 |
<td> </td> |
| 2601 |
<td> </td> |
| 2602 |
</tr> |
| 2603 |
<tr> |
| 2604 |
<td class="enum_member_name"><p><a name="OSTREE-SYSROOT-SIMPLE-WRITE-DEPLOYMENT-FLAGS-RETAIN:CAPS"></a>OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN</p></td> |
| 2605 |
<td> </td> |
| 2606 |
<td> </td> |
| 2607 |
</tr> |
| 2608 |
<tr> |
| 2609 |
<td class="enum_member_name"><p><a name="OSTREE-SYSROOT-SIMPLE-WRITE-DEPLOYMENT-FLAGS-NOT-DEFAULT:CAPS"></a>OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NOT_DEFAULT</p></td> |
| 2610 |
<td> </td> |
| 2611 |
<td> </td> |
| 2612 |
</tr> |
| 2613 |
<tr> |
| 2614 |
<td class="enum_member_name"><p><a name="OSTREE-SYSROOT-SIMPLE-WRITE-DEPLOYMENT-FLAGS-NO-CLEAN:CAPS"></a>OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NO_CLEAN</p></td> |
| 2615 |
<td> </td> |
| 2616 |
<td> </td> |
| 2617 |
</tr> |
| 2618 |
<tr> |
| 2619 |
<td class="enum_member_name"><p><a name="OSTREE-SYSROOT-SIMPLE-WRITE-DEPLOYMENT-FLAGS-RETAIN-PENDING:CAPS"></a>OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_PENDING</p></td> |
| 2620 |
<td> </td> |
| 2621 |
<td> </td> |
| 2622 |
</tr> |
| 2623 |
<tr> |
| 2624 |
<td class="enum_member_name"><p><a name="OSTREE-SYSROOT-SIMPLE-WRITE-DEPLOYMENT-FLAGS-RETAIN-ROLLBACK:CAPS"></a>OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_ROLLBACK</p></td> |
| 2625 |
<td> </td> |
| 2626 |
<td> </td> |
| 2627 |
</tr> |
| 2628 |
</tbody> |
| 2629 |
</table></div> |
| 2630 |
</div> |
| 2631 |
</div> |
| 2632 |
</div> |
| 2633 |
</div> |
| 2634 |
<div class="footer"> |
| 2635 |
<hr>Generated by GTK-Doc V1.34.0</div> |
| 2636 |
</body> |
| 2637 |
</html> |