1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
\r
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
\r
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
\r
5 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
\r
6 <meta name="generator" content="AsciiDoc 8.6.9" />
\r
7 <title>grml-debootstrap(8)</title>
\r
8 <style type="text/css">
\r
9 /* Shared CSS for AsciiDoc xhtml11 and html5 backends */
\r
13 font-family: Georgia,serif;
\r
17 h1, h2, h3, h4, h5, h6,
\r
18 div.title, caption.title,
\r
19 thead, p.table.header,
\r
21 #author, #revnumber, #revdate, #revremark,
\r
23 font-family: Arial,Helvetica,sans-serif;
\r
27 margin: 1em 5% 1em 5%;
\r
32 text-decoration: underline;
\r
48 h1, h2, h3, h4, h5, h6 {
\r
51 margin-bottom: 0.5em;
\r
56 border-bottom: 2px solid silver;
\r
76 border: 1px solid silver;
\r
81 margin-bottom: 0.5em;
\r
87 ul > li { color: #aaa; }
\r
88 ul > li > * { color: black; }
\r
90 .monospaced, code, pre {
\r
91 font-family: "Courier New", Courier, monospace;
\r
98 white-space: pre-wrap;
\r
108 #revnumber, #revdate, #revremark {
\r
113 border-top: 2px solid silver;
\r
114 padding-top: 0.5em;
\r
119 padding-bottom: 0.5em;
\r
123 padding-bottom: 0.5em;
\r
128 margin-bottom: 1.5em;
\r
130 div.imageblock, div.exampleblock, div.verseblock,
\r
131 div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
\r
132 div.admonitionblock {
\r
134 margin-bottom: 1.5em;
\r
136 div.admonitionblock {
\r
138 margin-bottom: 2.0em;
\r
143 div.content { /* Block element content. */
\r
147 /* Block element titles. */
\r
148 div.title, caption.title {
\r
153 margin-bottom: 0.5em;
\r
159 td div.title:first-child {
\r
162 div.content div.title:first-child {
\r
165 div.content + div.title {
\r
169 div.sidebarblock > div.content {
\r
170 background: #ffffee;
\r
171 border: 1px solid #dddddd;
\r
172 border-left: 4px solid #f0f0f0;
\r
176 div.listingblock > div.content {
\r
177 border: 1px solid #dddddd;
\r
178 border-left: 5px solid #f0f0f0;
\r
179 background: #f8f8f8;
\r
183 div.quoteblock, div.verseblock {
\r
184 padding-left: 1.0em;
\r
185 margin-left: 1.0em;
\r
187 border-left: 5px solid #f0f0f0;
\r
191 div.quoteblock > div.attribution {
\r
192 padding-top: 0.5em;
\r
196 div.verseblock > pre.content {
\r
197 font-family: inherit;
\r
198 font-size: inherit;
\r
200 div.verseblock > div.attribution {
\r
201 padding-top: 0.75em;
\r
204 /* DEPRECATED: Pre version 8.2.7 verse style literal block. */
\r
205 div.verseblock + div.attribution {
\r
209 div.admonitionblock .icon {
\r
210 vertical-align: top;
\r
213 text-decoration: underline;
\r
215 padding-right: 0.5em;
\r
217 div.admonitionblock td.content {
\r
218 padding-left: 0.5em;
\r
219 border-left: 3px solid #dddddd;
\r
222 div.exampleblock > div.content {
\r
223 border-left: 3px solid #dddddd;
\r
224 padding-left: 0.5em;
\r
227 div.imageblock div.content { padding-left: 0; }
\r
228 span.image img { border-style: none; vertical-align: text-bottom; }
\r
229 a.image:visited { color: white; }
\r
233 margin-bottom: 0.8em;
\r
238 font-style: normal;
\r
241 dd > *:first-child {
\r
246 list-style-position: outside;
\r
249 list-style-type: decimal;
\r
252 list-style-type: lower-alpha;
\r
255 list-style-type: upper-alpha;
\r
258 list-style-type: lower-roman;
\r
261 list-style-type: upper-roman;
\r
264 div.compact ul, div.compact ol,
\r
265 div.compact p, div.compact p,
\r
266 div.compact div, div.compact div {
\r
268 margin-bottom: 0.1em;
\r
280 margin-bottom: 0.8em;
\r
283 padding-bottom: 15px;
\r
285 dt.hdlist1.strong, td.hdlist1.strong {
\r
289 vertical-align: top;
\r
290 font-style: normal;
\r
291 padding-right: 0.8em;
\r
295 vertical-align: top;
\r
297 div.hdlist.compact tr {
\r
303 background: yellow;
\r
306 .footnote, .footnoteref {
\r
310 span.footnote, span.footnoteref {
\r
311 vertical-align: super;
\r
315 margin: 20px 0 20px 0;
\r
316 padding: 7px 0 0 0;
\r
319 #footnotes div.footnote {
\r
325 border-top: 1px solid silver;
\r
334 padding-right: 0.5em;
\r
335 padding-bottom: 0.3em;
\r
336 vertical-align: top;
\r
338 div.colist td img {
\r
343 #footer-badges { display: none; }
\r
347 margin-bottom: 2.5em;
\r
355 margin-bottom: 0.1em;
\r
358 div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
\r
375 span.aqua { color: aqua; }
\r
376 span.black { color: black; }
\r
377 span.blue { color: blue; }
\r
378 span.fuchsia { color: fuchsia; }
\r
379 span.gray { color: gray; }
\r
380 span.green { color: green; }
\r
381 span.lime { color: lime; }
\r
382 span.maroon { color: maroon; }
\r
383 span.navy { color: navy; }
\r
384 span.olive { color: olive; }
\r
385 span.purple { color: purple; }
\r
386 span.red { color: red; }
\r
387 span.silver { color: silver; }
\r
388 span.teal { color: teal; }
\r
389 span.white { color: white; }
\r
390 span.yellow { color: yellow; }
\r
392 span.aqua-background { background: aqua; }
\r
393 span.black-background { background: black; }
\r
394 span.blue-background { background: blue; }
\r
395 span.fuchsia-background { background: fuchsia; }
\r
396 span.gray-background { background: gray; }
\r
397 span.green-background { background: green; }
\r
398 span.lime-background { background: lime; }
\r
399 span.maroon-background { background: maroon; }
\r
400 span.navy-background { background: navy; }
\r
401 span.olive-background { background: olive; }
\r
402 span.purple-background { background: purple; }
\r
403 span.red-background { background: red; }
\r
404 span.silver-background { background: silver; }
\r
405 span.teal-background { background: teal; }
\r
406 span.white-background { background: white; }
\r
407 span.yellow-background { background: yellow; }
\r
409 span.big { font-size: 2em; }
\r
410 span.small { font-size: 0.6em; }
\r
412 span.underline { text-decoration: underline; }
\r
413 span.overline { text-decoration: overline; }
\r
414 span.line-through { text-decoration: line-through; }
\r
416 div.unbreakable { page-break-inside: avoid; }
\r
426 margin-bottom: 1.5em;
\r
428 div.tableblock > table {
\r
429 border: 3px solid #527bbd;
\r
431 thead, p.table.header {
\r
438 /* Because the table frame attribute is overriden by CSS in most browsers. */
\r
439 div.tableblock > table[frame="void"] {
\r
440 border-style: none;
\r
442 div.tableblock > table[frame="hsides"] {
\r
443 border-left-style: none;
\r
444 border-right-style: none;
\r
446 div.tableblock > table[frame="vsides"] {
\r
447 border-top-style: none;
\r
448 border-bottom-style: none;
\r
459 margin-bottom: 1.5em;
\r
461 thead, p.tableblock.header {
\r
470 border-spacing: 0px;
\r
471 border-style: solid;
\r
472 border-color: #527bbd;
\r
473 border-collapse: collapse;
\r
475 th.tableblock, td.tableblock {
\r
478 border-style: solid;
\r
479 border-color: #527bbd;
\r
482 table.tableblock.frame-topbot {
\r
483 border-left-style: hidden;
\r
484 border-right-style: hidden;
\r
486 table.tableblock.frame-sides {
\r
487 border-top-style: hidden;
\r
488 border-bottom-style: hidden;
\r
490 table.tableblock.frame-none {
\r
491 border-style: hidden;
\r
494 th.tableblock.halign-left, td.tableblock.halign-left {
\r
497 th.tableblock.halign-center, td.tableblock.halign-center {
\r
498 text-align: center;
\r
500 th.tableblock.halign-right, td.tableblock.halign-right {
\r
504 th.tableblock.valign-top, td.tableblock.valign-top {
\r
505 vertical-align: top;
\r
507 th.tableblock.valign-middle, td.tableblock.valign-middle {
\r
508 vertical-align: middle;
\r
510 th.tableblock.valign-bottom, td.tableblock.valign-bottom {
\r
511 vertical-align: bottom;
\r
521 padding-top: 0.5em;
\r
522 padding-bottom: 0.5em;
\r
523 border-top: 2px solid silver;
\r
524 border-bottom: 2px solid silver;
\r
527 border-style: none;
\r
529 body.manpage div.sectionbody {
\r
534 body.manpage div#toc { display: none; }
\r
539 <script type="text/javascript">
\r
541 var asciidoc = { // Namespace.
\r
543 /////////////////////////////////////////////////////////////////////
\r
544 // Table Of Contents generator
\r
545 /////////////////////////////////////////////////////////////////////
\r
547 /* Author: Mihai Bazon, September 2002
\r
548 * http://students.infoiasi.ro/~mishoo
\r
550 * Table Of Content generator
\r
553 * Feel free to use this script under the terms of the GNU General Public
\r
554 * License, as long as you do not remove or alter this notice.
\r
557 /* modified by Troy D. Hanson, September 2006. License: GPL */
\r
558 /* modified by Stuart Rackham, 2006, 2009. License: GPL */
\r
560 // toclevels = 1..4.
\r
561 toc: function (toclevels) {
\r
563 function getText(el) {
\r
565 for (var i = el.firstChild; i != null; i = i.nextSibling) {
\r
566 if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants.
\r
568 else if (i.firstChild != null)
\r
569 text += getText(i);
\r
574 function TocEntry(el, text, toclevel) {
\r
577 this.toclevel = toclevel;
\r
580 function tocEntries(el, toclevels) {
\r
581 var result = new Array;
\r
582 var re = new RegExp('[hH]([1-'+(toclevels+1)+'])');
\r
583 // Function that scans the DOM tree for header elements (the DOM2
\r
584 // nodeIterator API would be a better technique but not supported by all
\r
586 var iterate = function (el) {
\r
587 for (var i = el.firstChild; i != null; i = i.nextSibling) {
\r
588 if (i.nodeType == 1 /* Node.ELEMENT_NODE */) {
\r
589 var mo = re.exec(i.tagName);
\r
590 if (mo && (i.getAttribute("class") || i.getAttribute("className")) != "float") {
\r
591 result[result.length] = new TocEntry(i, getText(i), mo[1]-1);
\r
601 var toc = document.getElementById("toc");
\r
606 // Delete existing TOC entries in case we're reloading the TOC.
\r
607 var tocEntriesToRemove = [];
\r
609 for (i = 0; i < toc.childNodes.length; i++) {
\r
610 var entry = toc.childNodes[i];
\r
611 if (entry.nodeName.toLowerCase() == 'div'
\r
612 && entry.getAttribute("class")
\r
613 && entry.getAttribute("class").match(/^toclevel/))
\r
614 tocEntriesToRemove.push(entry);
\r
616 for (i = 0; i < tocEntriesToRemove.length; i++) {
\r
617 toc.removeChild(tocEntriesToRemove[i]);
\r
620 // Rebuild TOC entries.
\r
621 var entries = tocEntries(document.getElementById("content"), toclevels);
\r
622 for (var i = 0; i < entries.length; ++i) {
\r
623 var entry = entries[i];
\r
624 if (entry.element.id == "")
\r
625 entry.element.id = "_toc_" + i;
\r
626 var a = document.createElement("a");
\r
627 a.href = "#" + entry.element.id;
\r
628 a.appendChild(document.createTextNode(entry.text));
\r
629 var div = document.createElement("div");
\r
630 div.appendChild(a);
\r
631 div.className = "toclevel" + entry.toclevel;
\r
632 toc.appendChild(div);
\r
634 if (entries.length == 0)
\r
635 toc.parentNode.removeChild(toc);
\r
639 /////////////////////////////////////////////////////////////////////
\r
640 // Footnotes generator
\r
641 /////////////////////////////////////////////////////////////////////
\r
643 /* Based on footnote generation code from:
\r
644 * http://www.brandspankingnew.net/archive/2005/07/format_footnote.html
\r
647 footnotes: function () {
\r
648 // Delete existing footnote entries in case we're reloading the footnodes.
\r
650 var noteholder = document.getElementById("footnotes");
\r
654 var entriesToRemove = [];
\r
655 for (i = 0; i < noteholder.childNodes.length; i++) {
\r
656 var entry = noteholder.childNodes[i];
\r
657 if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote")
\r
658 entriesToRemove.push(entry);
\r
660 for (i = 0; i < entriesToRemove.length; i++) {
\r
661 noteholder.removeChild(entriesToRemove[i]);
\r
664 // Rebuild footnote entries.
\r
665 var cont = document.getElementById("content");
\r
666 var spans = cont.getElementsByTagName("span");
\r
669 for (i=0; i<spans.length; i++) {
\r
670 if (spans[i].className == "footnote") {
\r
672 var note = spans[i].getAttribute("data-note");
\r
674 // Use [\s\S] in place of . so multi-line matches work.
\r
675 // Because JavaScript has no s (dotall) regex flag.
\r
676 note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1];
\r
677 spans[i].innerHTML =
\r
678 "[<a id='_footnoteref_" + n + "' href='#_footnote_" + n +
\r
679 "' title='View footnote' class='footnote'>" + n + "</a>]";
\r
680 spans[i].setAttribute("data-note", note);
\r
682 noteholder.innerHTML +=
\r
683 "<div class='footnote' id='_footnote_" + n + "'>" +
\r
684 "<a href='#_footnoteref_" + n + "' title='Return to text'>" +
\r
685 n + "</a>. " + note + "</div>";
\r
686 var id =spans[i].getAttribute("id");
\r
687 if (id != null) refs["#"+id] = n;
\r
691 noteholder.parentNode.removeChild(noteholder);
\r
693 // Process footnoterefs.
\r
694 for (i=0; i<spans.length; i++) {
\r
695 if (spans[i].className == "footnoteref") {
\r
696 var href = spans[i].getElementsByTagName("a")[0].getAttribute("href");
\r
697 href = href.match(/#.*/)[0]; // Because IE return full URL.
\r
699 spans[i].innerHTML =
\r
700 "[<a href='#_footnote_" + n +
\r
701 "' title='View footnote' class='footnote'>" + n + "</a>]";
\r
707 install: function(toclevels) {
\r
710 function reinstall() {
\r
711 asciidoc.footnotes();
\r
713 asciidoc.toc(toclevels);
\r
717 function reinstallAndRemoveTimer() {
\r
718 clearInterval(timerId);
\r
722 timerId = setInterval(reinstall, 500);
\r
723 if (document.addEventListener)
\r
724 document.addEventListener("DOMContentLoaded", reinstallAndRemoveTimer, false);
\r
726 window.onload = reinstallAndRemoveTimer;
\r
730 asciidoc.install();
\r
734 <body class="article">
\r
736 <h1>grml-debootstrap(8)</h1>
\r
739 <div class="sect1">
\r
740 <h2 id="_name">Name</h2>
\r
741 <div class="sectionbody">
\r
742 <div class="paragraph"><p>grml-debootstrap - wrapper around debootstrap for installing plain Debian</p></div>
\r
745 <div class="sect1">
\r
746 <h2 id="_synopsis">Synopsis</h2>
\r
747 <div class="sectionbody">
\r
748 <div class="paragraph"><p>grml-debootstrap [ <em>options</em> ]</p></div>
\r
749 <div class="paragraph"><p><span class="image">
\r
750 <img src="images/screenshot.png" alt="Screenshot" />
\r
754 <div class="sect1">
\r
755 <h2 id="_introduction">Introduction</h2>
\r
756 <div class="sectionbody">
\r
757 <div class="paragraph"><p>grml-debootstrap is a wrapper suite around debootstrap (and cdebootstrap if you
\r
758 want) for installing a plain Debian system very fast and easy.</p></div>
\r
759 <div class="paragraph"><p>All you have to do is adjust a few variables in the configuration file
\r
760 /etc/debootstrap/config or specify some command line options and invoke
\r
761 grml-debootstrap. If invoked without any configuration modifications or command
\r
762 line options a dialog based frontend will be available to control some basic
\r
763 configuration options.</p></div>
\r
764 <div class="paragraph"><p>A plain and base Debian system will be installed on the given device, directory
\r
765 or virtual image file then. Customization of this process is possible as well.</p></div>
\r
766 <div class="admonitionblock">
\r
769 <img src="./images/icons/caution.png" alt="Caution" />
\r
771 <td class="content">The Grml team does not take responsibility for loss of any data!</td>
\r
776 <div class="sect1">
\r
777 <h2 id="_options_and_environment_variables">Options and environment variables</h2>
\r
778 <div class="sectionbody">
\r
779 <div class="dlist"><dl>
\r
780 <dt class="hdlist1">
\r
781 <strong>--arch</strong> <em>architecture</em>
\r
785 Set target architecture you want to install. Defaults to the architecture
\r
786 you are currently running. If you’re running an amd64 kernel and want to
\r
787 deploy an i386 system use this option. Note: deploying amd64 from an i386
\r
788 kernel does <strong>not</strong> work. Example: "<em>--arch i386</em>"
\r
791 <dt class="hdlist1">
\r
792 <strong>--backportrepos</strong>
\r
796 Enable Debian’s Backports repository (<a href="http://backports.debian.org/">http://backports.debian.org/</a>) via the
\r
797 /etc/apt/sources.list.d/backports.list configuration file. This provides the
\r
798 option to install Debian packages from Debian’s backports repository.
\r
801 <dt class="hdlist1">
\r
802 <strong>--bootappend</strong> <em>appendline-for-the-kernel</em>
\r
806 Specify appendline for the kernel.
\r
807 E.g. "<em>pci=nomsi</em>"
\r
810 <dt class="hdlist1">
\r
811 <strong>-c</strong>, <strong>--config</strong> <em>file</em>
\r
815 Use specified configuration file, defaults to /etc/debootstrap/config.
\r
818 <dt class="hdlist1">
\r
819 <strong>--chroot-scripts</strong> <em>directory</em>
\r
823 Execute chroot scripts from specified directory. This allows customisation
\r
824 of the chroot setup, the executable script(s) present in the given directory
\r
825 are executed at the end of the chroot procedure.
\r
826 Default directory: /etc/debootstrap/chroot-scripts/
\r
829 <dt class="hdlist1">
\r
830 <strong>-d</strong>, <strong>--confdir</strong> <em>path</em>
\r
834 Place of configuration files for debootstrap, defaults to /etc/debootstrap.
\r
837 <dt class="hdlist1">
\r
838 <strong>--debconf</strong> <em>file</em>
\r
842 Use specified file for preseeding Debian packages instead of using
\r
843 the default <confdir>/debconf-selections.
\r
846 <dt class="hdlist1">
\r
847 <strong>--debopt</strong> <em>params</em>
\r
851 Extra parameters passed to the debootstrap command.
\r
854 <dt class="hdlist1">
\r
855 <strong>--debug</strong>
\r
859 Execute in very verbose way. Useful for debugging possible problems
\r
860 with grml-debootstrap or identify what’s actually executed.
\r
863 <dt class="hdlist1">
\r
864 <strong>--filesystem</strong> <em>filesystem</em>
\r
868 Filesystem that should be created when installing to a partition.
\r
869 If unset defaults to ext4. Valid values are all filesystems that
\r
870 can be created through mkfs.<em>filesystem</em>.
\r
873 <dt class="hdlist1">
\r
874 <strong>--force</strong>
\r
878 Skip user acknowledgement and do not prompt for user input.
\r
881 <dt class="hdlist1">
\r
882 <strong>--grmlrepos</strong>
\r
886 Enable Grml.org’s Debian repository (<a href="http://deb.grml.org/">http://deb.grml.org/</a>) via the
\r
887 /etc/apt/sources.list.d/grml.list configuration file. This provides the
\r
888 option to install Debian packages from Grml’s repository.
\r
891 <dt class="hdlist1">
\r
892 <strong>--grub</strong> <em>device</em>
\r
896 Device where grub should be installed to. Note that only the MBR (master
\r
897 boot record) can be used (/dev/sda, /dev/sdb,…). Partitions (like
\r
898 /dev/sda1, /dev/sdb2,…) are NOT supported because grub2 doesn’t support
\r
899 installation into the PBR (partition boot record) anymore. Usage example:
\r
900 <em>--grub /dev/sda</em>. Note: just do not set this option to avoid installation
\r
904 <dt class="hdlist1">
\r
905 <strong>--help</strong>, <strong>-h</strong>
\r
909 Show summary of options and exit.
\r
912 <dt class="hdlist1">
\r
913 <strong>--hostname</strong> <em>hostname</em>
\r
917 Use specified hostname instead of the default (being $HOSTNAME or if unset <em>grml</em>).
\r
920 <dt class="hdlist1">
\r
921 <strong>-i</strong>, <strong>--iso</strong> <em>/mntpoint</em>
\r
925 Specify mount point where you have a Debian ISO mounted loopback.
\r
926 Using this option instead of the mirror option gives you the possibility
\r
927 to install the base-system without network access. Make sure you
\r
928 mounted the according Debian-ISO to the given <em>/mntpoint</em>. See section
\r
929 <em>Usage examples</em> for a demonstration.
\r
932 <dt class="hdlist1">
\r
933 <strong>--keep_src_list</strong>
\r
937 Do not overwrite user provided /etc/apt/sources.list.
\r
940 <dt class="hdlist1">
\r
941 <strong>-m</strong>, <strong>--mirror</strong> <em>URL</em>
\r
945 Specify mirror which should be used for apt-get/aptitude.
\r
946 Corresponding with configuration variable MIRROR.
\r
949 <dt class="hdlist1">
\r
950 <strong>--nodebootstrap</strong>
\r
954 Skip debootstrap, only do configuration to the target.
\r
957 <dt class="hdlist1">
\r
958 <strong>--nointerfaces</strong>
\r
962 Do not copy /etc/network/interfaces from host system to the target.
\r
963 This option is automatically enabled when using --vm or --vmfile.
\r
966 <dt class="hdlist1">
\r
967 <strong>--nokernel</strong>
\r
971 Skip installation of default kernel images. This option might be
\r
972 interesting for you if you want a Debian system which doesn’t
\r
973 need to provide regular boot, e.g. a system which provides
\r
974 ISOs for booting via GRUB using grml-rescueboot.
\r
977 <dt class="hdlist1">
\r
978 <strong>--nopackages</strong>
\r
982 Skip installation of packages defined in /etc/debootstrap/packages.
\r
985 <dt class="hdlist1">
\r
986 <strong>--nopassword</strong>
\r
990 Do not prompt for the root password. Note: Use the <em>--password</em> option if
\r
991 you want to set the root password during an automatic installation but don’t
\r
992 want to use the interactive dialog.
\r
995 <dt class="hdlist1">
\r
996 <strong>-p</strong>, <strong>--mntpoint</strong> <em>/mntpoint</em>
\r
1000 Specify mount point that should be used for mounting the target system.
\r
1001 Corresponding with configuration variable MNTPOINT.
\r
1002 Note: this option has no effect if option -t is given and represents a
\r
1006 <dt class="hdlist1">
\r
1007 <strong>--packages</strong> <em>file</em>
\r
1011 Use specified file as list for packages that should be installed instead of
\r
1012 the default package list file <confdir>/packages.
\r
1015 <dt class="hdlist1">
\r
1016 <strong>--password</strong> <em>password</em>
\r
1020 Use specified password as password for user root. Use with caution, as your
\r
1021 command line might be visible in the process list and the shell history.
\r
1022 It’s meant for automatic installation only.
\r
1025 <dt class="hdlist1">
\r
1026 <strong>-r</strong>, <strong>--release</strong> <em>releasename</em>
\r
1030 Specify release of new Debian system. Supported releases names: lenny,
\r
1031 squeeze, wheezy, jessie (note: requires a recent version of debootstrap)
\r
1032 and sid. Corresponding with configuration variable RELEASE.
\r
1035 <dt class="hdlist1">
\r
1036 <strong>--pre-scripts</strong> <em>directory</em>
\r
1040 Execute scripts from specified directory before executing the chroot
\r
1041 script. This allows customisation of the system before the chroot has
\r
1042 been set up. The environment variable $MNTPOINT is available inside the
\r
1043 scripts for direct access of the chroot.
\r
1044 Default directory: /etc/debootstrap/pre-scripts/
\r
1047 <dt class="hdlist1">
\r
1048 <strong>--scripts</strong> <em>directory</em>
\r
1052 Execute scripts from specified directory. This allows customisation of
\r
1053 the system after the chroot has been set up. The environment variable
\r
1054 $MNTPOINT is available inside the scripts for direct access of the chroot.
\r
1055 Default directory: /etc/debootstrap/scripts/
\r
1058 <dt class="hdlist1">
\r
1059 <strong>-t</strong>, <strong>--target</strong> <em>target</em>
\r
1063 Target partition (/dev/…) or directory (anything else without /dev at the
\r
1067 <dt class="hdlist1">
\r
1068 <strong>-v</strong>, <strong>--verbose</strong>
\r
1072 Increase verbosity.
\r
1075 <dt class="hdlist1">
\r
1076 <strong>--vm</strong>
\r
1080 Set up a Virtual Machine on an existing block device, which will be
\r
1082 This allows deployment of a Virtual Machine. The options needs to be
\r
1083 combined with the --target option.
\r
1084 Usage example: --vm --target /dev/mapper/your-vm-disk
\r
1087 <dt class="hdlist1">
\r
1088 <strong>--vmfile</strong>
\r
1092 Set up a Virtual Machine instead of installing to a partition or directory.
\r
1093 This allows deployment of a Virtual Machine. The options needs to be
\r
1094 combined with the --target option.
\r
1095 Usage example: --vmfile --target /mnt/sda1/qemu.img
\r
1098 <dt class="hdlist1">
\r
1099 <strong>--vmsize</strong> <em>size</em>
\r
1103 Use specified size for size of Virtual Machine disk file. If not specified it
\r
1104 defaults to 2G (being 2GB). Syntax as supported by qemu-img (see manpage
\r
1105 qemu-img(1) for details.
\r
1106 Usage example: --vmsize 3G
\r
1109 <dt class="hdlist1">
\r
1110 <strong>-V</strong>, <strong>--version</strong>
\r
1114 Show version of program and exit.
\r
1118 <div class="admonitionblock">
\r
1121 <img src="./images/icons/warning.png" alt="Warning" />
\r
1123 <td class="content">the command line parsing of grml-debootstrap usually does not validate
\r
1124 the provided arguments for the command line options. Please be careful and check
\r
1125 docs and /etc/debootstrap/config for further information.</td>
\r
1130 <div class="sect1">
\r
1131 <h2 id="_usage_examples">Usage examples</h2>
\r
1132 <div class="sectionbody">
\r
1133 <div class="literalblock">
\r
1134 <div class="content">
\r
1135 <pre><code>grml-debootstrap --target /dev/sda1 --grub /dev/sda</code></pre>
\r
1137 <div class="paragraph"><p>Install default Debian release (jessie) on /dev/sda1 and install bootmanager
\r
1138 Grub in MBR (master boot record) of /dev/sda and use /dev/sda1 as system partition.</p></div>
\r
1139 <div class="literalblock">
\r
1140 <div class="content">
\r
1141 <pre><code>grml-debootstrap --target /dev/sda6 --grub /dev/sda --release sid</code></pre>
\r
1143 <div class="paragraph"><p>Install Debian unstable/sid on /dev/sda6, install bootmanager Grub in MBR
\r
1144 (master boot record) of /dev/sda and use /dev/sda6 as system partition.</p></div>
\r
1145 <div class="literalblock">
\r
1146 <div class="content">
\r
1147 <pre><code>mount /dev/sda1 /data/chroot
\r
1148 grml-debootstrap --target /data/chroot</code></pre>
\r
1150 <div class="paragraph"><p>Install default Debian release (jessie) in directory /data/chroot (without
\r
1151 any bootloader).</p></div>
\r
1152 <div class="literalblock">
\r
1153 <div class="content">
\r
1154 <pre><code>grml-debootstrap --target /dev/sda3 --grub /dev/sda --mirror ftp://ftp.tugraz.at/mirror/debian</code></pre>
\r
1156 <div class="paragraph"><p>Install default Debian release (jessie) on /dev/sda3 and install bootmanager
\r
1157 Grub in MBR (master boot record) of /dev/sda and use /dev/sda3 as system partition.
\r
1158 Use specified mirror instead of the default (<a href="http://http.debian.net/debian">http://http.debian.net/debian</a>) one.</p></div>
\r
1159 <div class="literalblock">
\r
1160 <div class="content">
\r
1161 <pre><code>mount /dev/sda1 /mnt/sda1
\r
1162 grml-debootstrap --vmfile --vmsize 3G --target /mnt/sda1/qemu.img</code></pre>
\r
1164 <div class="paragraph"><p>Install default debian release (jessie) in a Virtual Machine file with
\r
1165 3GB disk size (including Grub as bootmanager in MBR of the virtual disk file):</p></div>
\r
1166 <div class="literalblock">
\r
1167 <div class="content">
\r
1168 <pre><code>mount -o loop /mnt/sda6/debian-CD-1.iso /mnt/iso
\r
1169 grml-debootstrap --target /dev/sda1 --grub /dev/sda --iso file:/mnt/iso/debian/</code></pre>
\r
1171 <div class="paragraph"><p>Install Debian on /dev/sda1 using the loopback mounted Debian-ISO
\r
1172 for the base-system and install bootmanager Grub in MBR (master boot record) of
\r
1173 /dev/sda and use /dev/sda1 as system partition. Please notice, that the chroot
\r
1174 system requires network access for all packages which are not part of the
\r
1178 <div class="sect1">
\r
1179 <h2 id="_files">Files</h2>
\r
1180 <div class="sectionbody">
\r
1181 <div class="literalblock">
\r
1182 <div class="content">
\r
1183 <pre><code>/etc/debootstrap/config</code></pre>
\r
1185 <div class="paragraph"><p>Main configuration file. Adjust it according to your needs if you want to
\r
1186 execute grml-debootstrap in the non-interactive mode without any special command
\r
1187 line arguments.</p></div>
\r
1188 <div class="literalblock">
\r
1189 <div class="content">
\r
1190 <pre><code>/etc/debootstrap/chroot-script</code></pre>
\r
1192 <div class="paragraph"><p>The script executed within the new Debian system as soon as the main system
\r
1193 has been installed via [c]debootstrap.</p></div>
\r
1194 <div class="literalblock">
\r
1195 <div class="content">
\r
1196 <pre><code>/etc/debootstrap/locale.gen</code></pre>
\r
1198 <div class="paragraph"><p>Defines the default locales used for generating locales via locale-gen.</p></div>
\r
1199 <div class="literalblock">
\r
1200 <div class="content">
\r
1201 <pre><code>/etc/debootstrap/packages</code></pre>
\r
1203 <div class="paragraph"><p>Defines the software packages which should be installed in the new
\r
1204 Debian system by default.</p></div>
\r
1205 <div class="literalblock">
\r
1206 <div class="content">
\r
1207 <pre><code>/etc/debootstrap/extrapackages/</code></pre>
\r
1209 <div class="paragraph"><p>Debian Packages dropped in this directory will be installed into the new Debian
\r
1210 system by default (Control variable: EXTRAPACKAGES)</p></div>
\r
1213 <div class="sect1">
\r
1214 <h2 id="_customization">Customization</h2>
\r
1215 <div class="sectionbody">
\r
1216 <div class="paragraph"><p>You can control execution of grml-debootstrap via adjusting
\r
1217 /etc/debootstrap/config for some main stuff or via setting some selected
\r
1218 variables via command line. The packages which should be installed in the new
\r
1219 Debian system can be defined via the file /etc/debootstrap/packages. If you
\r
1220 want to put existing files to the new Debian system you can place them into the
\r
1221 (by default non-existing) directories boot, etc, share, usr and var in
\r
1222 /etc/debootstrap/. Every existing directory will be copied to the new Debian
\r
1223 system then. If you want to install additional packages that are not available
\r
1224 via the Grml or Debian mirror drop them into /etc/debootstrap/extrapackages and
\r
1225 make sure that EXTRAPACKAGES is set to "yes".</p></div>
\r
1228 <div class="sect1">
\r
1229 <h2 id="_automatic_installation">Automatic installation</h2>
\r
1230 <div class="sectionbody">
\r
1231 <div class="paragraph"><p>If environment variable AUTOINSTALL is set grml-debootstrap can be executed in a
\r
1232 full automatic mode. While this mode isn’t really useful for interactive
\r
1233 execution (just configure /etc/debootstrap/configure or specify the relevant
\r
1234 variables on the command line instead) it is meant for use via boot option
\r
1235 debian2hd on the Grml live system. The boot option debian2hd (more precise: the
\r
1236 kernelname at the bootprompt) supports the following boot options (they
\r
1237 correspond with the command line options mentioned above):</p></div>
\r
1238 <div class="literalblock">
\r
1239 <div class="content">
\r
1240 <pre><code>target=...</code></pre>
\r
1242 <div class="paragraph"><p>The target partition/directory of the new Debian system. Usage example:
\r
1243 target=/dev/sda1</p></div>
\r
1244 <div class="literalblock">
\r
1245 <div class="content">
\r
1246 <pre><code>grub=...</code></pre>
\r
1248 <div class="paragraph"><p>Where do you want to install grub to? Usage example: grub=/dev/sda</p></div>
\r
1249 <div class="literalblock">
\r
1250 <div class="content">
\r
1251 <pre><code>release=...</code></pre>
\r
1253 <div class="paragraph"><p>Specify release of new Debian system. Defaults to Debian jessie. Supported
\r
1254 relases: lenny, squeeze, wheezy, jessie and sid. Usage example: release=sid</p></div>
\r
1255 <div class="literalblock">
\r
1256 <div class="content">
\r
1257 <pre><code>mirror=...</code></pre>
\r
1259 <div class="paragraph"><p>Specify mirror which should be used for apt-get/aptitude instead
\r
1260 of the default one (<a href="http://http.debian.net/debian">http://http.debian.net/debian</a>).
\r
1261 Usage example: mirror=ftp://ftp.tugraz.at/mirror/debian</p></div>
\r
1262 <div class="literalblock">
\r
1263 <div class="content">
\r
1264 <pre><code>password=...</code></pre>
\r
1266 <div class="paragraph"><p>Set password of user root without prompting for it but set it to the given
\r
1267 argument. Usage example: password=AiTh5ahn</p></div>
\r
1268 <div class="sect2">
\r
1269 <h3 id="_usage_example_for_automatic_installation">Usage example for automatic installation</h3>
\r
1270 <div class="literalblock">
\r
1271 <div class="content">
\r
1272 <pre><code>debian2hd target=/dev/sda1 grub=/dev/sda mirror=ftp://ftp.tugraz.at/mirror/debian password=foobar</code></pre>
\r
1274 <div class="paragraph"><p>You have to enter this command line at the bootprompt of the Grml live system.
\r
1275 Please make sure that /dev/sda1 is the partition where you really want to
\r
1276 install your new Debian system.</p></div>
\r
1277 <div class="admonitionblock">
\r
1280 <img src="./images/icons/note.png" alt="Note" />
\r
1282 <td class="content">Automatic installation within booting process is done in grml-autoconfig via
\r
1283 setting environment variable AUTOINSTALL and creation of
\r
1284 /usr/bin/grml-debootstrap_noninteractive with the available and relevant
\r
1285 boot options for grml-debootstrap.</td>
\r
1291 <div class="sect1">
\r
1292 <h2 id="_supported_releases">Supported Releases</h2>
\r
1293 <div class="sectionbody">
\r
1294 <div class="tableblock">
\r
1295 <table rules="all"
\r
1298 cellspacing="0" cellpadding="4">
\r
1299 <caption class="title">Table 1. Current status</caption>
\r
1300 <col width="50%" />
\r
1301 <col width="50%" />
\r
1304 <th align="left" valign="top">Release </th>
\r
1305 <th align="left" valign="top">Status</th>
\r
1310 <td align="left" valign="top"><p class="table">lenny</p></td>
\r
1311 <td align="left" valign="top"><p class="table">works[1]</p></td>
\r
1314 <td align="left" valign="top"><p class="table">squeeze</p></td>
\r
1315 <td align="left" valign="top"><p class="table">works</p></td>
\r
1318 <td align="left" valign="top"><p class="table">wheezy</p></td>
\r
1319 <td align="left" valign="top"><p class="table">works</p></td>
\r
1322 <td align="left" valign="top"><p class="table">jessie</p></td>
\r
1323 <td align="left" valign="top"><p class="table">works</p></td>
\r
1326 <td align="left" valign="top"><p class="table">sid</p></td>
\r
1327 <td align="left" valign="top"><p class="table">works[2]</p></td>
\r
1332 <div class="admonitionblock">
\r
1335 <img src="./images/icons/note.png" alt="Note" />
\r
1337 <td class="content">
\r
1338 <div class="title">lenny release</div>
\r
1339 <div class="paragraph"><p>[1] Please notice that lenny is an unsupported release within Debian nowadays.
\r
1340 grml-debootstrap can handle the release but you really should not use lenny
\r
1341 anymore unless you really know what you are doing. Choose Debian 7.0 (wheezy) or
\r
1342 something newer instead.</p></div>
\r
1343 <div class="paragraph"><p>Notice that you need to specify a mirror providing the lenny release, the
\r
1344 default (<a href="http://http.debian.net/debian">http://http.debian.net/debian</a>) doesn’t provide it any longer nowadays.
\r
1345 Set the mirror to e.g. <a href="http://archive.debian.org/debian/">http://archive.debian.org/debian/</a> if you don’t have
\r
1346 your own lenny mirror.</p></div>
\r
1347 <div class="paragraph"><p>Also when debootstrapping lenny on a live system with a kernel version
\r
1348 like "3.16-1-grml-amd64" lenny’s libc will fail to install with:</p></div>
\r
1349 <div class="literalblock">
\r
1350 <div class="content">
\r
1352 /var/lib/dpkg/tmp.ci/preinst: line 265: [: 3.16-1-grml-amd64: integery expression expected
\r
1353 /var/lib/dpkg/tmp.ci/preinst: line 231: 3.16-1-grml-amd64: syntax error: invalid arithemtic operator (error token is ".16-1-grml-amd64")
\r
1354 dpkg: error processing /var/cache/apt/archives/libc6_2.7-18lenny7_amd64.deb (--install):
\r
1355 [....]</code></pre>
\r
1357 <div class="paragraph"><p>To workaround this either debootstrap from a system with an according
\r
1358 kernel version or use the "fake uname" workaround (just google for it).</p></div>
\r
1359 <div class="paragraph"><p>When installing lenny to a new mdraid, grml-debootstrap will use md metadata
\r
1360 format version 0.90. This limits the device to a maximum size of 2TB, but has
\r
1361 the advantage of grub-legacy actually being able to boot from it.</p></div>
\r
1365 <div class="admonitionblock">
\r
1368 <img src="./images/icons/note.png" alt="Note" />
\r
1370 <td class="content">
\r
1371 <div class="title">unstable and testing releases</div>
\r
1372 <div class="paragraph"><p>[2] Please notice that Debian/testing and Debian/unstable (sid) might
\r
1373 not be always installable due to their nature. What <em>might</em> work instead is
\r
1374 deploying a stable release and upgrade it after installation finished.</p></div>
\r
1380 <div class="sect1">
\r
1381 <h2 id="_bugs">Bugs</h2>
\r
1382 <div class="sectionbody">
\r
1383 <div class="paragraph"><p>Probably. Please send bugreports to Michael Prokop <<a href="mailto:mika@grml.org">mika@grml.org</a>>.</p></div>
\r
1386 <div class="sect1">
\r
1387 <h2 id="_see_also">See also</h2>
\r
1388 <div class="sectionbody">
\r
1389 <div class="paragraph"><p>debootstrap (8), cdebootstrap (1).</p></div>
\r
1392 <div class="sect1">
\r
1393 <h2 id="_author">Author</h2>
\r
1394 <div class="sectionbody">
\r
1395 <div class="paragraph"><p>Michael Prokop <<a href="mailto:mika@grml.org">mika@grml.org</a>></p></div>
\r
1399 <div id="footnotes"><hr /></div>
\r
1401 <div id="footer-text">
\r
1403 2014-12-30 10:50:18 CET
\r