/usr/share/doc/live-manual/html/managing-a-configuration.pt_BR.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 Manual
</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="dc.title" content="Debian Live Manual" />
<meta name="dc.author" content="Debian Live Project <debian-live@lists.debian.org>" />
<meta name="dc.publisher" content="Debian Live Project <debian-live@lists.debian.org>" />
<meta name="dc.date" content="2011-12-04" />
<meta name="dc.rights" content="Copyright (C) 2006-2011 Debian Live Project;<br> License: This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br><br>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.<br><br>You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. <br><br>The complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-3 file." />
<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.pt_BR.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.pt_BR.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.pt_BR.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.pt_BR.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.pt_BR.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.pt_BR.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.pt_BR.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 Manual
</h1>
</div><div class="content">
<h2 class="tiny">
User
</h2>
</div><div class="content"><div class="substance">
<label class="ocn"><a name="308" href="#308" class="lnkocn">308</a></label>
<h1 class="norm" id="o308"><a name="308"></a>
6. Managing a configuration
</h1>
</div><div class="substance">
<label class="ocn"><a name="309" href="#309" class="lnkocn">309</a></label>
<p class="i0" id="o309">
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="310" href="#310" class="lnkocn">310</a></label>
<p class="bold" id="o310"><a name="310"></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="311" href="#311" class="lnkocn">311</a></label>
<p class="i0" id="o311">
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="312" href="#312" class="lnkocn">312</a></label>
<p class="i0" id="o312">
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="313" href="#313" class="lnkocn">313</a></label>
<p class="i0" id="o313">
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="314" href="#314" class="lnkocn">314</a></label>
<p class="i0" id="o314">
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="315" href="#315" class="lnkocn">315</a></label>
<p class="bold" id="o315"><a name="315"></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="316" href="#316" class="lnkocn">316</a></label>
<p class="i0" id="o316">
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="317" href="#317" class="lnkocn">317</a></label>
<p class="i0" id="o317">
<tt>auto/config</tt>
</p>
</div><div class="substance">
<label class="ocn"><a name="318" href="#318" class="lnkocn">318</a></label>
<p class="code" id="o318">
#!/bin/sh<br />
lb config noauto \<br />
--package-lists "standard" \<br />
"${@}"<br /><br />
</p>
</div><div class="substance">
<label class="ocn"><a name="319" href="#319" class="lnkocn">319</a></label>
<p class="i0" id="o319">
<tt>auto/clean</tt>
</p>
</div><div class="substance">
<label class="ocn"><a name="320" href="#320" class="lnkocn">320</a></label>
<p class="code" id="o320">
#!/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="321" href="#321" class="lnkocn">321</a></label>
<p class="i0" id="o321">
<tt>auto/build</tt>
</p>
</div><div class="substance">
<label class="ocn"><a name="322" href="#322" class="lnkocn">322</a></label>
<p class="code" id="o322">
#!/bin/sh<br />
lb build noauto "${@}" 2>&1 | tee binary.log<br /><br />
</p>
</div><div class="substance">
<label class="ocn"><a name="323" href="#323" class="lnkocn">323</a></label>
<p class="i0" id="o323">
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="324" href="#324" class="lnkocn">324</a></label>
<p class="code" id="o324">
$ cp /usr/share/live/build/examples/auto/* auto/<br /><br />
</p>
</div><div class="substance">
<label class="ocn"><a name="325" href="#325" class="lnkocn">325</a></label>
<p class="i0" id="o325">
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.pt_BR.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.pt_BR.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.pt_BR.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.pt_BR.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.pt_BR.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.pt_BR.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.pt_BR.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>
|