* Thomas Lange <[email protected]> [Mon Mär 29, 2010 at 03:07:08 
+0200]:

> People like to use setup-storage without calling it from FAI.

FullACK :)

> This is how it should work

> - install the fai-client package
> - export PATH=/usr/lib/fai:${PATH}
> - export disklist=$(disk-info | sort)
> - setup-storage -X -f yourconfigfile

JFTR: $LOGDIR needs to be set as well.

Example session with adjusted /usr/share/fai/setup-storage/Fstab.pm:

| mkdir /tmp/foo
| export LOGDIR=/tmp/foo
| export disklist=$(/usr/lib/fai/disk-info | sort )
|
| cat > template << EOF
| disk_config sda
| primary /boot 40 ext3 rw
| primary swap  40 swap sw
| EOF
|
| setup-storage -X -f template

/usr/share/fai/setup-storage/Fstab.pm has been manually adjusted
because it invokes fai-vol_id without full path and I don't have
/usr/lib/fai in my $PATH.

As discussed via IRC I'd strongly favor providing setup-storage as
separate Debian package, because:

* it improves the options to set the according dependencies in the
  Debian package

* people who don't use FAI but need a tool like setup-storage might
  consider using it (and as a consequence providing a larger user
  base to setup-storage as well as possibly FAI)

I've started to work on the initial packaging against current svn
trunk of FAI:

  http://grml.org/tmp/split-out-setup-storage.patch

I'm not really happy to manually have to adjust $PATH so
/usr/share/fai/setup-storage/Fstab.pm finds /usr/lib/fai/fai-vol_id.
Would it be an option to provide a simple wrapper which sets $PATH,
$disklist and $LOGDIR to sane defaults (if not set already) and
provides all the cmdline arguments to setup-storage 1:1? (I'd work
on that, so I just request for an [N]ACK ;))

Thomas and Michael Tautschnig, I'd especially appreciate your
feedback - what do you think about it?

regards,
-mika-

Attachment: signature.asc
Description: Digital signature

Reply via email to