-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
184 lines (127 loc) · 5.71 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
#########
debisogen
#########
Tools to automate creation of custom `Debian`_ installer ISO images from
`preseed files`_.
********
Abstract
********
debisogen helps you get repeatable `Debian`_ installations from very
lightweight configuration:
* you already have a custom `preseed files`_, or you generate a new one with
debisogen templates;
* you have a base Debian ISO image, typically an official ISO image;
* debisogen produces a customized ISO image with the preseed and the base ISO;
* you can use the ISO image to automatically install a Debian system.
************
Installation
************
See INSTALL.
***********************
Generate a preseed file
***********************
Generate preseed file in ``var/`` directory:
.. code:: sh
bin/paster create -t debian_preseed var/
Answer questions. You get a ``var/preseed.cfg`` file.
.. note::
You can generate files without interaction with paster. See paster's
``--config`` option and additional command line arguments. Full help with
builtin ``paster help create`` command, or on `PasteScript`_ website.
*********************
Generate a Debian ISO
*********************
Use provided ``debisogen`` command to generate ISO file:
.. code:: sh
debisogen --help
As another example, to combine remote `Debian Squeeze amd64 business card
ISO`_ and `A custom FR preseed file for Debian Squeeze servers`_ to
``var/debian.iso`` file:
.. code:: sh
debisogen --preseed=https://raw.github.com/benoitbryon/debisogen/master/etc/preseed-server.cfg --input-iso=http://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-7.1.0-amd64-netinst.iso --output-iso=var/debian.iso
Obviously, you could be interested in using `the custom preseed file
generated in previous section <#generate-a-preseed-file-with-a-template>`_.
************
Preseed tips
************
.. note::
The following features are provided by the Debian installer itself, not by
debisogen. They are documented here as an informational tip.
Manually load preseed file in grub menu
=======================================
`A custom FR preseed file for Debian Squeeze servers`_ is provided in ``etc/``
directory. It defines following options:
* some fr_FR related configuration, such as locale, keyboard, mirror...
* root password will be prompted.
* no additional user account, i.e. you will have to create normal user account
as root.
* partitionning: 512Mo swap, and the rest is / as ext4.
* install only standard utilities.
Usage:
* Boot a machine on a Debian Squeeze ISO, as an example `Debian Squeeze
amd64 business card ISO`_.
* When you get to the install menu prompt, hit ESC, which will give you
``boot:`` prompt. At the prompt type:
.. code:: text
install auto=true priority=critical preseed/url=https://raw.github.com/benoitbryon/debisogen/master/etc/preseed-server.cfg
Put a preseed file on the network, to load it at boot time
==========================================================
You can use Python's builtin SimpleHttpServer to serve static files.
As an example, if you want to serve the sample preseed file provided at
``preseed-squeeze-server-fr.cfg`` on your machine:
.. code:: sh
python -m SimpleHttpServer 8000
So you can access this preseed file at
http://YOUR-IP:8000/preseed-server.cfg
Then refer to `Manually load preseed file in grub menu`_ above to load this
preseed file with boot loader.
************
Alternatives
************
These tools are really simple ones, and may stay simple. They were created as
a proof of concept and so they satisfy very simple needs. If you are looking
for more powerful tools, fetch the web. Advanced tools to create custom Debian
distributions and deploy them should exist...
**********
Contribute
**********
* Report and discuss issues or feature requests in the `bugtracker`_.
* Clone `code repository`_.
* Install development environment with ``make develop``.
* Run tests with ``make tests``.
**********
References
**********
* `Debian Squeeze documentation about preseeding`_
* `Debian Squeeze preseed example file`_
* `HOWTO automate Debian installs with preseed`_, where the preseeding file is
loaded on the network using grub options.
* `How to modify an existing Debian installer CD image`_
* `Simple CD and image cookbook`_
* `How to view, modify and recreate initrd.img`_
* `Documentation of partman-auto recipes`_
.. target-notes::
.. _`Debian`: http://debian.org/
.. _`preseed files`:
http://www.debian.org/releases/squeeze/amd64/apb.html.en
.. _`PasteScript`: http://pythonpaste.org/script/
.. _`Debian Squeeze amd64 business card ISO`:
http://cdimage.debian.org/debian-cd/6.0.5/amd64/iso-cd/debian-6.0.5-amd64-businesscard.iso
.. _`a custom FR preseed file for Debian Squeeze servers`:
https://raw.github.com/benoitbryon/debisogen/master/etc/preseed-server.cfg
.. _`bugtracker`: https://github.com/benoitbryon/debisogen/issues
.. _`code repository`: https://github.com/benoitbryon/debisogen
.. _`Debian Squeeze documentation about preseeding`:
http://www.debian.org/releases/squeeze/amd64/apb.html.en
.. _`Debian Squeeze preseed example file`:
http://www.debian.org/releases/squeeze/example-preseed.txt
.. _`HOWTO automate Debian installs with preseed`:
http://fak3r.com/2011/08/18/howto-automate-debian-installs-with-preseed
.. _`How to modify an existing Debian installer CD image`:
http://wiki.debian.org/DebianInstaller/Modify/CD
.. _`Simple CD and image cookbook`:
http://www.debian-administration.org/articles/273
.. _`How to view, modify and recreate initrd.img`:
http://www.thegeekstuff.com/2009/07/how-to-view-modify-and-recreate-initrd-img/
.. _`Documentation of partman-auto recipes`:
http://dev.blankonlinux.or.id/browser/nanggar/debian-installer/doc/devel/partman-auto-recipe.txt?rev=nanggar%2Cdebian-installer%2C1