From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1PWpMC-0004S3-PZ for mharc-grub-devel@gnu.org; Sun, 26 Dec 2010 07:05:48 -0500 Received: from [140.186.70.92] (port=33568 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PWpM9-0004Qd-N5 for grub-devel@gnu.org; Sun, 26 Dec 2010 07:05:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PWpM8-0007qB-Fj for grub-devel@gnu.org; Sun, 26 Dec 2010 07:05:45 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:57208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PWpM8-0007pz-BL for grub-devel@gnu.org; Sun, 26 Dec 2010 07:05:44 -0500 Received: by wyj26 with SMTP id 26so8194320wyj.0 for ; Sun, 26 Dec 2010 04:05:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type; bh=G/TN/dfCcTcXu0pncqY0n9ExjwJ9Z5vpV9jHV61hWpo=; b=FmTR2Se4gfYVoKblZzpgWlutQjwIY5muasyHjWpH6dZ9YTiZyDPX4Cp6dbRMsVBVOt gqddt1rbdogOs//ELSofotrX1n9IjFghbbWgPovLAJzHAozijSiufMocP3I1uxwP+jWz r5bOB/Im3wtd0YSpGy0VouBUEsphPASTz5jOQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; b=g5QbIqzk5UCm0k2wLx49Pb/H9tyx7zyw59OjM6mmAjCbM7q/lMr75tobSKfcHHR09K puvowtsRf0DxgKwcMscx0qDPAt89AaA7JiORVsCe3nYpluQQmXgKYULA6xI8Akq2Q7X9 gnxxpn/uip7XAjf6upwz4Rf2dKqR8oq92ociY= Received: by 10.216.154.67 with SMTP id g45mr6925905wek.84.1293365143286; Sun, 26 Dec 2010 04:05:43 -0800 (PST) Received: from debian.bg45.phnet (47-30.2-85.cust.bluewin.ch [85.2.30.47]) by mx.google.com with ESMTPS id r38sm5325135weq.47.2010.12.26.04.05.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 26 Dec 2010 04:05:42 -0800 (PST) Message-ID: <4D172F7D.1090909@gmail.com> Date: Sun, 26 Dec 2010 13:05:17 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101211 Icedove/3.0.11 MIME-Version: 1.0 To: =?UTF-8?B?Tmljb2xhcyBkZSBQZXNsb8O8YW4=?= References: <4D0FB8A2.5060407@gmail.com> <4D15E5C9.8000501@gmail.com> <4D164CC5.1090105@gmail.com> <4D16505E.3050209@gmail.com> <4D1670F1.7080701@gmail.com> <4D167D77.3000303@gmail.com> <4D171873.2060108@gmail.com> <4D171D34.80406@gmail.com> <4D172B19.3040509@gmail.com> In-Reply-To: <4D172B19.3040509@gmail.com> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig59D6631CA58003995E31B3B8" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: The development of GNU GRUB Subject: Re: USB bulk transfert from GRUB ? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Dec 2010 12:05:46 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig59D6631CA58003995E31B3B8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 12/26/2010 12:46 PM, Nicolas de Peslo=C3=BCan wrote: > Le 26/12/2010 11:47, Vladimir '=CF=86-coder/phcoder' Serbinenko a =C3=A9= crit : > >>> If I don't want the device to be switched, I need to remove the udev >>> rule for the device. > >> That's what I wanted to know. So you modify udev rules to control the >> behaviour of switching. Not >> really applicable to GRUB. Perhaps one would use a reduced database >> with only the devices one >> wants to switch? > > This is the reason why I suggested to give the vendor/device id, > end-point number and string as arguments. Because only few users will > have several different switchable devices and probably fewer will have > several they plan to boot from. > > I think we can reasonably discover the particular switchable and > bootable device a grub-mkconfig time and put the single (vendor-id, > device-id, end-point-number, switch-string) in grub.cfg : > > usb_bulk_write --vendor 0x0af0 --device 0x7501 --endpoint 0 \ > --string > 0x55534243785634120100000080000601000000000000000000000000000000 > > (example from /etc/usb_modeswitch.d/0af0:7501) > How exactly do we do it on mkconfig time? What prevents doing it on runti= me? >>> The only point is that I need to "burn" an new ISO if I want to >>> upgrade GRUB or change de >>> grub.cfg file. >>> >> you can even have grub.cfg on microSD using configfile directive. > > You mean, by using configfile by hand from the grub prompt? Or by > having a small grub.cfg in the ISO, that only switch the device, then > use configfile to load grub.cfg from the micro-SD? > The second > Nicolas. > --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig59D6631CA58003995E31B3B8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk0XL30ACgkQNak7dOguQglCZwD+Kz4mmjgVuTItUIEqyxKzUoxV UXXrJBGx2pDLXbx0B/wA/iwrWWC18BpDrHyfUxVWCHUyOVMP97rmbaeis2enNYf7 =elz5 -----END PGP SIGNATURE----- --------------enig59D6631CA58003995E31B3B8--