[Fai-commit] r3408 - in people/michael/features/setup_harddisks_2:
. examples
fai-repository at svn.debian.org
fai-repository at svn.debian.org
Fri Apr 14 11:27:28 UTC 2006
Author: michael-guest
Date: 2006-04-14 11:27:27 +0000 (Fri, 14 Apr 2006)
New Revision: 3408
Modified:
people/michael/features/setup_harddisks_2/examples/model
people/michael/features/setup_harddisks_2/setup_harddisks_2
Log:
added some thoughts, bootable-support, label-example
Modified: people/michael/features/setup_harddisks_2/examples/model
===================================================================
--- people/michael/features/setup_harddisks_2/examples/model 2006-04-13 13:23:52 UTC (rev 3407)
+++ people/michael/features/setup_harddisks_2/examples/model 2006-04-14 11:27:27 UTC (rev 3408)
@@ -1,8 +1,8 @@
-disk_config hda preserve:6,7 disklabel:msdos
+disk_config hda preserve:6,7 disklabel:msdos bootable:3
primary /boot 20 rw ext3
primary swap 1000 sw swap
primary / 12000 rw ext3 -b 2048
logical /tmp 1000 rw,nosuid ext3
logical /usr preserve6 rw ext3
-logical /var 2000- rw ext3
+logical /var 2000- rw ext3 -L var_part
logical /nobackup 0- rw xfs
Modified: people/michael/features/setup_harddisks_2/setup_harddisks_2
===================================================================
--- people/michael/features/setup_harddisks_2/setup_harddisks_2 2006-04-13 13:23:52 UTC (rev 3407)
+++ people/michael/features/setup_harddisks_2/setup_harddisks_2 2006-04-14 11:27:27 UTC (rev 3408)
@@ -4,9 +4,11 @@
# 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
+# disk_config hda preserve:6,7 disklabel:msdos bootable:3
# # preserve the 6th and the 7th partition. Alternatively,
-# # one could say preserve7 below. The disklabel is msdos, which is the default.
+# # one could say preserve7 below. The disklabel is msdos, which is the default
+# # for x86. Furthermore the 3rd partition is made bootable, which would have
+# # happened as well by default as it is mounted as /
# 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
@@ -68,6 +70,8 @@
# /* preserve partitions */
# | disklabel:(msdos|sun)
# /* write a disklabel - default is msdos */
+# | bootable:[[:digit:]]
+# /* mark a partition bootable, default is / */
#
# volume ::= <type> <mountpoint> <size> <mount_options> <filesystem> <fs_options>
# | pv <name> <size>
@@ -114,14 +118,26 @@
# /* options appended to mkfs.xxx call */
#
#
-# TODO - Other things the parser/semantic analysis must take care of in the future:
-# * only a single RAID and LVM stanza should be allowed
-# * boot option is not supported yet - is it used by anybody?
-# * check Debian BTS for other requests
-#
-# TODO - next steps
-# * create fstab from input
-# * create command script
+# * TODO - single function to read partition table for a given physical device and store it in
+# some internal format
+# * TODO - backend to write things to disk, using e.g. parted (parted -s)
+# * TODO - command script:
+# - init_script
+# - make_cmds
+# > make_part_cmds
+# > make_raid_cmds
+# > make_lvm_cmds
+# - make_filesystems
+# * TODO - dependencies between LVM/RAID commands -> should be detected by
+# parser/semantic analysis
+# multiple RAID/LVM stanzas, but deps must be satisfied, global RAID-dev counter
+#
+# internal format, generated by parser:
+#
+# - list of records: line_no[int], mode[string], type[string], size[string],
+# fs[string], fs_opts[string]
+# - map to store fstab-info: dev(unique), mount_point(unique), fs, mount_opts
+#
my $mode = "";
my $line_no = 0;
@@ -211,6 +227,9 @@
elsif( $o =~ /^disklabel:(msdos|sun)$/ )
{
}
+ elsif( $o =~ /^bootable:\d+$/ )
+ {
+ }
else
{
die "Syntax error in line " . $line_no . " - invalid option " . $o . "\n";
More information about the Fai-commit
mailing list