[Fai-commit] r3407 - in people/michael/features/setup_harddisks_2: . examples

fai-repository at svn.debian.org fai-repository at svn.debian.org
Thu Apr 13 13:23:52 UTC 2006


Author: michael-guest
Date: 2006-04-13 13:23:52 +0000 (Thu, 13 Apr 2006)
New Revision: 3407

Modified:
   people/michael/features/setup_harddisks_2/examples/model
   people/michael/features/setup_harddisks_2/setup_harddisks_2
Log:
added commented examples to script


Modified: people/michael/features/setup_harddisks_2/examples/model
===================================================================
--- people/michael/features/setup_harddisks_2/examples/model	2006-04-13 13:10:16 UTC (rev 3406)
+++ people/michael/features/setup_harddisks_2/examples/model	2006-04-13 13:23:52 UTC (rev 3407)
@@ -1,4 +1,4 @@
-disk_config hda   preserve:7   disklabel:msdos  
+disk_config hda   preserve:6,7   disklabel:msdos  
 primary /boot     20        rw                  ext3
 primary swap      1000     sw         swap
 primary /         12000      rw                  ext3  -b 2048

Modified: people/michael/features/setup_harddisks_2/setup_harddisks_2
===================================================================
--- people/michael/features/setup_harddisks_2/setup_harddisks_2	2006-04-13 13:10:16 UTC (rev 3406)
+++ people/michael/features/setup_harddisks_2/setup_harddisks_2	2006-04-13 13:23:52 UTC (rev 3407)
@@ -1,5 +1,50 @@
 #!/usr/bin/perl -w
- 
+
+# A disk_config file is read line by line; the exact grammar can be found below,
+# using EBNF. A few examples are given to make things more obvious:
+#
+# # Configure the device /dev/hda
+# disk_config hda   preserve:6,7   disklabel:msdos  
+# # preserve the 6th and the 7th partition. Alternatively, 
+# # one could say preserve7 below. The disklabel is msdos, which is the default.
+# primary /boot     20        rw                  ext3
+# # create a primary partition /dev/hda1 with a size of 20 MB and mount it
+# # read-write as /boot; it is formatted using ext3 filesystem
+# primary swap      1000     sw         swap
+# # /dev/hda2 will be a swap space of 1000 MB
+# primary /         12000      rw                  ext3  -b 2048
+# # /dev/hda3 should be formatted using ext3 filesystem; when calling mkfs.ext3
+# # the option "-b 2048" is appended.
+# logical /tmp      1000      rw,nosuid		ext3
+# # create the logical partition /dev/hda5
+# logical /usr      preserve6      rw                  ext3
+# logical /var      2000-      rw                  ext3
+# # make /dev/hda7 at least 2000 MB
+# logical /nobackup 0-	rw                   xfs
+# # use mkfs.xfs to format the partition
+#
+#
+# # Create a softRAID
+# disk_config raid
+# raid1        /    sda1,sdd1  rw,errors=remount-ro    ext2
+# # create a RAID-1 on /dev/sda1 and /dev/sdd1, format using mkfs.ext2 and mount
+# # it as /
+# raid0        -    sdb1,sde1  default                 ext2
+# # create a RAID-0 on /dev/sdb1 and /dev/sde1
+#
+#
+# # config an LVM
+# disk_config lvm
+# pv  my_pv   md2,md3
+# # create the physical volume group my_pv on the (RAID) devices /dev/md2 and
+# # /dev/md3
+# my_pv:_usr	/usr			2048        rw,notail    reiser
+# # create the logical volume _usr on the physical volume group my_pv
+#
+#
+#
+# complete EBNF grammar:
+#
 # file ::= <lines> EOF
 # 
 # lines ::= EOL




More information about the Fai-commit mailing list