/usr/share/doc/live-manual/html/managing-a-configuration.de.html is in live-manual-html 1:3.0~a9-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
managing-a-configuration -
Debian Live Handbuch
</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="dc.title" content="Debian Live Handbuch" />
<meta name="dc.author" content="Debian Live Projekt <debian-live@lists.debian.org>" />
<meta name="dc.publisher" content="Debian Live Projekt <debian-live@lists.debian.org>" />
<meta name="dc.date" content="2011-12-04" />
<meta name="dc.rights" content="Copyright (C) 2006-2011 Debian Live Projekt;<br> License: Dieses Programm ist freie Software. Sie können es unter den Bedingungen der GNU General Public License, wie von der Free Software Foundation veröffentlicht, weitergeben und/oder modifizieren, entweder gemäss Version 3 der Lizenz oder (nach Ihrer Option) jeder späteren Version.<br><br>Die Veröffentlichung dieses Programms erfolgt in der Hoffnung, dass es Ihnen von Nutzen sein wird, aber OHNE IRGENDEINE GARANTIE, sogar ohne die implizite Garantie der MARKTREIFE oder der VERWENDBARKEIT FÜR EINEN BESTIMMTEN ZWECK. Details finden Sie in der GNU General Public License.<br><br>Sie sollten ein Exemplar der GNU General Public License zusammen mit diesem Programm erhalten haben. Falls nicht, siehe <http://www.gnu.org/licenses/>.<br><br>Der komplette Text der GNU General Public License kann in der Datei /usr/share/common-licenses/GPL-3 gefunden werden." />
<meta name="generator" content="SiSU 3.1.9 of 2011w51/1 (2011-12-19) (n*x and Ruby!)" />
<link rel="generator" href="http://www.sisudoc.org/" />
<link rel="shortcut icon" href="../_sisu/image/rb7.ico" />
<link rel="stylesheet" href="../_sisu/css/html.css" type="text/css" />
</head>
<body bgcolor="#ffffff" text="#000000" link="#003090" lang="en" xml:lang="en">
<a name="top" id="top"></a>
<a name="up" id="up"></a>
<a name="start" id="start"></a><table summary="segment navigation band with banner" bgcolor="#ffffff" width="100%"><tr>
<td width="20%" align="left">
<table summary="band" border="0" cellpadding="3" cellspacing="0"><tr><td align="left" bgcolor="#ffffff"><a href="http://live.debian.net/" target="_top"><img border="0" src="../_sisu/image/debian_home.png" alt="Debian -->" /></a></td></tr>
</table>
</td>
<td width="75%" align="center">
<table summary="segment navigation available documents types: toc,doc,pdf,concordance" border="0" cellpadding="3" cellspacing="0">
<tr>
<td align="center" bgcolor="#ffffff">
<td align="center" bgcolor="#ffffff">
<a href="sisu_manifest.de.html" target="_top" >
<font face="verdana, arial, georgia, tahoma, sans-serif, helvetica, times, roman" size="2">
[ document manifest ]
</font>
</a>
</td>
</tr></table>
</td>
<td width="5%" align="right">
<table summary="segment navigation pre/next" border="0" cellpadding="3" cellspacing="0">
<tr>
<td align="center" bgcolor="#ffffff">
<a href="overview-of-tools.de.html" target="_top" >
<img border="0" width="22" height="22" src="../_sisu/image_sys/arrow_prev_red.png" alt="<< previous" />
</a>
</td>
<td align="center" bgcolor="#ffffff">
<a href="toc.de.html" target="_top" >
<img border="0" width="22" height="22" src="../_sisu/image_sys/arrow_up_red.png" alt="TOC" />
</a>
</td>
<td align="center" bgcolor="#ffffff">
<a href="customization-overview.de.html" target="_top" >
<img border="0" width="22" height="22" src="../_sisu/image_sys/arrow_next_red.png" alt="next >>" />
</a>
</td>
<td>
</td></tr>
</table>
</td></tr>
</table>
<table summary="segment hidden control pre and next" width="100%" border="0" cellpadding="0" bgcolor=#eeeeee align="center">
<tr><td align="left">
<a href="overview-of-tools.de.html" target="_top" >
<img border="0" width="100%" height="20" src="../_sisu/image_sys/dot_white.png" alt="<" />
</a>
</td>
<td align="center">
<a href="toc.de.html" target="_top" >
<img border="0" width="100%" height="20" src="../_sisu/image_sys/dot_white.png" alt="^" />
</a>
</td>
<td align="right">
<a href="customization-overview.de.html" target="_top" >
<img border="0" width="100%" height="20" src="../_sisu/image_sys/dot_white.png" alt=">" />
</a>
</td></tr>
</table><div class="content">
<h1 class="tiny">
Debian Live Handbuch
</h1>
</div><div class="content">
<h2 class="tiny">
Benutzer
</h2>
</div><div class="content"><div class="substance">
<label class="ocn"><a name="309" href="#309" class="lnkocn">309</a></label>
<h1 class="norm" id="o309"><a name="309"></a>
6. Managing a configuration
</h1>
</div><div class="substance">
<label class="ocn"><a name="310" href="#310" class="lnkocn">310</a></label>
<p class="i0" id="o310">
This chapter explains how to manage a live configuration from initial creation, through successive revisions and successive releases of both the <i>live-build</i> software and the live image itself.
</p>
</div><div class="substance">
<label class="ocn"><a name="311" href="#311" class="lnkocn">311</a></label>
<p class="bold" id="o311"><a name="311"></a> <a name="h6.1" id="h6.1"></a>
<a name="6.1" ></a><a name="h6.1" ></a>6.1 Use auto to manage configuration changes
</p>
</div><div class="substance">
<label class="ocn"><a name="312" href="#312" class="lnkocn">312</a></label>
<p class="i0" id="o312">
Live configurations rarely are perfect on the first try. You'll likely need to make a series of revisions until you are satisfied. However, inconsistencies can creep into your configuration from one revision to the next if you aren't careful. The main problem is, once a variable is given a default value, that value will not be recomputed from other variables that may change in later revisions.
</p>
</div><div class="substance">
<label class="ocn"><a name="313" href="#313" class="lnkocn">313</a></label>
<p class="i0" id="o313">
For example, when the distribution is first set, many 'dependent' variables are given default values that suit that distribution. However, if you later decide to change the distribution, those dependent variables continue to retain old values that are no longer appropriate.
</p>
</div><div class="substance">
<label class="ocn"><a name="314" href="#314" class="lnkocn">314</a></label>
<p class="i0" id="o314">
A second, related problem is that if you run <tt>lb config</tt> and then upgrade to a new version of <i>live-build</i> that has changed one of the variable names, you will discover this only by manual review of the variables in your <tt>config/*</tt> files, which you will then need to use to set the appropriate option again.
</p>
</div><div class="substance">
<label class="ocn"><a name="315" href="#315" class="lnkocn">315</a></label>
<p class="i0" id="o315">
All of this would be a terrible nuisance if it weren't for auto/* scripts, simple wrappers to the <tt>lb config</tt>, <tt>lb build</tt> and <tt>lb clean</tt> commands that are designed to help you manage your configuration. Simply create an auto/config script containing <tt>lb config</tt> command with all desired options, and an auto/clean that removes the files containing configuration variable values, and each time you <tt>lb config</tt> and <tt>lb clean</tt>, these files will be executed. This will ensure that your configuration is kept internally consistent from one revision to the next and from one <i>live-build</i> release to the next (though you will still have to take care and read the documentation when you upgrade <i>live-build</i> and make adjustments as needed).
</p>
</div><div class="substance">
<label class="ocn"><a name="316" href="#316" class="lnkocn">316</a></label>
<p class="bold" id="o316"><a name="316"></a> <a name="h6.2" id="h6.2"></a>
<a name="6.2" ></a><a name="h6.2" ></a>6.2 Example auto scripts
</p>
</div><div class="substance">
<label class="ocn"><a name="317" href="#317" class="lnkocn">317</a></label>
<p class="i0" id="o317">
Use auto script examples such as the following as the starting point for your new <i>live-build</i> configuration. Take note that when you call the <tt>lb</tt> command that the auto script wraps, you must specify <tt>noauto</tt> as its parameter to ensure that the auto script isn't called again, recursively. Also, don't forget to ensure the scripts are executable (e.g. <tt>chmod 755 auto/*</tt>).
</p>
</div><div class="substance">
<label class="ocn"><a name="318" href="#318" class="lnkocn">318</a></label>
<p class="i0" id="o318">
<tt>auto/config</tt>
</p>
</div><div class="substance">
<label class="ocn"><a name="319" href="#319" class="lnkocn">319</a></label>
<p class="code" id="o319">
#!/bin/sh<br />
lb config noauto \<br />
--package-lists "standard" \<br />
"${@}"<br /><br />
</p>
</div><div class="substance">
<label class="ocn"><a name="320" href="#320" class="lnkocn">320</a></label>
<p class="i0" id="o320">
<tt>auto/clean</tt>
</p>
</div><div class="substance">
<label class="ocn"><a name="321" href="#321" class="lnkocn">321</a></label>
<p class="code" id="o321">
#!/bin/sh<br />
lb clean noauto "${@}"<br />
rm -f config/binary config/bootstrap \<br />
config/chroot config/common config/source<br />
rm -f binary.log<br /><br />
</p>
</div><div class="substance">
<label class="ocn"><a name="322" href="#322" class="lnkocn">322</a></label>
<p class="i0" id="o322">
<tt>auto/build</tt>
</p>
</div><div class="substance">
<label class="ocn"><a name="323" href="#323" class="lnkocn">323</a></label>
<p class="code" id="o323">
#!/bin/sh<br />
lb build noauto "${@}" 2>&1 | tee binary.log<br /><br />
</p>
</div><div class="substance">
<label class="ocn"><a name="324" href="#324" class="lnkocn">324</a></label>
<p class="i0" id="o324">
We now ship example auto scripts with <i>live-build</i> based on the examples above. You may copy those as your starting point.
</p>
</div><div class="substance">
<label class="ocn"><a name="325" href="#325" class="lnkocn">325</a></label>
<p class="code" id="o325">
$ cp /usr/share/live/build/examples/auto/* auto/<br /><br />
</p>
</div><div class="substance">
<label class="ocn"><a name="326" href="#326" class="lnkocn">326</a></label>
<p class="i0" id="o326">
Edit <tt>auto/config</tt>, changing or adding any options as you see fit. In the example above, <tt>--package-lists standard</tt> is set to the default value. Change this to an appropriate value for your image (or delete it if you want to use the default) and add any additional options in continuation lines that follow.
</p>
</div></div><br /><div class="main_column">
<table summary="segment navigation band" bgcolor="#ffffff" width="100%"><tr>
<td width="70%" align="center">
<table summary="segment navigation available documents types: toc,doc,pdf,concordance" border="0" cellpadding="3" cellspacing="0">
<tr>
<td align="center" bgcolor="#ffffff">
<td align="center" bgcolor="#ffffff">
<a href="sisu_manifest.de.html" target="_top" >
<font face="verdana, arial, georgia, tahoma, sans-serif, helvetica, times, roman" size="2">
[ document manifest ]
</font>
</a>
</td>
</tr></table>
</td>
<td width="5%" align="right">
<table summary="segment navigation pre/next" border="0" cellpadding="3" cellspacing="0">
<tr>
<td align="center" bgcolor="#ffffff">
<a href="overview-of-tools.de.html" target="_top" >
<img border="0" width="22" height="22" src="../_sisu/image_sys/arrow_prev_red.png" alt="<< previous" />
</a>
</td>
<td align="center" bgcolor="#ffffff">
<a href="toc.de.html" target="_top" >
<img border="0" width="22" height="22" src="../_sisu/image_sys/arrow_up_red.png" alt="TOC" />
</a>
</td>
<td align="center" bgcolor="#ffffff">
<a href="customization-overview.de.html" target="_top" >
<img border="0" width="22" height="22" src="../_sisu/image_sys/arrow_next_red.png" alt="next >>" />
</a>
</td>
<td>
</td></tr>
</table>
</td></tr>
</table>
<table summary="segment hidden control pre and next" width="100%" border="0" cellpadding="0" bgcolor=#eeeeee align="center">
<tr><td align="left">
<a href="overview-of-tools.de.html" target="_top" >
<img border="0" width="100%" height="20" src="../_sisu/image_sys/dot_white.png" alt="<" />
</a>
</td>
<td align="center">
<a href="toc.de.html" target="_top" >
<img border="0" width="100%" height="20" src="../_sisu/image_sys/dot_white.png" alt="^" />
</a>
</td>
<td align="right">
<a href="customization-overview.de.html" target="_top" >
<img border="0" width="100%" height="20" src="../_sisu/image_sys/dot_white.png" alt=">" />
</a>
</td></tr>
</table>
</div><div class="main_column">
<a name="bottom" id="bottom"></a>
<a name="down" id="down"></a>
<a name="end" id="end"></a>
<a name="finish" id="finish"></a>
<a name="stop" id="stop"></a>
<a name="credits" id="credits"></a>
</div></div></body>
</html>
|