Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Trouble booting from thumb drive...



On Tue, Dec 06, 2011 at 10:37:57PM +0700, Robert Elz wrote:
> So, here's an improved version, that actually correctly finds the
> first available free device (rather than returning the one after the
> biggest one in use), and which also checks to determine that the
> device selected actually exists in /dev to be available to use.
> (It does assume that there are no missing /dev entries, that is,
> if vnd3 is in use, then /dev/vnd[0-2]* all will exist).

Why not parse the output of vnconfig -l instead? That should be doable in less 
shell code.
 Thomas


Home | Main Index | Thread Index | Old Index