On Mon, 18 Apr 2011, Michael Tautschnig wrote:

[...]

It looks like "align-at" does not longer work in experimental85


Indeed, there is a bug in the parser probably caused by a mis-merge on my part.
It's fixed in experimental86.

No, "align-at" does not work. Without ist works.

$ setup-storage -X -f /tmp/fai/stzdiskconfig -d
disklist: sda
sdb
Starting setup-storage 1.3+exp
Using config file: /tmp/fai/stzdiskconfig
Input was:
# example of new config file for setup-storage
#
# <type> <mountpoint> <size>   <fs type> <mount options> <misc options>

#disk_config disk1 disklabel:msdos

disk_config /dev/sda align-at:4k disklabel:msdos

# works
#disk_config /dev/sda disklabel:msdos
#fstabkey:uuid

primary  /boot          300             -   -
primary  -              0-        -      -
primary  swap      2G      swap      -
###home_disabled###logical  -              0-        -      -
###efi_disabled###logical  -              20        -      -
INTERNAL ERROR in setup-storage:
convert_unit 4kMiB
Please report this error to the Debian Bug Tracking System.
 at /usr/share/fai/setup-storage//Parser.pm line 370
        FAI::convert_unit('4kMiB') called at (eval 79) line 3690

Parse::RecDescent::namespace000001::option('Parse::RecDescent=HASH(0xa3b7fb8)', ' align-at:4k disklabel:msdos\x{a}\x{a}# works\x{a}#disk_config /dev/sda d...', 1, '', 'CODE(0xa85dfe0)') called at /usr/share/perl5/Parse/RecDescent.pm line 2904

Parse::RecDescent::_parserepeat('Parse::RecDescent=HASH(0xa3b7fb8)', ' align-at:4k disklabel:msdos\x{a}\x{a}# works\x{a}#disk_config /dev/sda d...', 'CODE(0xa433ae0)', 0, 100000000, '', 'Parse::RecDescent::Expectation=HASH(0xa85b448)', 'CODE(0xa85dfe0)') called at (eval 79) line 4474

Parse::RecDescent::namespace000001::disk_config_arg('Parse::RecDescent=HASH(0xa3b7fb8)', ' /dev/sda align-at:4k disklabel:msdos\x{a}\x{a}# works\x{a}#disk_config /...', 1, '', 'CODE(0xa85b3c8)') called at (eval 79) line 7851

Parse::RecDescent::namespace000001::config('Parse::RecDescent=HASH(0xa3b7fb8)', 'disk_config /dev/sda align-at:4k disklabel:msdos\x{a}\x{a}# works\x{a}#di...', 1, '', 'CODE(0xa861520)') called at (eval 79) line 4884

Parse::RecDescent::namespace000001::line('Parse::RecDescent=HASH(0xa3b7fb8)', 'disk_config /dev/sda align-at:4k disklabel:msdos\x{a}\x{a}# works\x{a}#di...', 1, '', 'CODE(0xa861200)') called at /usr/share/perl5/Parse/RecDescent.pm line 2904

Parse::RecDescent::_parserepeat('Parse::RecDescent=HASH(0xa3b7fb8)', '# example of new config file for setup-storage\x{a}#\x{a}# <type> <mo...', 'CODE(0xa433bc0)', 0, 100000000, '', 'Parse::RecDescent::Expectation=HASH(0xa1622a0)', 'CODE(0xa861200)') called at (eval 79) line 678

Parse::RecDescent::namespace000001::file('Parse::RecDescent=HASH(0xa3b7fb8)', '# example of new config file for setup-storage\x{a}#\x{a}# <type> <mo...', undef, undef, 'CODE(0xa86fe90)') called at /usr/share/perl5/Parse/RecDescent.pm line 2875 Parse::RecDescent::AUTOLOAD('Parse::RecDescent=HASH(0xa3b7fb8)', '# example of new config file for setup-storage\x{a}#\x{a}# <type> <mo...') called at /usr/share/fai/setup-storage//Parser.pm line 1128 FAI::run_parser('GLOB(0xa860f20)') called at /usr/sbin/setup-storage line 135

Antwort per Email an