First try, Jaunty Alternate, a bug

Asmo Koskinen asmo.koskinen at arkki.info
Fri Feb 27 17:41:23 GMT 2009


Asmo Koskinen kirjoitti:

> /opt/ltsp/i386/lib/udev/rules.d/80-ltspfsd.rules

Lenny (Debian stable) worked with usb sticks, it has little bit 
different rules file for ltspfsd.

Lenny:

# udev rules for Debian systems, usually installed into:
# /etc/udev/rules.d/z60_ltspfsd.rules

# legacy floppy drives:
ACTION=="add", KERNEL=="fd[0-9]", RUN+="ltspfs_entry add %k auto"

# USB floppy drives:
ACTION=="add", SUBSYSTEM=="block", KERNEL!="fd[0-9]", 
ENV{ID_TYPE}=="floppy", ATTRS{removable}=="1", RUN+="ltspfs_entry add %k 
auto"

# USB sticks and other removable drives:
ACTION=="add", SUBSYSTEM=="block", ENV{ID_TYPE}=="disk", 
ATTRS{removable}=="1", RUN+="ltspfs_entry add %k"

# external USB hard drives:
ACTION=="add", SUBSYSTEM=="block", ENV{ID_BUS}=="usb", 
ENV{ID_TYPE}=="disk", ATTRS{removable}!="1", RUN+="ltspfs_entry add %k"

# CDROM drives:
ACTION=="add", SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", 
ATTRS{removable}=="1", RUN+="ltspfs_entry add %k"

# internal hard drives:
# (NOTE: enabling this will provide root-level write access to local 
hard disks)
#ACTION=="add", SUBSYSTEM=="block", ENV{ID_TYPE}=="disk", 
ATTRS{removable}!="1", RUN+="ltspfs_entry add %k"

# device removals:
ACTION=="remove", SUBSYSTEM=="block", RUN+="ltspfs_entry remove %k"
----

Lenny has a line for "USB sticks and other removable drives". Should 
Jaunty had it too?

Jaunty:

# udev rules for Debian systems, usually installed into:
# /etc/udev/rules.d/z60_ltspfsd.rules

# legacy floppy drives:
ACTION=="add", KERNEL=="fd[0-9]", RUN+="ltspfs_entry add %k auto"

# USB floppy drives:
ACTION=="add", SUBSYSTEM=="block", KERNEL!="fd[0-9]", 
ENV{ID_TYPE}=="floppy", ATTRS{removable}=="1", RUN+="ltspfs_entry add %k 
auto"

# other drives:
ACTION=="add", SUBSYSTEM=="block", ENV{ID_TYPE}!="floppy", 
RUN+="ltspfs_entry add %k"

# device removals:
ACTION=="remove", SUBSYSTEM=="block", RUN+="ltspfs_entry remove %k"
----

Best Regards Asmo Koskinen.



More information about the edubuntu-users mailing list