[Aboriginal] [PATCH] Add dev-environment.sh support for virtio targets

Rob Landley rob at landley.net
Tue Sep 6 11:47:25 PDT 2011


On 09/05/2011 07:09 AM, Alessio Igor Bogani wrote:
> # HG changeset patch
> # User Alessio Igor Bogani <alessioigorbogani at gmail.com>
> # Date 1315224366 -7200
> # Node ID acffd6a11249923ecb9826efe70ac166c1d7c5ee
> # Parent  bafbd91ffbae38309cc14f0f1e486a030af53def
> Add dev-environment.sh support for virtio targets
> 
> diff -r bafbd91ffbae -r acffd6a11249 sources/root-filesystem/sbin/init.sh
> --- a/sources/root-filesystem/sbin/init.sh	Mon Sep 05 08:49:08 2011 +0200
> +++ b/sources/root-filesystem/sbin/init.sh	Mon Sep 05 14:06:06 2011 +0200
> @@ -36,6 +36,7 @@
>  
>    [ -b /dev/hdb ] && HOMEDEV=/dev/hdb
>    [ -b /dev/sdb ] && HOMEDEV=/dev/sdb
> +  [ -b /dev/vdb ] && HOMEDEV=/dev/vdb

Hmmm...  Possibly I should lean on shell wildcards here and just use
/dev/?db instead?  (Will there ever an hda and a sda in the same system?
 In theory mixing IDE and USB might, but the current script wouldn't
handle that either...

Rob

 1315334845.0


More information about the Aboriginal mailing list