hello - sometimes i use setup-storage in debug mode to look at how various drives will end up partitioned if run through fai. to do so i use something like the attached ssd.disk_config file and run (for /dev/sdak & /dev/sdal in this example): sudo bash -c '/usr/sbin/setup-storage -D "sdak sdal" -d -f /tmp/ssd.disk_config'
with the fai-setup-storage 4.0.3 package this works and returns the desired "would run command" output. w/4.0.4 it fails with: Use of uninitialized value $_[0] in substr at /usr/share/perl5/Parse/RecDescent.pm line 3130, <$config_file> line 1. Use of uninitialized value $_[0] in substr at /usr/share/perl5/Parse/RecDescent.pm line 3130, <$config_file> line 1. Unknown starting rule (Parse::RecDescent::dclone) called at /usr/share/fai/setup-storage//Parser.pm line 1129 copying the Parser.pm file from 4.0.3 resolves this, and it looks related to the fix from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=686388 i may be missing something, but it looks like a bug and i'll open a new report unless i hear otherwise... thanks! andy -- andrew bezella <abeze...@archive.org> Internet Archive
# config file for setup-storage # # disabling both -c (mount-count-dependent) and -i (time-dependent) # checking # # <type> <mountpoint> <size> <fs type> <mount options> <misc options> disk_config sdak disklabel:gpt align-at:1M primary - 100% - - disk_config sdal sameas:sdak