[Pkg-ltsp-devel] Bug#415460: ltspfs: usbfloppy support

Vagrant Cascadian vagrant at freegeek.org
Tue Jun 17 01:56:39 UTC 2008


tags 415460 pending
thanks

On Thu, Mar 27, 2008 at 04:44:55PM -0700, vagrant at freegeek.org wrote:
> without a usb floppy drive to test with, i've been unable to try and
> update the patch.

found a usb floppy drive, tested the following udev rules and committed
in bzr branch:

# 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"

# 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"


live well,
  vagrant





More information about the Pkg-ltsp-devel mailing list