Hi Nataneal,

>>> I'd suggest to add a CFGDEV and default it to:
>>>
>>>
>>> CFGDEV=$PKGPATH
>>>
>>>
>>> Then can the user choose himself.
>>>
>>>
>> Good suggestion didn't thought about that, but PKGPATH can be a list
>> and the first entry can still be a CDROM.
>
> then you could default CFGDEV to something like: CFGDEV=`echo $PKGPATH |
> sed 's:/dev/cdrom::'`
>
>> I'm not sure if it's obvious if
>> backup fails that the above entry can be the fault, if a note is added
>> in the leaf.cfg file that the first entry is the backup device in the
>> PKGPATH
>> it could be clearer. But I'm still not sure what to do...
>
> In alpine,  you have to specify where to commit:
>
>
> lbu commit floppy lbu commit usb
>
> where the target needs to exist in /etc/fstab and be mounted in /media/*.
> If no target is specifide, lbu will try to use $LBU_MEDIA.
>
That is also possible in the config system from Bering-uClibc, it's not
that difficult to parse LRPKGPATH and ask which device to backup to and
when it fails defaulting to the first device in the list. I think I will
implement something like that.

>
> --
> Natanael Copa
>
Eric




_______________________________________________
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to