El mié, 06-06-2007 a las 11:51 +0200, Oliver Grawert escribió:
> hi,
> Am Mittwoch, den 06.06.2007, 01:37 -0700 schrieb Vagrant Cascadian:
> > the udev rules, or the scripts they call (/lib/udev/add_fstab_entry,
> > /lib/udev/remove_fstab_entry) should maybe be modified to respect the
> > LOCALDEV setting in /etc/lts.conf.
> that will break all static devices that are there before we even read
> lts.conf, we would need to fundamentally redesign that part.
> 
> ciao
>       oli


You can move udev rules to ltsp-build-package plugins:

Example based on
ltsp-0.99debian12/server/plugins/ltsp-build-client/common/010-etc-hosts:


case "$MODE" in
    after-install)
        cat <<EOF > $ROOT/etc/udev/rules.d/88-ltsp.rules
# /etc/udev/rules.d/88-ltsp.rules
ACTION=="add", KERNEL=="fd[0-9]", RUN+="add_fstab_entry %k auto"
ACTION=="add", SUBSYSTEM=="block", RUN+="add_fstab_entry %k"
ACTION=="remove", SUBSYSTEM=="block", RUN+="remove_fstab_entry %k"
EOF
        ;;
esac



or something like this (creating a link with rules):

case "$MODE" in
    after-install)
        chroot $ROOT ln -s /etc/ltsp/88-ltsp.rules \
                           /etc/udev/rules.d/88-ltsp.rules
        ;;
esac
# need to move 88-ltsp.rules from /etc/udev to /etc/ltsp/ in package
ltspfsd


don't worry about /lib/udev/* without rules, nobody call them.



> it might be good for ltspfsd to depend on the ltsp-client package,
> which
> would prevent it from being installed on "regular" systems with hard
> drives.
> 

Please, not !!! I'm trying to use this package without installing LTSP


Bye

-- 
http://soleup.eup.uva.es/mariodebian

Attachment: signature.asc
Description: Esta parte del mensaje está firmada digitalmente

Reply via email to