[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#492828: preseeding filesystem labels (patch)

package: debian-installer
Version: Debian GNU/Linux installer 4.0 (installer build 20070308etch2)
severity: minor

I was wondering how to set a label on a partition (not a partition table, but a label that e2label could read).

I couldn't see this documented in [1] so I wrote a patch, attached.
The statement about label{ } requiring method{ format } comes from
a comment in

Hopefully this is useful. If this is already documented somewhere,
please could you point me there.

I tested this usage with the 'etch' installer, on i386 (version noted
above). Worked For Me.


[1] http://d-i.alioth.debian.org/svn/debian-installer/installer/doc/devel/partman-auto-recipe.txt
--- installer/doc/devel/partman-auto-recipe.txt	(revision 54582)
+++ installer/doc/devel/partman-auto-recipe.txt	(working copy)
@@ -149,6 +149,14 @@
 	options/nodev{ nodev }
 	options/ro{ ro }
+It is also possible to specify filesystem labels, for filesystems that
+support labels (e.g. ext2, ext3). For example, to specify a label of
+"fred" for a partition, add the following line for that partition:
+        label{ fred }
+Note that the partition must be one that will be reformatted during
+the installation, i.e. one for which you have specified
+        method{ format }
 Here is another example; this time there is a smaller root partition, and a
 separate /home partition.

Reply to: