Update grml-live webpage
[grml.org.git] / grml-live / index.html
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\r
3     "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\r
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">\r
5 <head>\r
6 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />\r
7 <meta name="generator" content="AsciiDoc 8.6.10" />\r
8 <title>grml-live(8)</title>\r
9 <style type="text/css">\r
10 /* Shared CSS for AsciiDoc xhtml11 and html5 backends */\r
11 \r
12 /* Default font. */\r
13 body {\r
14   font-family: Georgia,serif;\r
15 }\r
16 \r
17 /* Title font. */\r
18 h1, h2, h3, h4, h5, h6,\r
19 div.title, caption.title,\r
20 thead, p.table.header,\r
21 #toctitle,\r
22 #author, #revnumber, #revdate, #revremark,\r
23 #footer {\r
24   font-family: Arial,Helvetica,sans-serif;\r
25 }\r
26 \r
27 body {\r
28   margin: 1em 5% 1em 5%;\r
29 }\r
30 \r
31 a {\r
32   color: blue;\r
33   text-decoration: underline;\r
34 }\r
35 a:visited {\r
36   color: fuchsia;\r
37 }\r
38 \r
39 em {\r
40   font-style: italic;\r
41   color: navy;\r
42 }\r
43 \r
44 strong {\r
45   font-weight: bold;\r
46   color: #083194;\r
47 }\r
48 \r
49 h1, h2, h3, h4, h5, h6 {\r
50   color: #527bbd;\r
51   margin-top: 1.2em;\r
52   margin-bottom: 0.5em;\r
53   line-height: 1.3;\r
54 }\r
55 \r
56 h1, h2, h3 {\r
57   border-bottom: 2px solid silver;\r
58 }\r
59 h2 {\r
60   padding-top: 0.5em;\r
61 }\r
62 h3 {\r
63   float: left;\r
64 }\r
65 h3 + * {\r
66   clear: left;\r
67 }\r
68 h5 {\r
69   font-size: 1.0em;\r
70 }\r
71 \r
72 div.sectionbody {\r
73   margin-left: 0;\r
74 }\r
75 \r
76 hr {\r
77   border: 1px solid silver;\r
78 }\r
79 \r
80 p {\r
81   margin-top: 0.5em;\r
82   margin-bottom: 0.5em;\r
83 }\r
84 \r
85 ul, ol, li > p {\r
86   margin-top: 0;\r
87 }\r
88 ul > li     { color: #aaa; }\r
89 ul > li > * { color: black; }\r
90 \r
91 .monospaced, code, pre {\r
92   font-family: "Courier New", Courier, monospace;\r
93   font-size: inherit;\r
94   color: navy;\r
95   padding: 0;\r
96   margin: 0;\r
97 }\r
98 pre {\r
99   white-space: pre-wrap;\r
100 }\r
101 \r
102 #author {\r
103   color: #527bbd;\r
104   font-weight: bold;\r
105   font-size: 1.1em;\r
106 }\r
107 #email {\r
108 }\r
109 #revnumber, #revdate, #revremark {\r
110 }\r
111 \r
112 #footer {\r
113   font-size: small;\r
114   border-top: 2px solid silver;\r
115   padding-top: 0.5em;\r
116   margin-top: 4.0em;\r
117 }\r
118 #footer-text {\r
119   float: left;\r
120   padding-bottom: 0.5em;\r
121 }\r
122 #footer-badges {\r
123   float: right;\r
124   padding-bottom: 0.5em;\r
125 }\r
126 \r
127 #preamble {\r
128   margin-top: 1.5em;\r
129   margin-bottom: 1.5em;\r
130 }\r
131 div.imageblock, div.exampleblock, div.verseblock,\r
132 div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,\r
133 div.admonitionblock {\r
134   margin-top: 1.0em;\r
135   margin-bottom: 1.5em;\r
136 }\r
137 div.admonitionblock {\r
138   margin-top: 2.0em;\r
139   margin-bottom: 2.0em;\r
140   margin-right: 10%;\r
141   color: #606060;\r
142 }\r
143 \r
144 div.content { /* Block element content. */\r
145   padding: 0;\r
146 }\r
147 \r
148 /* Block element titles. */\r
149 div.title, caption.title {\r
150   color: #527bbd;\r
151   font-weight: bold;\r
152   text-align: left;\r
153   margin-top: 1.0em;\r
154   margin-bottom: 0.5em;\r
155 }\r
156 div.title + * {\r
157   margin-top: 0;\r
158 }\r
159 \r
160 td div.title:first-child {\r
161   margin-top: 0.0em;\r
162 }\r
163 div.content div.title:first-child {\r
164   margin-top: 0.0em;\r
165 }\r
166 div.content + div.title {\r
167   margin-top: 0.0em;\r
168 }\r
169 \r
170 div.sidebarblock > div.content {\r
171   background: #ffffee;\r
172   border: 1px solid #dddddd;\r
173   border-left: 4px solid #f0f0f0;\r
174   padding: 0.5em;\r
175 }\r
176 \r
177 div.listingblock > div.content {\r
178   border: 1px solid #dddddd;\r
179   border-left: 5px solid #f0f0f0;\r
180   background: #f8f8f8;\r
181   padding: 0.5em;\r
182 }\r
183 \r
184 div.quoteblock, div.verseblock {\r
185   padding-left: 1.0em;\r
186   margin-left: 1.0em;\r
187   margin-right: 10%;\r
188   border-left: 5px solid #f0f0f0;\r
189   color: #888;\r
190 }\r
191 \r
192 div.quoteblock > div.attribution {\r
193   padding-top: 0.5em;\r
194   text-align: right;\r
195 }\r
196 \r
197 div.verseblock > pre.content {\r
198   font-family: inherit;\r
199   font-size: inherit;\r
200 }\r
201 div.verseblock > div.attribution {\r
202   padding-top: 0.75em;\r
203   text-align: left;\r
204 }\r
205 /* DEPRECATED: Pre version 8.2.7 verse style literal block. */\r
206 div.verseblock + div.attribution {\r
207   text-align: left;\r
208 }\r
209 \r
210 div.admonitionblock .icon {\r
211   vertical-align: top;\r
212   font-size: 1.1em;\r
213   font-weight: bold;\r
214   text-decoration: underline;\r
215   color: #527bbd;\r
216   padding-right: 0.5em;\r
217 }\r
218 div.admonitionblock td.content {\r
219   padding-left: 0.5em;\r
220   border-left: 3px solid #dddddd;\r
221 }\r
222 \r
223 div.exampleblock > div.content {\r
224   border-left: 3px solid #dddddd;\r
225   padding-left: 0.5em;\r
226 }\r
227 \r
228 div.imageblock div.content { padding-left: 0; }\r
229 span.image img { border-style: none; vertical-align: text-bottom; }\r
230 a.image:visited { color: white; }\r
231 \r
232 dl {\r
233   margin-top: 0.8em;\r
234   margin-bottom: 0.8em;\r
235 }\r
236 dt {\r
237   margin-top: 0.5em;\r
238   margin-bottom: 0;\r
239   font-style: normal;\r
240   color: navy;\r
241 }\r
242 dd > *:first-child {\r
243   margin-top: 0.1em;\r
244 }\r
245 \r
246 ul, ol {\r
247     list-style-position: outside;\r
248 }\r
249 ol.arabic {\r
250   list-style-type: decimal;\r
251 }\r
252 ol.loweralpha {\r
253   list-style-type: lower-alpha;\r
254 }\r
255 ol.upperalpha {\r
256   list-style-type: upper-alpha;\r
257 }\r
258 ol.lowerroman {\r
259   list-style-type: lower-roman;\r
260 }\r
261 ol.upperroman {\r
262   list-style-type: upper-roman;\r
263 }\r
264 \r
265 div.compact ul, div.compact ol,\r
266 div.compact p, div.compact p,\r
267 div.compact div, div.compact div {\r
268   margin-top: 0.1em;\r
269   margin-bottom: 0.1em;\r
270 }\r
271 \r
272 tfoot {\r
273   font-weight: bold;\r
274 }\r
275 td > div.verse {\r
276   white-space: pre;\r
277 }\r
278 \r
279 div.hdlist {\r
280   margin-top: 0.8em;\r
281   margin-bottom: 0.8em;\r
282 }\r
283 div.hdlist tr {\r
284   padding-bottom: 15px;\r
285 }\r
286 dt.hdlist1.strong, td.hdlist1.strong {\r
287   font-weight: bold;\r
288 }\r
289 td.hdlist1 {\r
290   vertical-align: top;\r
291   font-style: normal;\r
292   padding-right: 0.8em;\r
293   color: navy;\r
294 }\r
295 td.hdlist2 {\r
296   vertical-align: top;\r
297 }\r
298 div.hdlist.compact tr {\r
299   margin: 0;\r
300   padding-bottom: 0;\r
301 }\r
302 \r
303 .comment {\r
304   background: yellow;\r
305 }\r
306 \r
307 .footnote, .footnoteref {\r
308   font-size: 0.8em;\r
309 }\r
310 \r
311 span.footnote, span.footnoteref {\r
312   vertical-align: super;\r
313 }\r
314 \r
315 #footnotes {\r
316   margin: 20px 0 20px 0;\r
317   padding: 7px 0 0 0;\r
318 }\r
319 \r
320 #footnotes div.footnote {\r
321   margin: 0 0 5px 0;\r
322 }\r
323 \r
324 #footnotes hr {\r
325   border: none;\r
326   border-top: 1px solid silver;\r
327   height: 1px;\r
328   text-align: left;\r
329   margin-left: 0;\r
330   width: 20%;\r
331   min-width: 100px;\r
332 }\r
333 \r
334 div.colist td {\r
335   padding-right: 0.5em;\r
336   padding-bottom: 0.3em;\r
337   vertical-align: top;\r
338 }\r
339 div.colist td img {\r
340   margin-top: 0.3em;\r
341 }\r
342 \r
343 @media print {\r
344   #footer-badges { display: none; }\r
345 }\r
346 \r
347 #toc {\r
348   margin-bottom: 2.5em;\r
349 }\r
350 \r
351 #toctitle {\r
352   color: #527bbd;\r
353   font-size: 1.1em;\r
354   font-weight: bold;\r
355   margin-top: 1.0em;\r
356   margin-bottom: 0.1em;\r
357 }\r
358 \r
359 div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {\r
360   margin-top: 0;\r
361   margin-bottom: 0;\r
362 }\r
363 div.toclevel2 {\r
364   margin-left: 2em;\r
365   font-size: 0.9em;\r
366 }\r
367 div.toclevel3 {\r
368   margin-left: 4em;\r
369   font-size: 0.9em;\r
370 }\r
371 div.toclevel4 {\r
372   margin-left: 6em;\r
373   font-size: 0.9em;\r
374 }\r
375 \r
376 span.aqua { color: aqua; }\r
377 span.black { color: black; }\r
378 span.blue { color: blue; }\r
379 span.fuchsia { color: fuchsia; }\r
380 span.gray { color: gray; }\r
381 span.green { color: green; }\r
382 span.lime { color: lime; }\r
383 span.maroon { color: maroon; }\r
384 span.navy { color: navy; }\r
385 span.olive { color: olive; }\r
386 span.purple { color: purple; }\r
387 span.red { color: red; }\r
388 span.silver { color: silver; }\r
389 span.teal { color: teal; }\r
390 span.white { color: white; }\r
391 span.yellow { color: yellow; }\r
392 \r
393 span.aqua-background { background: aqua; }\r
394 span.black-background { background: black; }\r
395 span.blue-background { background: blue; }\r
396 span.fuchsia-background { background: fuchsia; }\r
397 span.gray-background { background: gray; }\r
398 span.green-background { background: green; }\r
399 span.lime-background { background: lime; }\r
400 span.maroon-background { background: maroon; }\r
401 span.navy-background { background: navy; }\r
402 span.olive-background { background: olive; }\r
403 span.purple-background { background: purple; }\r
404 span.red-background { background: red; }\r
405 span.silver-background { background: silver; }\r
406 span.teal-background { background: teal; }\r
407 span.white-background { background: white; }\r
408 span.yellow-background { background: yellow; }\r
409 \r
410 span.big { font-size: 2em; }\r
411 span.small { font-size: 0.6em; }\r
412 \r
413 span.underline { text-decoration: underline; }\r
414 span.overline { text-decoration: overline; }\r
415 span.line-through { text-decoration: line-through; }\r
416 \r
417 div.unbreakable { page-break-inside: avoid; }\r
418 \r
419 \r
420 /*\r
421  * xhtml11 specific\r
422  *\r
423  * */\r
424 \r
425 div.tableblock {\r
426   margin-top: 1.0em;\r
427   margin-bottom: 1.5em;\r
428 }\r
429 div.tableblock > table {\r
430   border: 3px solid #527bbd;\r
431 }\r
432 thead, p.table.header {\r
433   font-weight: bold;\r
434   color: #527bbd;\r
435 }\r
436 p.table {\r
437   margin-top: 0;\r
438 }\r
439 /* Because the table frame attribute is overriden by CSS in most browsers. */\r
440 div.tableblock > table[frame="void"] {\r
441   border-style: none;\r
442 }\r
443 div.tableblock > table[frame="hsides"] {\r
444   border-left-style: none;\r
445   border-right-style: none;\r
446 }\r
447 div.tableblock > table[frame="vsides"] {\r
448   border-top-style: none;\r
449   border-bottom-style: none;\r
450 }\r
451 \r
452 \r
453 /*\r
454  * html5 specific\r
455  *\r
456  * */\r
457 \r
458 table.tableblock {\r
459   margin-top: 1.0em;\r
460   margin-bottom: 1.5em;\r
461 }\r
462 thead, p.tableblock.header {\r
463   font-weight: bold;\r
464   color: #527bbd;\r
465 }\r
466 p.tableblock {\r
467   margin-top: 0;\r
468 }\r
469 table.tableblock {\r
470   border-width: 3px;\r
471   border-spacing: 0px;\r
472   border-style: solid;\r
473   border-color: #527bbd;\r
474   border-collapse: collapse;\r
475 }\r
476 th.tableblock, td.tableblock {\r
477   border-width: 1px;\r
478   padding: 4px;\r
479   border-style: solid;\r
480   border-color: #527bbd;\r
481 }\r
482 \r
483 table.tableblock.frame-topbot {\r
484   border-left-style: hidden;\r
485   border-right-style: hidden;\r
486 }\r
487 table.tableblock.frame-sides {\r
488   border-top-style: hidden;\r
489   border-bottom-style: hidden;\r
490 }\r
491 table.tableblock.frame-none {\r
492   border-style: hidden;\r
493 }\r
494 \r
495 th.tableblock.halign-left, td.tableblock.halign-left {\r
496   text-align: left;\r
497 }\r
498 th.tableblock.halign-center, td.tableblock.halign-center {\r
499   text-align: center;\r
500 }\r
501 th.tableblock.halign-right, td.tableblock.halign-right {\r
502   text-align: right;\r
503 }\r
504 \r
505 th.tableblock.valign-top, td.tableblock.valign-top {\r
506   vertical-align: top;\r
507 }\r
508 th.tableblock.valign-middle, td.tableblock.valign-middle {\r
509   vertical-align: middle;\r
510 }\r
511 th.tableblock.valign-bottom, td.tableblock.valign-bottom {\r
512   vertical-align: bottom;\r
513 }\r
514 \r
515 \r
516 /*\r
517  * manpage specific\r
518  *\r
519  * */\r
520 \r
521 body.manpage h1 {\r
522   padding-top: 0.5em;\r
523   padding-bottom: 0.5em;\r
524   border-top: 2px solid silver;\r
525   border-bottom: 2px solid silver;\r
526 }\r
527 body.manpage h2 {\r
528   border-style: none;\r
529 }\r
530 body.manpage div.sectionbody {\r
531   margin-left: 3em;\r
532 }\r
533 \r
534 @media print {\r
535   body.manpage div#toc { display: none; }\r
536 }\r
537 \r
538 \r
539 </style>\r
540 <script type="text/javascript">\r
541 /*<![CDATA[*/\r
542 var asciidoc = {  // Namespace.\r
543 \r
544 /////////////////////////////////////////////////////////////////////\r
545 // Table Of Contents generator\r
546 /////////////////////////////////////////////////////////////////////\r
547 \r
548 /* Author: Mihai Bazon, September 2002\r
549  * http://students.infoiasi.ro/~mishoo\r
550  *\r
551  * Table Of Content generator\r
552  * Version: 0.4\r
553  *\r
554  * Feel free to use this script under the terms of the GNU General Public\r
555  * License, as long as you do not remove or alter this notice.\r
556  */\r
557 \r
558  /* modified by Troy D. Hanson, September 2006. License: GPL */\r
559  /* modified by Stuart Rackham, 2006, 2009. License: GPL */\r
560 \r
561 // toclevels = 1..4.\r
562 toc: function (toclevels) {\r
563 \r
564   function getText(el) {\r
565     var text = "";\r
566     for (var i = el.firstChild; i != null; i = i.nextSibling) {\r
567       if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants.\r
568         text += i.data;\r
569       else if (i.firstChild != null)\r
570         text += getText(i);\r
571     }\r
572     return text;\r
573   }\r
574 \r
575   function TocEntry(el, text, toclevel) {\r
576     this.element = el;\r
577     this.text = text;\r
578     this.toclevel = toclevel;\r
579   }\r
580 \r
581   function tocEntries(el, toclevels) {\r
582     var result = new Array;\r
583     var re = new RegExp('[hH]([1-'+(toclevels+1)+'])');\r
584     // Function that scans the DOM tree for header elements (the DOM2\r
585     // nodeIterator API would be a better technique but not supported by all\r
586     // browsers).\r
587     var iterate = function (el) {\r
588       for (var i = el.firstChild; i != null; i = i.nextSibling) {\r
589         if (i.nodeType == 1 /* Node.ELEMENT_NODE */) {\r
590           var mo = re.exec(i.tagName);\r
591           if (mo && (i.getAttribute("class") || i.getAttribute("className")) != "float") {\r
592             result[result.length] = new TocEntry(i, getText(i), mo[1]-1);\r
593           }\r
594           iterate(i);\r
595         }\r
596       }\r
597     }\r
598     iterate(el);\r
599     return result;\r
600   }\r
601 \r
602   var toc = document.getElementById("toc");\r
603   if (!toc) {\r
604     return;\r
605   }\r
606 \r
607   // Delete existing TOC entries in case we're reloading the TOC.\r
608   var tocEntriesToRemove = [];\r
609   var i;\r
610   for (i = 0; i < toc.childNodes.length; i++) {\r
611     var entry = toc.childNodes[i];\r
612     if (entry.nodeName.toLowerCase() == 'div'\r
613      && entry.getAttribute("class")\r
614      && entry.getAttribute("class").match(/^toclevel/))\r
615       tocEntriesToRemove.push(entry);\r
616   }\r
617   for (i = 0; i < tocEntriesToRemove.length; i++) {\r
618     toc.removeChild(tocEntriesToRemove[i]);\r
619   }\r
620 \r
621   // Rebuild TOC entries.\r
622   var entries = tocEntries(document.getElementById("content"), toclevels);\r
623   for (var i = 0; i < entries.length; ++i) {\r
624     var entry = entries[i];\r
625     if (entry.element.id == "")\r
626       entry.element.id = "_toc_" + i;\r
627     var a = document.createElement("a");\r
628     a.href = "#" + entry.element.id;\r
629     a.appendChild(document.createTextNode(entry.text));\r
630     var div = document.createElement("div");\r
631     div.appendChild(a);\r
632     div.className = "toclevel" + entry.toclevel;\r
633     toc.appendChild(div);\r
634   }\r
635   if (entries.length == 0)\r
636     toc.parentNode.removeChild(toc);\r
637 },\r
638 \r
639 \r
640 /////////////////////////////////////////////////////////////////////\r
641 // Footnotes generator\r
642 /////////////////////////////////////////////////////////////////////\r
643 \r
644 /* Based on footnote generation code from:\r
645  * http://www.brandspankingnew.net/archive/2005/07/format_footnote.html\r
646  */\r
647 \r
648 footnotes: function () {\r
649   // Delete existing footnote entries in case we're reloading the footnodes.\r
650   var i;\r
651   var noteholder = document.getElementById("footnotes");\r
652   if (!noteholder) {\r
653     return;\r
654   }\r
655   var entriesToRemove = [];\r
656   for (i = 0; i < noteholder.childNodes.length; i++) {\r
657     var entry = noteholder.childNodes[i];\r
658     if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote")\r
659       entriesToRemove.push(entry);\r
660   }\r
661   for (i = 0; i < entriesToRemove.length; i++) {\r
662     noteholder.removeChild(entriesToRemove[i]);\r
663   }\r
664 \r
665   // Rebuild footnote entries.\r
666   var cont = document.getElementById("content");\r
667   var spans = cont.getElementsByTagName("span");\r
668   var refs = {};\r
669   var n = 0;\r
670   for (i=0; i<spans.length; i++) {\r
671     if (spans[i].className == "footnote") {\r
672       n++;\r
673       var note = spans[i].getAttribute("data-note");\r
674       if (!note) {\r
675         // Use [\s\S] in place of . so multi-line matches work.\r
676         // Because JavaScript has no s (dotall) regex flag.\r
677         note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1];\r
678         spans[i].innerHTML =\r
679           "[<a id='_footnoteref_" + n + "' href='#_footnote_" + n +\r
680           "' title='View footnote' class='footnote'>" + n + "</a>]";\r
681         spans[i].setAttribute("data-note", note);\r
682       }\r
683       noteholder.innerHTML +=\r
684         "<div class='footnote' id='_footnote_" + n + "'>" +\r
685         "<a href='#_footnoteref_" + n + "' title='Return to text'>" +\r
686         n + "</a>. " + note + "</div>";\r
687       var id =spans[i].getAttribute("id");\r
688       if (id != null) refs["#"+id] = n;\r
689     }\r
690   }\r
691   if (n == 0)\r
692     noteholder.parentNode.removeChild(noteholder);\r
693   else {\r
694     // Process footnoterefs.\r
695     for (i=0; i<spans.length; i++) {\r
696       if (spans[i].className == "footnoteref") {\r
697         var href = spans[i].getElementsByTagName("a")[0].getAttribute("href");\r
698         href = href.match(/#.*/)[0];  // Because IE return full URL.\r
699         n = refs[href];\r
700         spans[i].innerHTML =\r
701           "[<a href='#_footnote_" + n +\r
702           "' title='View footnote' class='footnote'>" + n + "</a>]";\r
703       }\r
704     }\r
705   }\r
706 },\r
707 \r
708 install: function(toclevels) {\r
709   var timerId;\r
710 \r
711   function reinstall() {\r
712     asciidoc.footnotes();\r
713     if (toclevels) {\r
714       asciidoc.toc(toclevels);\r
715     }\r
716   }\r
717 \r
718   function reinstallAndRemoveTimer() {\r
719     clearInterval(timerId);\r
720     reinstall();\r
721   }\r
722 \r
723   timerId = setInterval(reinstall, 500);\r
724   if (document.addEventListener)\r
725     document.addEventListener("DOMContentLoaded", reinstallAndRemoveTimer, false);\r
726   else\r
727     window.onload = reinstallAndRemoveTimer;\r
728 }\r
729 \r
730 }\r
731 asciidoc.install(2);\r
732 /*]]>*/\r
733 </script>\r
734 </head>\r
735 <body class="article">\r
736 <div id="header">\r
737 <h1>grml-live(8)</h1>\r
738 <div id="toc">
739   <div id="toctitle">Table of Contents</div>
740   <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
741 </div>\r
742 </div>\r
743 <div id="content">\r
744 <div class="sect1">\r
745 <h2 id="_name">1. Name</h2>\r
746 <div class="sectionbody">\r
747 <div class="paragraph"><p>grml-live - build framework based on FAI for generating a Grml and Debian based\r
748 Linux Live system (CD/ISO)</p></div>\r
749 </div>\r
750 </div>\r
751 <div class="sect1">\r
752 <h2 id="_synopsis">2. Synopsis</h2>\r
753 <div class="sectionbody">\r
754 <div class="paragraph"><p>grml-live [-a &lt;architecture&gt;] [-c &lt;classe[s]&gt;] [-C &lt;configfile&gt;] [\r
755 -e &lt;extract_iso_name&gt;] [-g &lt;grml_name&gt;] [-i &lt;iso_name&gt;] [\r
756 -o &lt;output_directory&gt;] [-r &lt;release_name&gt;] [-s &lt;suite&gt;] [\r
757 -t &lt;template_directory&gt;] [-v &lt;version_number&gt;] [-U &lt;username&gt;] [\r
758 -w &lt;date&gt;] [-AbBFnNqQuVz]</p></div>\r
759 </div>\r
760 </div>\r
761 <div class="sect1">\r
762 <h2 id="_description">3. Description</h2>\r
763 <div class="sectionbody">\r
764 <div class="paragraph"><p>grml-live provides the build system for creating a Grml and Debian based Linux\r
765 Live-CD. The build system is based on\r
766 <a href="http://fai-project.org/">FAI</a> (Fully Automatic\r
767 Installation). grml-live uses the "fai dirinstall" feature to generate a chroot\r
768 system based on the class concept of FAI (see later sections for further\r
769 details) and provides the framework to be able to generate a full-featured ISO.\r
770 It does not use all the FAI features by default though and you don&#8217;t have to\r
771 know FAI to be able to use it.</p></div>\r
772 <div class="paragraph"><p>The use of FAI gives you the flexibility to choose the packages you would like\r
773 to include on your very own Linux Live-CD without having to deal with all the\r
774 details of a build process.</p></div>\r
775 <div class="admonitionblock">\r
776 <table><tr>\r
777 <td class="icon">\r
778 <img src="./images/icons/caution.png" alt="Caution" />\r
779 </td>\r
780 <td class="content">grml-live does <strong>not</strong> use /etc/fai for configuration but instead\r
781 (unless overridden using the <em>'-D</em>' option). This ensures that it does not clash\r
782 with default FAI configuration and packages, so you can use grml-live and FAI\r
783 completely independent at the same time!</td>\r
784 </tr></table>\r
785 </div>\r
786 <div class="admonitionblock">\r
787 <table><tr>\r
788 <td class="icon">\r
789 <img src="./images/icons/note.png" alt="Note" />\r
790 </td>\r
791 <td class="content">Please notice that you should have a fast network connection as all the Debian\r
792 packages will be downloaded and installed via network. If you want to use a\r
793 local mirror (strongly recommended if you plan to use grml-live more than once)\r
794 checkout debmirror(1), reprepro(1) (see /usr/share/doc/grml-live/examples/reprepro/ for a\r
795 sample configuration), apt-cacher(1) and approx(8). To avoid downloading the\r
796 base system again and again check out <a href="#create-a-base-tgz">the base tar.gz feature</a>.</td>\r
797 </tr></table>\r
798 </div>\r
799 </div>\r
800 </div>\r
801 <div class="sect1">\r
802 <h2 id="_options">4. Options</h2>\r
803 <div class="sectionbody">\r
804 <div class="dlist"><dl>\r
805 <dt class="hdlist1">\r
806 -A\r
807 </dt>\r
808 <dd>\r
809 <p>\r
810 Clean up all output directories before running the build process. After finishing,\r
811 clean up the Chroot target and Build target directories.\r
812 </p>\r
813 </dd>\r
814 <dt class="hdlist1">\r
815 -a <strong>ARCHITECTURE</strong>\r
816 </dt>\r
817 <dd>\r
818 <p>\r
819 Use the specified architecture instead of the currently running one.  This\r
820 allows building a 32bit system on a 64bit host (though you can&#8217;t build a 64bit\r
821 system on a 32bit system/kernel of course). Please notice that real\r
822 crosscompiling (like building a ppc system on x86) isn&#8217;t possible due to the\r
823 nature and the need of working in a chroot. Currently supported values: i386\r
824 and amd64.\r
825 </p>\r
826 </dd>\r
827 <dt class="hdlist1">\r
828 -b\r
829 </dt>\r
830 <dd>\r
831 <p>\r
832 Build the ISO without updating the chroot via FAI. This option is useful for\r
833 example when working on stable releases: if you have a working base\r
834 system/chroot and do not want to execute any further updates (via "-u" option)\r
835 but intend to only build the ISO.\r
836 </p>\r
837 </dd>\r
838 <dt class="hdlist1">\r
839 -B\r
840 </dt>\r
841 <dd>\r
842 <p>\r
843 Build the ISO without touching the chroot at all. This option is useful if\r
844 you modified anything that FAI or grml-live might adjust via Grml&#8217;s FAI\r
845 scripts.  It&#8217;s like the <em>-b</em> option but even more advanced. Use only if you\r
846 really know that you do not want to update the chroot.\r
847 </p>\r
848 </dd>\r
849 <dt class="hdlist1">\r
850 -c <strong>CLASSES</strong>\r
851 </dt>\r
852 <dd>\r
853 <p>\r
854 Specify the CLASSES to be used for building the ISO via FAI.  By default only\r
855 the classes GRMLBASE, GRML_FULL and I386/AMD64 (depending on system\r
856 architecture) are assumed.  Additionally you can specify a class providing a\r
857 (grml-)kernel (see <a href="#classes">the <em>CLASSES</em> section in this document</a> for\r
858 details about available classes). So instead of GRML_FULL you can also use e.g.\r
859 GRML_SMALL.\r
860 </p>\r
861 </dd>\r
862 </dl></div>\r
863 <div class="admonitionblock">\r
864 <table><tr>\r
865 <td class="icon">\r
866 <img src="./images/icons/important.png" alt="Important" />\r
867 </td>\r
868 <td class="content">All class names should be written in uppercase letters. Do not use a dash, use\r
869 an underscore. So do not use "amd64" but "AMD64", do not use "FOO BAR" but\r
870 "FOO_BAR".</td>\r
871 </tr></table>\r
872 </div>\r
873 <div class="dlist"><dl>\r
874 <dt class="hdlist1">\r
875 -C <strong>CONFIGURATION_FILE</strong>\r
876 </dt>\r
877 <dd>\r
878 <p>\r
879 The specified file is used as configuration file for grml-live. By default\r
880 /etc/grml/grml-live.conf is used as default configuration. If a file named\r
881 /etc/grml/grml-live.local exists it is used as well (sourced after reading\r
882 /etc/grml/grml-live.conf meant as main file for local configuration). As a last\r
883 option the specified configuration file is sourced so it is possible to override\r
884 settings of /etc/grml/grml-live.conf as well as of /etc/grml/grml-live.local.\r
885 Please notice that all configuration files have to be adjusted during execution\r
886 of grml-live, so please make sure you use /etc/grml/grml-live.conf as a base for\r
887 your own configuration file (usually /etc/grml/grml-live.local). Please also\r
888 notice that the configuration file specified via this option is <strong>not</strong> (yet)\r
889 /etc/grml/grml-live.local for configuration stuff used inside\r
890 </p>\r
891 </dd>\r
892 <dt class="hdlist1">\r
893 -d <strong>DATE</strong>\r
894 </dt>\r
895 <dd>\r
896 <p>\r
897 Use specified date as build date information on the ISO instead of the default.\r
898 The default is the date when grml-live is being executed (retrieved via\r
899 executing <em>date +%Y-%m-%d</em>). The information is stored inside the file\r
900 /GRML/grml-version on the ISO, /etc/grml_version in the squashfs file and in all\r
901 the bootsplash related files. This option is useful if you want to provide an\r
902 ISO with release information for a specific date but have to build it in\r
903 advance. Usage example: <em>-d 2009-10-30</em>\r
904 </p>\r
905 </dd>\r
906 <dt class="hdlist1">\r
907 -D <strong>CONFIGURATION_DIRECTORY</strong>\r
908 </dt>\r
909 <dd>\r
910 <p>\r
911 The specified directory is used as configuration directory for grml-live and its\r
912 FAI. By default /etc/grml/fai is used as default configuration directory.  If\r
913 you want to have different configuration scripts, package definitions, etc. with\r
914 without messing with the global configuration under /etc/grml/fai provided by\r
915 grml-live this option provides you the option to use your own configuration\r
916 throughout this documentation.\r
917 </p>\r
918 </dd>\r
919 <dt class="hdlist1">\r
920 -e <strong>EXTRACT_ISO_NAME</strong>\r
921 </dt>\r
922 <dd>\r
923 <p>\r
924 The squashfs inside the specified ISO will be extracted and used as the chroot.\r
925 This option is useful for remastering, in combination with -A and -b or -u.\r
926 </p>\r
927 </dd>\r
928 <dt class="hdlist1">\r
929 -F\r
930 </dt>\r
931 <dd>\r
932 <p>\r
933 Force execution and do not prompt for acknowledgment of configuration.\r
934 </p>\r
935 </dd>\r
936 <dt class="hdlist1">\r
937 -g <strong>GRML_NAME</strong>\r
938 </dt>\r
939 <dd>\r
940 <p>\r
941 Set the grml flavour name. Common usage examples: grml, grml-small, grml64.\r
942 Please do NOT use blanks and any special characters like <em>/</em>, <em>;</em> inside\r
943 GRML_NAME, otherwise you might notice problems while booting.\r
944 </p>\r
945 </dd>\r
946 <dt class="hdlist1">\r
947 -h\r
948 </dt>\r
949 <dd>\r
950 <p>\r
951 Display short usage information and exit.\r
952 </p>\r
953 </dd>\r
954 <dt class="hdlist1">\r
955 -i <strong>ISO_NAME</strong>\r
956 </dt>\r
957 <dd>\r
958 <p>\r
959 Specify name of ISO which will be available inside $OUTPUT_DIRECTORY/grml_isos\r
960 by default.\r
961 </p>\r
962 </dd>\r
963 <dt class="hdlist1">\r
964 -I <strong>CHROOT_INSTALL</strong>\r
965 </dt>\r
966 <dd>\r
967 <p>\r
968 Specify name of source directory which provides files that should become part of\r
969 the chroot/ISO. Not enabled by default. Note: the files are installed under <em>/</em>\r
970 in the chroot so you have to create the rootfs structure on your own.\r
971 </p>\r
972 </dd>\r
973 <dt class="hdlist1">\r
974 -n\r
975 </dt>\r
976 <dd>\r
977 <p>\r
978 Skip creation of the ISO file. This option is useful if you want to build/update\r
979 the chroot and/or recreate the squashfs file without building an ISO file.\r
980 </p>\r
981 </dd>\r
982 <dt class="hdlist1">\r
983 -N\r
984 </dt>\r
985 <dd>\r
986 <p>\r
987 Bootstrap the chroot without building bootloader, squashfs, or finalizing the\r
988 ISO. Use this option if installation of some packages fails, you want to run\r
989 custom commands or similar.\r
990 The main use of this option is to save time by skipping stages which aren&#8217;t\r
991 necessary for bootstrapping the chroot and which would get executed more than\r
992 once when iterating through the initial bootstrapping.\r
993 Alternatively, use this option as a test run of grml-live. Once you are\r
994 satisfied with the state of your grml_chroot, use grml-live <strong>-u</strong> to build the\r
995 remaining stages and finalize the ISO.\r
996 </p>\r
997 </dd>\r
998 <dt class="hdlist1">\r
999 -o <strong>OUTPUT_DIRECTORY</strong>\r
1000 </dt>\r
1001 <dd>\r
1002 <p>\r
1003 Main output directory of the build process of FAI.  Some directories are created\r
1004 inside this target directory, being: grml_cd (where the files for creating the\r
1005 ISO are located, including the compressed squashfs file), grml_chroot (the\r
1006 chroot system) and grml_isos (where the resulting ISO is stored).\r
1007 </p>\r
1008 </dd>\r
1009 <dt class="hdlist1">\r
1010 -q\r
1011 </dt>\r
1012 <dd>\r
1013 <p>\r
1014 Build the ISO without (re-)creating the squashfs compressed file using mksquashfs.\r
1015 This option is useful if you just want to update parts outside the chroot in the ISO.\r
1016 Consider combining this option with the build-only option <em>-b</em>.\r
1017 </p>\r
1018 </dd>\r
1019 <dt class="hdlist1">\r
1020 -Q\r
1021 </dt>\r
1022 <dd>\r
1023 <p>\r
1024 Build the ISO without generating a netboot package.\r
1025 </p>\r
1026 </dd>\r
1027 <dt class="hdlist1">\r
1028 -r <strong>RELEASENAME</strong>\r
1029 </dt>\r
1030 <dd>\r
1031 <p>\r
1032 Specify name of the release.\r
1033 </p>\r
1034 </dd>\r
1035 <dt class="hdlist1">\r
1036 -s <strong>SUITE</strong>\r
1037 </dt>\r
1038 <dd>\r
1039 <p>\r
1040 Specify the Debian suite you want to use for your live-system. If unset defaults\r
1041 to "testing". Supported values are: stable, testing, unstable (or their\r
1042 corresponding release names like "stretch"). Please be aware that recent Debian\r
1043 suites might require a recent base.tgz\r
1044 debootstrap.\r
1045 </p>\r
1046 </dd>\r
1047 <dt class="hdlist1">\r
1048 -t <strong>TEMPLATE_DIRECTORY</strong>\r
1049 </dt>\r
1050 <dd>\r
1051 <p>\r
1052 Specify place of the templates used for building the ISO. By default\r
1053 (and if not manually specified) this is /usr/share/grml-live/templates/.\r
1054 </p>\r
1055 </dd>\r
1056 <dt class="hdlist1">\r
1057 -u\r
1058 </dt>\r
1059 <dd>\r
1060 <p>\r
1061 Update existing chroot instead of rebuilding it from scratch. This option is\r
1062 based on the softupdate feature of FAI.\r
1063 </p>\r
1064 </dd>\r
1065 <dt class="hdlist1">\r
1066 -U <strong>USERNAME</strong>\r
1067 </dt>\r
1068 <dd>\r
1069 <p>\r
1070 Sets ownership of all build output files to specified username before exiting.\r
1071 </p>\r
1072 </dd>\r
1073 <dt class="hdlist1">\r
1074 -v <strong>VERSION_NUMBER</strong>\r
1075 </dt>\r
1076 <dd>\r
1077 <p>\r
1078 Specify version number of the release.\r
1079 </p>\r
1080 </dd>\r
1081 <dt class="hdlist1">\r
1082 -V\r
1083 </dt>\r
1084 <dd>\r
1085 <p>\r
1086 Increase verbosity in the build process.\r
1087 </p>\r
1088 </dd>\r
1089 <dt class="hdlist1">\r
1090 -w <strong>DATE</strong>\r
1091 </dt>\r
1092 <dd>\r
1093 <p>\r
1094 The wayback machine. Build the system using Debian archives from the specified\r
1095 date.  Valid date formats are yyyymmddThhmmssZ or simply yyyymmdd.  To learn\r
1096 which snapshots exist, i.e. which date strings are valid, simply browse the\r
1097 lists on <a href="http://snapshot.debian.org/">http://snapshot.debian.org/</a>.  If there is no import at the exact time\r
1098 you specified you will get the latest available timestamp which is before the\r
1099 time you specified.\r
1100 This option is useful especially for release and debugging builds - for example\r
1101 if you know that the Debian archive was in a good state on a specific date but\r
1102 you want to build it on another day in the future, where the archive might not\r
1103 be as needed anymore. Please be aware that this is restricted to the plain\r
1104 Debian repositories only, as referred to in /etc/apt/sources.list.d/debian.list\r
1105 (so neither the Grml repositories nor any further custom ones are affected by\r
1106 the wayback machine).\r
1107 </p>\r
1108 </dd>\r
1109 <dt class="hdlist1">\r
1110 -z\r
1111 </dt>\r
1112 <dd>\r
1113 <p>\r
1114 Use ZLIB instead of LZMA/XZ compression in mksquashfs part of the build process.\r
1115 </p>\r
1116 </dd>\r
1117 </dl></div>\r
1118 </div>\r
1119 </div>\r
1120 <div class="sect1">\r
1121 <h2 id="usage-examples">5. Usage examples</h2>\r
1122 <div class="sectionbody">\r
1123 <div class="paragraph"><p>To get a Debian-stable and Grml-based Live-CD using ./grml\r
1124 as build and output directory just run:</p></div>\r
1125 <div class="literalblock">\r
1126 <div class="content">\r
1127 <pre><code># grml-live</code></pre>\r
1128 </div></div>\r
1129 <div class="paragraph"><p>To get a 64bit Debian-testing and grml-small based Live-CD using /srv/grml-live\r
1130 as build and output directory use the following command line on your amd64\r
1131 system:</p></div>\r
1132 <div class="literalblock">\r
1133 <div class="content">\r
1134 <pre><code># grml-live -s testing -c GRMLBASE,GRML_SMALL,AMD64 -o /srv/grml-live</code></pre>\r
1135 </div></div>\r
1136 <div class="admonitionblock">\r
1137 <table><tr>\r
1138 <td class="icon">\r
1139 <img src="./images/icons/note.png" alt="Note" />\r
1140 </td>\r
1141 <td class="content">If you have enough RAM, just run "mount -t tmpfs none /media/ramdisk" to get a\r
1142 tmpfs ("RAMDISK"), and use /media/ramdisk as build and output directory - this\r
1143 results in a very fast build process. Note that these files will be gone when\r
1144 rebooting.</td>\r
1145 </tr></table>\r
1146 </div>\r
1147 </div>\r
1148 </div>\r
1149 <div class="sect1">\r
1150 <h2 id="main-features">6. Main features of grml-live</h2>\r
1151 <div class="sectionbody">\r
1152 <div class="ulist"><ul>\r
1153 <li>\r
1154 <p>\r
1155 create a Grml-/Debian-based Linux Live-CD with one single command\r
1156 </p>\r
1157 </li>\r
1158 <li>\r
1159 <p>\r
1160 class based concept, providing a maximum of flexibility\r
1161 </p>\r
1162 </li>\r
1163 <li>\r
1164 <p>\r
1165 supports integration of own hooks, scripts and configuration\r
1166 </p>\r
1167 </li>\r
1168 <li>\r
1169 <p>\r
1170 supports use and integration of own Software and/or Kernels via simple use of\r
1171 Debian repositories\r
1172 </p>\r
1173 </li>\r
1174 <li>\r
1175 <p>\r
1176 native support of FAI features\r
1177 </p>\r
1178 </li>\r
1179 </ul></div>\r
1180 </div>\r
1181 </div>\r
1182 <div class="sect1">\r
1183 <h2 id="class-concept">7. The class concept</h2>\r
1184 <div class="sectionbody">\r
1185 <div class="paragraph"><p>grml-live uses FAI and its class based concept for adjusting configuration and\r
1186 setup according to your needs. This gives you flexibility and strength without\r
1187 losing the simplicity in the build process.</p></div>\r
1188 <div class="paragraph"><p>The main and base class provided by grml-live is named GRMLBASE. It&#8217;s strongly\r
1189 recommended to <strong>always</strong> use the class GRMLBASE when building an ISO using\r
1190 grml-live, as well as the architecture dependent class which provides the kernel\r
1191 (being <em>I386</em> for x86_32 and <em>AMD64</em> for x86_64) and a GRML_* class (like\r
1192 GRML_SMALL or GRML_FULL). The following files and directories are\r
1193 relevant for class GRMLBASE by default:</p></div>\r
1194 <div class="literalblock">\r
1195 <div class="content">\r
1196 <pre><code>${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/\r
1197 ${GRML_FAI_CONFIG}/config/debconf/GRMLBASE\r
1198 ${GRML_FAI_CONFIG}/config/class/GRMLBASE.var\r
1199 ${GRML_FAI_CONFIG}/config/hooks/instsoft.GRMLBASE\r
1200 ${GRML_FAI_CONFIG}/config/package_config/GRMLBASE</code></pre>\r
1201 </div></div>\r
1202 <div class="paragraph"><p>Take a look at the next section for information about the concept of those\r
1203 files/directories.</p></div>\r
1204 <div class="paragraph"><p>If you want to use your own configuration, extend an existing configuration\r
1205 and/or add additional packages to your ISO just invent a new class (or extend an\r
1206 existing one). For example if you want to use your own class named "FOOBAR" just\r
1207 set CLASSES="GRMLBASE,GRML_SMALL,AMD64,FOOBAR" inside /etc/grml/grml-live.local\r
1208 or invoke grml-live using the classes option: "grml-live -c\r
1209 GRMLBASE,GRML_SMALL,AMD64,FOOBAR &#8230;".</p></div>\r
1210 <div class="paragraph"><p>More details regarding the class concept can be found in the documentation of\r
1211 FAI itself (being available at /usr/share/doc/fai-doc/).</p></div>\r
1212 </div>\r
1213 </div>\r
1214 <div class="sect1">\r
1215 <h2 id="classes">8. Available classes</h2>\r
1216 <div class="sectionbody">\r
1217 <div class="paragraph"><p>The package selection part of the classes can be found in\r
1218 selected. The following classes are predefined:</p></div>\r
1219 <div class="ulist"><ul>\r
1220 <li>\r
1221 <p>\r
1222 DEBORPHAN: get rid of all packages listed in output of deborphan\r
1223 </p>\r
1224 </li>\r
1225 <li>\r
1226 <p>\r
1227 FILE_RC: instead of using systemd as init system use file-rc instead. file-rc\r
1228 was the init system used by Grml until and including stable release 2014.11,\r
1229 starting with beginning of 2016 Grml switched to systemd instead. If you want to\r
1230 build a live system in the old style using file-rc instead of systemd then enable\r
1231 this class. Please notice that support for file-rc is no longer being actively\r
1232 maintained (the Grml team happily accepts patches though) and file-rc (upstream\r
1233 wise) might disappear too.\r
1234 </p>\r
1235 </li>\r
1236 <li>\r
1237 <p>\r
1238 FRESHCLAM: execute freshclam (if it&#8217;s present) to update clamav definitions\r
1239 (increases resulting ISO size ~70MB). By default it&#8217;s skipped to avoid bigger\r
1240 ISO size.\r
1241 </p>\r
1242 </li>\r
1243 <li>\r
1244 <p>\r
1245 GRMLBASE: the main class responsible for getting a minimal subset of what&#8217;s\r
1246 defining a Grml system. Important parts of the buildprocess are specified in\r
1247 this class as well, so unless you have a really good reason you should always\r
1248 use this class. Please be aware that using <strong>just</strong> the GRMLBASE class won&#8217;t be\r
1249 enough, because the kernel packages (e.g. linux-image-i386-grml<br />\r
1250 linux-image-amd64-grml) are chosen in further GRML_* classes (to provide maximum\r
1251 flexibility with kernel selection). If you don&#8217;t want to use the existing\r
1252 GRML_FULL or GRML_SMALL classes, define your own CLASS file choosing the kernel\r
1253 package you want to use (and don&#8217;t forget to include your CLASS in the arguments\r
1254 of grml-live&#8217;s -c&#8230; command line option).\r
1255 </p>\r
1256 </li>\r
1257 <li>\r
1258 <p>\r
1259 GRML_FULL: full featured Grml, also known as the "normal", full grml as\r
1260 introduced in December 2011 (~600MB ISO size).\r
1261 </p>\r
1262 </li>\r
1263 <li>\r
1264 <p>\r
1265 GRML_SMALL: minimum sized Grml version, known as grml-small (~300MB ISO\r
1266 size).\r
1267 </p>\r
1268 </li>\r
1269 <li>\r
1270 <p>\r
1271 LATEX: LaTeX(-related) packages like auctex, texlive,&#8230;\r
1272 (which used to be shipped by grml before the LaTeX removal)\r
1273 </p>\r
1274 </li>\r
1275 <li>\r
1276 <p>\r
1277 LATEX_CLEANUP: get rid of several very large LaTeX directories\r
1278 (like some /usr/share/doc/texlive-*, /usr/share/doc/texmf,&#8230;)\r
1279 </p>\r
1280 </li>\r
1281 <li>\r
1282 <p>\r
1283 LOCALES: use full featured locales setup (see /etc/locale.gen.grml). This\r
1284 avoids to get rid of /usr/share/locale - which happens by default otherwise - as\r
1285 well.\r
1286 </p>\r
1287 </li>\r
1288 <li>\r
1289 <p>\r
1290 NO_ONLINE: do not run scripts during the chroot build process which require a\r
1291 network connection\r
1292 </p>\r
1293 </li>\r
1294 <li>\r
1295 <p>\r
1296 RELEASE: run some specific scripts and commands to provide the workflow for an\r
1297 official grml release\r
1298 </p>\r
1299 </li>\r
1300 <li>\r
1301 <p>\r
1302 REMOVE_DOCS: get rid of documentation directories (like /usr/share/doc,\r
1303 /usr/share/man/, /usr/share/info,&#8230;)\r
1304 </p>\r
1305 </li>\r
1306 <li>\r
1307 <p>\r
1308 SOURCES: retrieve Debian source packages after installation. Files will be\r
1309 placed in the output directory under grml_sources.\r
1310 </p>\r
1311 </li>\r
1312 <li>\r
1313 <p>\r
1314 XORG: providing important packages for use with a base grml-featured X.org\r
1315 setup\r
1316 </p>\r
1317 </li>\r
1318 </ul></div>\r
1319 </div>\r
1320 </div>\r
1321 <div class="sect1">\r
1322 <h2 id="files">9. Files</h2>\r
1323 <div class="sectionbody">\r
1324 <div class="paragraph"><p>Notice that grml-live ships FAI configuration files that do not use the same\r
1325 namespace as the FAI packages itself. This ensures that grml-live does not clash\r
1326 with your usual FAI configuration, so instead of /etc/fai/fai.conf (package\r
1327 below. To get an idea how another configuration or example files could look like\r
1328 check out /usr/share/doc/fai-doc/examples/simple/ (provided by Debian package\r
1329 fai-doc). Furthermore /usr/share/doc/fai-doc/fai-guide.html/ch-config.html\r
1330 provides documentation regarding configuration possibilities.</p></div>\r
1331 <div class="literalblock">\r
1332 <div class="content">\r
1333 <pre><code>/usr/sbin/grml-live</code></pre>\r
1334 </div></div>\r
1335 <div class="paragraph"><p>Script for the main build process. Requires root permissions for execution.</p></div>\r
1336 <div class="literalblock">\r
1337 <div class="content">\r
1338 <pre><code>/etc/grml/grml-live.conf</code></pre>\r
1339 </div></div>\r
1340 <div class="paragraph"><p>Main configuration file for grml-live which should be considered as a reference\r
1341 configuration file only. Please use /etc/grml/grml-live.local for local\r
1342 configuration instead.</p></div>\r
1343 <div class="literalblock">\r
1344 <div class="content">\r
1345 <pre><code>/etc/grml/grml-live.local</code></pre>\r
1346 </div></div>\r
1347 <div class="paragraph"><p>All the local configuration should go to this file. This file overrides any\r
1348 defaults of grml-live. Configurations via /etc/grml/grml-live.local are preferred\r
1349 over the ones from /etc/grml/grml-live.conf. If you want to override settings\r
1350 from /etc/grml/grml-live.local as well you have to specify them on the grml-live\r
1351 commandline.</p></div>\r
1352 <div class="literalblock">\r
1353 <div class="content">\r
1354 <pre><code>${GRML_FAI_CONFIG}/fai.conf</code></pre>\r
1355 </div></div>\r
1356 <div class="paragraph"><p>Main configuration file for FAI which specifies where all the configuration\r
1357 files and scripts for FAI/grml-live can be found. By default the configuration\r
1358 variables are FAI_CONFIG_SRC=file:///etc/grml/fai/config and\r
1359 GRML_FAI_CONFIG=/etc/grml/fai/config - both pointing to a directory shipped by\r
1360 grml-live out-of-the-box so you shouldn&#8217;t have to configure anything in this\r
1361 file.</p></div>\r
1362 <div class="literalblock">\r
1363 <div class="content">\r
1364 <pre><code>${GRML_FAI_CONFIG}/config/</code></pre>\r
1365 </div></div>\r
1366 <div class="paragraph"><p>The main directory for configuration of FAI/grml-live. More details below.</p></div>\r
1367 <div class="literalblock">\r
1368 <div class="content">\r
1369 <pre><code>${GRML_FAI_CONFIG}/config/class/</code></pre>\r
1370 </div></div>\r
1371 <div class="paragraph"><p>This directory contains files which specify main configuration variables for the\r
1372 FAI classes.</p></div>\r
1373 <div class="literalblock">\r
1374 <div class="content">\r
1375 <pre><code>${GRML_FAI_CONFIG}/config/debconf/</code></pre>\r
1376 </div></div>\r
1377 <div class="paragraph"><p>This directory provides the files for preseeding/configuration of debconf\r
1378 through files.</p></div>\r
1379 <div class="literalblock">\r
1380 <div class="content">\r
1381 <pre><code>${GRML_FAI_CONFIG}/config/hooks/</code></pre>\r
1382 </div></div>\r
1383 <div class="paragraph"><p>This directory provides files for customising the build process through hooks.\r
1384 Hooks are user defined programs or scripts, which are called during the\r
1385 installation process.</p></div>\r
1386 <div class="literalblock">\r
1387 <div class="content">\r
1388 <pre><code>${GRML_FAI_CONFIG}/config/package_config/</code></pre>\r
1389 </div></div>\r
1390 <div class="paragraph"><p>Directory with lists of software packages to be installed or removed.  The\r
1391 different classes describe what should find its way to your ISO.  When running\r
1392 "grml-live -c GRMLBASE,GRML_SMALL,AMD64 &#8230;" only the configuration of GRMLBASE,\r
1393 GRML_SMALL and AMD64 will be taken. If you use <em>grml-live -c\r
1394 GRMLBASE,GRML_SMALL,AMD64,FOOBAR &#8230;</em> then the files of GRMLBASE, GRML_SMALL,\r
1395 AMD64 <strong>plus</strong> the files from FOOBAR will be taken. So just create a new class to\r
1396 adjust the package selection according to your needs.  Please notice that the\r
1397 directory GRMLBASE contains a package list defining a minimum but still\r
1398 reasonable package configuration.</p></div>\r
1399 <div class="literalblock">\r
1400 <div class="content">\r
1401 <pre><code>${GRML_FAI_CONFIG}/config/scripts/</code></pre>\r
1402 </div></div>\r
1403 <div class="paragraph"><p>Scripts for customising the ISO within the build process.</p></div>\r
1404 <div class="literalblock">\r
1405 <div class="content">\r
1406 <pre><code>${GRML_FAI_CONFIG}/live-initramfs/</code></pre>\r
1407 </div></div>\r
1408 <div class="paragraph"><p>This directory provides the files used for building the initramfs/initrd via\r
1409 live-initramfs(8).</p></div>\r
1410 </div>\r
1411 </div>\r
1412 <div class="sect1">\r
1413 <h2 id="log-files">10. Available log files</h2>\r
1414 <div class="sectionbody">\r
1415 <div class="paragraph"><p>Starting with grml-live version 0.17.0 you should find log files in a directory\r
1416 named <em>grml_logs</em> in the output directory (next to grml_isos, grml_chroot,&#8230;).</p></div>\r
1417 <div class="paragraph"><p>grml-live versions before 0.17.0 used to log into /var/log/grml-live.log\r
1418 and /var/log/fai/grml.</p></div>\r
1419 </div>\r
1420 </div>\r
1421 <div class="sect1">\r
1422 <h2 id="requirements">11. Requirements for the build system</h2>\r
1423 <div class="sectionbody">\r
1424 <div class="ulist"><ul>\r
1425 <li>\r
1426 <p>\r
1427 any Debian based system should be sufficient (if it doesn&#8217;t work it&#8217;s a bug,\r
1428 please send us a bug report then). Check out <a href="#deploy-on-debian">How do I deploy grml-live on a plain Debian installation</a> for details how to set up grml-live\r
1429 on a plain, original Debian system.\r
1430 </p>\r
1431 </li>\r
1432 <li>\r
1433 <p>\r
1434 enough free disk space; at least 1.5GB are required for a minimal grml-live\r
1435 run (~850MB for the chroot [$CHROOT_OUTPUT], ~300MB for the build target\r
1436 [$BUILD_OUTPUT], ~30MB for the netboot files and \~300MB for the resulting ISO\r
1437 [$ISO_OUTPUT] plus some temporary files), if you plan to use GRML_FULL you\r
1438 should have at least 4GB of total free disk space\r
1439 </p>\r
1440 </li>\r
1441 <li>\r
1442 <p>\r
1443 fast network access for retrieving the Debian packages used for creating the\r
1444 chroot (check out "local mirror" to workaround this problem as far as possible)\r
1445 </p>\r
1446 </li>\r
1447 </ul></div>\r
1448 <div class="paragraph"><p>For further information see next section.</p></div>\r
1449 </div>\r
1450 </div>\r
1451 <div class="sect1">\r
1452 <h2 id="current_state">12. Current state of grml-live with squashfs-tools and kernel</h2>\r
1453 <div class="sectionbody">\r
1454 <div class="paragraph"><p>Use squashfs-tools &gt;=4.2-1 to build Grml (based) ISOs featuring kernel version\r
1455 2.6.38-grml[64] or newer.</p></div>\r
1456 </div>\r
1457 </div>\r
1458 <div class="sect1">\r
1459 <h2 id="faq">13. FAQ</h2>\r
1460 <div class="sectionbody">\r
1461 <div class="sect2">\r
1462 <h3 id="deploy-on-debian">13.1. How do I deploy grml-live on a plain Debian installation?</h3>\r
1463 <div class="paragraph"><p>The easiest way to get a running grml-live setup is to just use Grml.\r
1464 Of course using grml-live on a plain, original Debian installation is supported\r
1465 as well. So there we go.</p></div>\r
1466 <div class="paragraph"><p>What we have: plain, original Debian stretch (9.x).</p></div>\r
1467 <div class="paragraph"><p>What we want: build a Grml ISO based on Debian/stretch for the amd64 architecture\r
1468 using grml-live.</p></div>\r
1469 <div class="sect3">\r
1470 <h4 id="_instructions">13.1.1. Instructions</h4>\r
1471 <div class="literalblock">\r
1472 <div class="content">\r
1473 <pre><code># adjust sources.list:\r
1474 cat &gt;&gt; /etc/apt/sources.list &lt;&lt; EOF</code></pre>\r
1475 </div></div>\r
1476 <div class="literalblock">\r
1477 <div class="content">\r
1478 <pre><code># grml stable repository:\r
1479   deb     http://deb.grml.org/ grml-stable  main\r
1480 # deb-src http://deb.grml.org/ grml-stable  main</code></pre>\r
1481 </div></div>\r
1482 <div class="literalblock">\r
1483 <div class="content">\r
1484 <pre><code># grml testing/development repository:\r
1485   deb     http://deb.grml.org/ grml-testing main\r
1486 # deb-src http://deb.grml.org/ grml-testing main\r
1487 EOF</code></pre>\r
1488 </div></div>\r
1489 <div class="literalblock">\r
1490 <div class="content">\r
1491 <pre><code># get keyring for apt:\r
1492 apt-get update\r
1493 apt-get --allow-unauthenticated install grml-debian-keyring</code></pre>\r
1494 </div></div>\r
1495 <div class="literalblock">\r
1496 <div class="content">\r
1497 <pre><code># optionally(!) install basefile so we don't have to build basic\r
1498 # chroot from scratch, grab from http://daily.grml.org/\r
1499 # mkdir -p /etc/grml/fai/config/basefiles/\r
1500 # mv I386.tar.gz /etc/grml/fai/config/basefiles/\r
1501 # mv AMD64.tar.gz /etc/grml/fai/config/basefiles/</code></pre>\r
1502 </div></div>\r
1503 <div class="literalblock">\r
1504 <div class="content">\r
1505 <pre><code># install relevant tools\r
1506 apt-get --no-install-recommends install grml-live</code></pre>\r
1507 </div></div>\r
1508 <div class="literalblock">\r
1509 <div class="content">\r
1510 <pre><code># adjust grml-live configuration for our needs:\r
1511 cat &gt; /etc/grml/grml-live.local &lt;&lt; EOF\r
1512 ## want a faster build process and don't need smaller ISOs?\r
1513 ## if so use zlib compression\r
1514 # SQUASHFS_OPTIONS="-comp gzip -b 256k"\r
1515 ## want to use a specific squashfs binary?\r
1516 # SQUASHFS_BINARY='/usr/bin/mksquashfs'\r
1517 ## install local files into the chroot\r
1518 # CHROOT_INSTALL="/etc/grml/fai/chroot_install"\r
1519 ## adjust if necessary (defaults to ./grml/):\r
1520 ## OUTPUT="/srv/grml-live"\r
1521 FAI_DEBOOTSTRAP="stretch http://ftp.debian.org/debian/"\r
1522 # ARCH="amd64"\r
1523 CLASSES="GRMLBASE,GRML_FULL,AMD64"\r
1524 EOF</code></pre>\r
1525 </div></div>\r
1526 <div class="literalblock">\r
1527 <div class="content">\r
1528 <pre><code># just optional(!) - upgrade FAI to latest available version:\r
1529 cat &gt;&gt; /etc/apt/sources.list.d/fai.list &lt;&lt; EOF\r
1530 deb     http://jenkins.grml.org/debian fai main\r
1531 deb-src http://jenkins.grml.org/debian fai main\r
1532 EOF</code></pre>\r
1533 </div></div>\r
1534 <div class="literalblock">\r
1535 <div class="content">\r
1536 <pre><code># get gpg key of FAI repos and install current FAI version:\r
1537 wget -O - http://jenkins.grml.org/debian/C525F56752D4A654.asc | sudo apt-key add -\r
1538 apt-get update\r
1539 apt-get install fai-client fai-server fai-doc</code></pre>\r
1540 </div></div>\r
1541 <div class="paragraph"><p>That&#8217;s it. Now invoking <em>grml-live -V</em> should build the ISO.  If everything\r
1542 worked as expected the last line of the shell output should look like:</p></div>\r
1543 <div class="literalblock">\r
1544 <div class="content">\r
1545 <pre><code>[*] Successfully finished execution of grml-live [running 687 seconds]</code></pre>\r
1546 </div></div>\r
1547 <div class="paragraph"><p>and the ISO can be found inside /grml-live/grml-live/grml_isos/ then.</p></div>\r
1548 </div>\r
1549 </div>\r
1550 <div class="sect2">\r
1551 <h3 id="grml_fai_config_variable">13.2. What is $GRML_FAI_CONFIG?</h3>\r
1552 <div class="paragraph"><p>The variable <em>$GRML_FAI_CONFIG</em> is pointing to the directory /etc/grml/fai by\r
1553 default.  To provide you a maximum of flexibility you can set up your own\r
1554 configuration directory (e.g. based on /etc/grml/fai) and use this directory\r
1555 running grml-live with the <em>-D &lt;config_dir&gt;</em> option. Now <em>$GRML_FAI_CONFIG</em>\r
1556 points to the specified directory instead of using /etc/grml/fai and all the\r
1557 configuration files, scripts and hooks will be taken from your\r
1558 <em>$GRML_FAI_CONFIG</em> directory.</p></div>\r
1559 </div>\r
1560 <div class="sect2">\r
1561 <h3 id="how-to-debug">13.3. I&#8217;ve problems with the build process. How to start debugging?</h3>\r
1562 <div class="paragraph"><p>Check out the logs inside the directory <em>grml_logs</em> next to your grml_chroot,\r
1563 grml_isos,&#8230; directories.</p></div>\r
1564 <div class="paragraph"><p>If you need help with grml-live or would like to see new features as part of\r
1565 grml-live you can get commercial support via\r
1566 <a href="http://grml-solutions.com/">Grml Solutions</a>.</p></div>\r
1567 </div>\r
1568 <div class="sect2">\r
1569 <h3 id="install-local-files">13.4. How do I install further files into the chroot/ISO?</h3>\r
1570 <div class="paragraph"><p>Just point the configuration variable CHROOT_INSTALL to the directory which\r
1571 provides the files you would like to install. Note that the files are installed\r
1572 under <em>/</em> in the chroot - so you have to create the rootfs structure on your\r
1573 own. Usage example:</p></div>\r
1574 <div class="literalblock">\r
1575 <div class="content">\r
1576 <pre><code>echo "CHROOT_INSTALL=\$GRML_FAI_CONFIG/chroot_install" &gt;&gt; /etc/grml/grml-live.local\r
1577 mkdir -p /etc/grml/fai/chroot_install/usr/src/\r
1578 wget example.org/foo.tar.gz\r
1579 mv foo.tar.gz /etc/grml/fai/chroot_install/usr/src/\r
1580 grml-live ...</code></pre>\r
1581 </div></div>\r
1582 </div>\r
1583 <div class="sect2">\r
1584 <h3 id="local-debian-mirror">13.5. Can I use my own (local) Debian mirror?</h3>\r
1585 <div class="paragraph"><p>Yes. Set up an according sources.list configuration as class file in\r
1586 FAI_DEBOOTSTRAP (if not already using a base.tgz) inside\r
1587 /etc/grml/grml-live.conf[.local]. If you&#8217;re setting up your own class file don&#8217;t\r
1588 forget to include the class name in the class list (grml-live -c &#8230;).</p></div>\r
1589 <div class="paragraph"><p>If you want to use a local (for example NFS mount) mirror additionally then\r
1590 adjust MIRROR_DIRECTORY in /etc/grml/grml-live.conf[.local] as well.</p></div>\r
1591 <div class="paragraph"><p>If you want to use a HTTP Proxy (like apt-cacher-ng), set APT_PROXY. Example:</p></div>\r
1592 <div class="literalblock">\r
1593 <div class="content">\r
1594 <pre><code>APT_PROXY="http://localhost:3142/"</code></pre>\r
1595 </div></div>\r
1596 </div>\r
1597 <div class="sect2">\r
1598 <h3 id="add-additional-debian-packages">13.6. How do I add additional Debian package(s) to my CD/ISO?</h3>\r
1599 <div class="paragraph"><p>Just create a new class (using the package_config directory):</p></div>\r
1600 <div class="literalblock">\r
1601 <div class="content">\r
1602 <pre><code># cat &gt; /etc/grml/fai/config/package_config/MIKA &lt;&lt; EOF\r
1603 PACKAGES install</code></pre>\r
1604 </div></div>\r
1605 <div class="literalblock">\r
1606 <div class="content">\r
1607 <pre><code>vim\r
1608 another_name_of_a_debian_package\r
1609 and_another_one\r
1610 EOF</code></pre>\r
1611 </div></div>\r
1612 <div class="paragraph"><p>and specify it when invoking grml-live then:</p></div>\r
1613 <div class="literalblock">\r
1614 <div class="content">\r
1615 <pre><code># grml-live -c GRMLBASE,GRML_SMALL,AMD64,MIKA</code></pre>\r
1616 </div></div>\r
1617 </div>\r
1618 <div class="sect2">\r
1619 <h3 id="reset-grml-live-configuration">13.7. I fscked up my grml-live configuration. How do I reset it to the defaults?</h3>\r
1620 <div class="paragraph"><p>Notice: this deletes all your grml-live configuration files. If that&#8217;s really\r
1621 what you are searching for just run:</p></div>\r
1622 <div class="literalblock">\r
1623 <div class="content">\r
1624 <pre><code>rm -rf /etc/grml/fai /etc/grml/grml-live.conf\r
1625 dpkg -i --force-confnew --force-confmiss /path/to/grml-live_..._all.deb</code></pre>\r
1626 </div></div>\r
1627 </div>\r
1628 <div class="sect2">\r
1629 <h3 id="apt-cacher">13.8. Set up apt-cacher-ng for use with grml-live</h3>\r
1630 <div class="paragraph"><p>Make sure /etc/grml/grml-live.local provides according APT_PROXY and\r
1631 FAI_DEBOOTSTRAP:</p></div>\r
1632 <div class="literalblock">\r
1633 <div class="content">\r
1634 <pre><code># cat /etc/grml/grml-live.local\r
1635 [...]\r
1636 APT_PROXY="http://localhost:3142/"\r
1637 [...]\r
1638 FAI_DEBOOTSTRAP="stretch http://localhost:3142/ftp.debian.org/debian stretch main contrib non-free"</code></pre>\r
1639 </div></div>\r
1640 <div class="paragraph"><p>Make sure apt-cacher-ng is running (<em>/etc/init.d/apt-cacher-ng restart</em>).\r
1641 That&#8217;s it.  All downloaded files will be cached in /var/cache/apt-cacher-ng then.</p></div>\r
1642 </div>\r
1643 <div class="sect2">\r
1644 <h3 id="revert_manifold">13.9. How do I revert the manifold feature from an ISO?</h3>\r
1645 <div class="paragraph"><p>The so called manifold feature Grml ISOs use by default allows one to use the same\r
1646 ISO for CD boot and USB boot. If you notice any problems when booting just\r
1647 revert the manifold feature running:</p></div>\r
1648 <div class="literalblock">\r
1649 <div class="content">\r
1650 <pre><code>% dd if=/dev/zero of=grml.iso bs=512 count=1 conv=notrunc</code></pre>\r
1651 </div></div>\r
1652 <div class="paragraph"><p>To switch from manifold to isohybrid mode (an alternative approach provided by\r
1653 syslinux) then just execute:</p></div>\r
1654 <div class="literalblock">\r
1655 <div class="content">\r
1656 <pre><code>% isohybrid grml.iso</code></pre>\r
1657 </div></div>\r
1658 </div>\r
1659 <div class="sect2">\r
1660 <h3 id="create-a-base-tgz">13.10. How do I create a base tar.gz (I386.tar.gz or AMD64.tar.gz)</h3>\r
1661 <div class="paragraph" id="basetgz"><p>First of all create the chroot using debootstrap (requires root):</p></div>\r
1662 <div class="literalblock">\r
1663 <div class="content">\r
1664 <pre><code>BASECHROOT='/tmp/basefile'  # path where the chroot gets generated\r
1665 SUITE='stretch'              # using the current stable release should always work\r
1666 debootstrap --exclude=info,tasksel,tasksel-data "$SUITE" "$BASECHROOT" http://ftp.debian.org/debian\r
1667 tar -C "$BASECHROOT" --exclude='var/cache/apt/archives/*.deb' -zcf "${SUITE}".tar.gz ./</code></pre>\r
1668 </div></div>\r
1669 <div class="admonitionblock">\r
1670 <table><tr>\r
1671 <td class="icon">\r
1672 <img src="./images/icons/tip.png" alt="Tip" />\r
1673 </td>\r
1674 <td class="content">By default debootstrap builds a chroot matching the architecture of the running\r
1675 host system. If you&#8217;re using an amd64 system and want to build an i386 base.tgz\r
1676 then invoke debootstrap using the <em>--arch i386</em> option. Disclaimer: building an\r
1677 AMD64 base.tgz won&#8217;t work if you are using a 32bit kernel system of course.</td>\r
1678 </tr></table>\r
1679 </div>\r
1680 <div class="paragraph"><p>Finally place the generated tarball in /etc/grml/fai/config/basefiles/ (note\r
1681 that it needs to be uppercase letters matching the class names, so: e.g.\r
1682 AMD64.tar.gz for amd64 and I386.tar.gz for i386).</p></div>\r
1683 <div class="paragraph"><p>Then executing grml-live should use this file as base system instead of executing\r
1684 debootstrap. Check out the output for something like:</p></div>\r
1685 <div class="literalblock">\r
1686 <div class="content">\r
1687 <pre><code>[...]\r
1688 ftar: extracting //etc/grml/fai/config/basefiles///AMD64.tar.gz to /srv/grml64_testing/grml_chroot//\r
1689 [...]</code></pre>\r
1690 </div></div>\r
1691 </div>\r
1692 <div class="sect2">\r
1693 <h3 id="localrepos">13.11. How to use your own local repository</h3>\r
1694 <div class="paragraph"><p>Let&#8217;s assume you have Debian package(s) in your filesystem inside\r
1695 <code>/home/foobar/local-packages</code> and want to provide them to your grml-live build.\r
1696 This can be achieved either 1) through a bind mount (using the MIRROR_DIRECTORY\r
1697 configuration) or 2) by serving a repository via HTTP.</p></div>\r
1698 <div class="sect3">\r
1699 <h4 id="_serving_via_bind_mount_mirror_directory">13.11.1. Serving via bind mount / MIRROR_DIRECTORY</h4>\r
1700 <div class="paragraph"><p>Make sure to create an according sources.list configuration file, e.g. using\r
1701 your own class name <code>CUSTOM</code>:</p></div>\r
1702 <div class="literalblock">\r
1703 <div class="content">\r
1704 <pre><code># cat &gt; /etc/grml/fai/config/files/etc/apt/sources.list.d/local-packages.list/CUSTOM &lt;&lt; EOF\r
1705 deb file:///home/foobar/local-packages ./\r
1706 EOF</code></pre>\r
1707 </div></div>\r
1708 <div class="paragraph"><p>Add the according MIRROR_DIRECTORY configuration to your grml-live configuration:</p></div>\r
1709 <div class="literalblock">\r
1710 <div class="content">\r
1711 <pre><code># echo "MIRROR_DIRECTORY='/home/foobar/packages'" &gt;&gt; /etc/grml/grml-live.local</code></pre>\r
1712 </div></div>\r
1713 <div class="paragraph"><p>Make sure the local directory looks like a mirror:</p></div>\r
1714 <div class="literalblock">\r
1715 <div class="content">\r
1716 <pre><code>% cd /home/foobar/packages\r
1717 % dpkg-scanpackages . /dev/null | gzip &gt; Packages.gz</code></pre>\r
1718 </div></div>\r
1719 <div class="paragraph"><p>Finally invoke grml-live with your class name (<code>CUSTOM</code> in this example) added\r
1720 to the list of classes on the command line (see grml-live option <code>-c</code>).</p></div>\r
1721 </div>\r
1722 <div class="sect3">\r
1723 <h4 id="_serving_a_repository_via_http">13.11.2. Serving a repository via HTTP</h4>\r
1724 <div class="paragraph"><p>Make sure to create an according sources.list configuration file, e.g. using\r
1725 your own class name <code>CUSTOM</code>:</p></div>\r
1726 <div class="literalblock">\r
1727 <div class="content">\r
1728 <pre><code># cat &gt; /etc/grml/fai/config/files/etc/apt/sources.list.d/local-packages.list/CUSTOM &lt;&lt; EOF\r
1729 deb http://127.0.0.1:8000/ ./\r
1730 EOF</code></pre>\r
1731 </div></div>\r
1732 <div class="paragraph"><p>Make sure the local directory is served via HTTP on the according IP address and\r
1733 port. For the <code>http://127.0.0.1:8000/</code> example from above it should be enough to\r
1734 just invoke:</p></div>\r
1735 <div class="literalblock">\r
1736 <div class="content">\r
1737 <pre><code>% cd /home/foobar/packages\r
1738 % dpkg-scanpackages . /dev/null | gzip &gt; Packages.gz\r
1739 % python -m SimpleHTTPServer 8000</code></pre>\r
1740 </div></div>\r
1741 <div class="admonitionblock">\r
1742 <table><tr>\r
1743 <td class="icon">\r
1744 <img src="./images/icons/tip.png" alt="Tip" />\r
1745 </td>\r
1746 <td class="content">Of course you can also use a real Debian repository setup using tools like\r
1747 reprepro(1) and/or using a real web server, though for quick debugging sessions\r
1748 python&#8217;s SimpleHTTPServer in combination with dpkg-scanpackages from package\r
1749 dpkg-dev is a simple and easy approach.</td>\r
1750 </tr></table>\r
1751 </div>\r
1752 <div class="paragraph"><p>Finally invoke grml-live with your class name (<code>CUSTOM</code> in this example) added\r
1753 to the list of classes on the command line (see grml-live option <code>-c</code>).</p></div>\r
1754 </div>\r
1755 </div>\r
1756 </div>\r
1757 </div>\r
1758 <div class="sect1">\r
1759 <h2 id="download">14. Download / install grml-live as a Debian package</h2>\r
1760 <div class="sectionbody">\r
1761 <div class="paragraph"><p>Stable Debian packages are available through the grml-repository at\r
1762 <a href="http://deb.grml.org/pool/main/g/grml-live/">deb.grml.org</a> and the latest\r
1763 Git commits are available as Debian packages from\r
1764 <a href="http://jenkins.grml.org/job/grml-live-binaries/">jenkins.grml.org</a>.\r
1765 If you want to build a Debian package on your own (using for example a specific\r
1766 version or the current development tree), just execute:</p></div>\r
1767 <div class="literalblock">\r
1768 <div class="content">\r
1769 <pre><code>git clone git://git.grml.org/grml-live\r
1770 cd grml-live\r
1771 debuild -us -uc</code></pre>\r
1772 </div></div>\r
1773 </div>\r
1774 </div>\r
1775 <div class="sect1">\r
1776 <h2 id="run-from-git">15. Run grml-live directly from git</h2>\r
1777 <div class="sectionbody">\r
1778 <div class="paragraph"><p>In case you want to run grml-live directly from the git repository checkout\r
1779 (after making sure all dependencies are installed), you should set\r
1780 <code>GRML_FAI_CONFIG</code> so that a) it finds the according FAI configuration files and\r
1781 b) does not use the config files of an possibly installed <code>grml-live</code> package.\r
1782 Usage example:</p></div>\r
1783 <div class="literalblock">\r
1784 <div class="content">\r
1785 <pre><code># export GRML_FAI_CONFIG=$(pwd)/etc/grml/fai\r
1786 # export SCRIPTS_DIRECTORY=$(pwd)/scripts\r
1787 # ./grml-live -s sid -a amd64 -c GRMLBASE,GRML_FULL,AMD64</code></pre>\r
1788 </div></div>\r
1789 </div>\r
1790 </div>\r
1791 <div class="sect1">\r
1792 <h2 id="source">16. Source</h2>\r
1793 <div class="sectionbody">\r
1794 <div class="paragraph"><p>The source of grml-live is available at\r
1795 <a href="https://github.com/grml/grml-live/">https://github.com/grml/grml-live/</a></p></div>\r
1796 </div>\r
1797 </div>\r
1798 <div class="sect1">\r
1799 <h2 id="bugs">17. Bugs</h2>\r
1800 <div class="sectionbody">\r
1801 <div class="paragraph"><p>Please report feedback, <a href="http://grml.org/bugs/">bugreports</a> and wishes\r
1802 <a href="http://grml.org/contact/">to the Grml team</a>!</p></div>\r
1803 </div>\r
1804 </div>\r
1805 <div class="sect1">\r
1806 <h2 id="documentation">18. Documentation</h2>\r
1807 <div class="sectionbody">\r
1808 <div class="paragraph"><p>The most recent grml-live documentation is available online at\r
1809 <a href="http://grml.org/grml-live/">http://grml.org/grml-live/</a> and for offline reading also available\r
1810 in different formats:</p></div>\r
1811 <div class="ulist"><ul>\r
1812 <li>\r
1813 <p>\r
1814 <a href="http://grml.org/grml-live/grml-live.epub">http://grml.org/grml-live/grml-live.epub</a>\r
1815 </p>\r
1816 </li>\r
1817 <li>\r
1818 <p>\r
1819 <a href="http://grml.org/grml-live/grml-live.pdf">http://grml.org/grml-live/grml-live.pdf</a>\r
1820 </p>\r
1821 </li>\r
1822 </ul></div>\r
1823 </div>\r
1824 </div>\r
1825 <div class="sect1">\r
1826 <h2 id="authors">19. Authors</h2>\r
1827 <div class="sectionbody">\r
1828 <div class="paragraph"><p>Michael Prokop &lt;<a href="mailto:mika@grml.org">mika@grml.org</a>&gt;</p></div>\r
1829 </div>\r
1830 </div>\r
1831 </div>\r
1832 <div id="footnotes"><hr /></div>\r
1833 <div id="footer">\r
1834 <div id="footer-text">\r
1835 Last updated\r
1836  2018-10-25 14:47:41 UTC\r
1837 </div>\r
1838 </div>\r
1839 </body>\r
1840 </html>\r