Re: localdev and fixed devices

CyberOrg <[email protected]>
Newsgroups gmane.linux.terminal-server.devel
Message-ID <[email protected]>
On Sun, Sep 7, 2008 at 10:39 AM, Gideon Romm
<[email protected]> wrote:
> Hi, everybody.
>
> Please check out this branch for a proposed solution:
>
> lp:~gideon/ltsp/ltspfs-trunk-gadi
>
> I introduce an lts.conf parameter called "LOCALDEV_DENY".  With this
> parameter, you can deny local devices based upon udevinfo criteria or
> combinations of several udevinfo criteria.
>
Thats a great idea :)

> Syntax:
>
> LOCALDEV_DENY = "var1:val1,var2:val2,var3:val3+var4:val4"
>
> Which means:
>
> Deny local devices if:  var1 = val1 OR var2 = val2 OR (var3 = val3 AND
> var4 = val4)
>
> So, if I want to block all local scsi hard drives, I simply do:
>
> LOCALDEV_DENY = "ID_TYPE:disk+ID_BUS:scsi"
>
> To block all USB devices:
>
> LOCALDEV_DENY = "ID_BUS:usb"
>
> To block all IDE and SCSI hard drives:
>
> LOCALDEV_DENY = "ID_TYPE:disk+ID_BUS:scsi,ID_TYPE:disk+ID_BUS:ide"
>

Can't this be done by the script reading the variable?

We can predefine some of the common local devices, so  user just enters:

LOCALDEV_DENY_0=IDE
LOCALDEV_DENY_1=SCSI
LOCALDEV_DENY_2=USB

To block all IDE, SCSI and USB, allowing multiple use of LOCALDEV_DENY
variable. All the geeky udev stuff can be handled behind the scenes.

Cheers

-J

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.