* Michael Tautschnig <m...@debian.org> [Tue Apr 13, 2010 at 09:46:38AM +0200]: > > * Thomas Lange <la...@informatik.uni-koeln.de> [Mon Mär 29, 2010 at > > 03:07:08 +0200]:
> > > People like to use setup-storage without calling it from FAI. > > FullACK :) > I'm fine with that! Mika's patch is included in 3.4~beta1+experimental2 (with > minor tweaking of versioned conflicts with fai-client to (<< 3.4~)). But I > still > have a few comments, see below. Great! > > > 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 > I guess I'll add this to the man page, if I may? Sure. > > /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. > This should be fixed, but see below. ACK [...] > > 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 ;)) > - The paths: I think we should move at least fai-vol_id to > /usr/share/fai/setup-storage (and use the full path in Fstab.pm). > Should we do so for disk-info as well? But disk-info is used several times, > so > this is up to Thomas to decide. > - In fact, we should at least have all the stuff in /usr/share/fai (it's all > arch-indep), but that's probably a different story. Leaving that up to/for Thomas. > - Should we simply change setup-storage to set LOGDIR to some temporary dir > and > run disk-info if either of the variables is not yet set? I believe this > doesn't even warrant a separate wrapper. Yes, this would be great from my POV (allowing the advanced user to use it as he wants to and providing safe defaults/easy use for the usual user). > > Thomas and Michael Tautschnig, I'd especially appreciate your > > feedback - what do you think about it? > In general: great; we just need to iron out all the details. Great, I'm locking forward to be able to advertise setup-storage as standalone partitioner. :) regards, -mika-
signature.asc
Description: Digital signature