From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1PWp3f-0007qe-Pe for mharc-grub-devel@gnu.org; Sun, 26 Dec 2010 06:46:39 -0500 Received: from [140.186.70.92] (port=40300 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PWp3d-0007pt-Tx for grub-devel@gnu.org; Sun, 26 Dec 2010 06:46:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PWp3c-0003Wu-Tu for grub-devel@gnu.org; Sun, 26 Dec 2010 06:46:37 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:33712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PWp3c-0003Wl-J8 for grub-devel@gnu.org; Sun, 26 Dec 2010 06:46:36 -0500 Received: by wyj26 with SMTP id 26so8186290wyj.0 for ; Sun, 26 Dec 2010 03:46:35 -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 :content-type:content-transfer-encoding; bh=j/9wFllVWCTKJ893lcJoMVUecBJWL0xfsHZEbVz7+bA=; b=IAyZd2q6FZQckAZI9J2ZZC0rb7u5AM/dSjh/gurpwkW4pxuGpGvqHaOwY/tlm1aJpm A1vnvVRk5RM3RYtlr27mPoQc0u1uQP+Ekit1JnLvu0+6ZuxanaBmaOuyLxyQtSEO6JNG PRht45FLdQIF/GlzBAz49Z4ldsu5OGUARVQIU= 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:content-type:content-transfer-encoding; b=S8FIRCGYVWdUx5uwIQS8Y1IBO+d4DifmYqOVHbneh2XAGKifHkjp+PJKmEGcy7wOIx ZvFR9jmIrrGxvbkv57YlAjQO9pX2PR9CAsv5fjgAbnUOVIvZNEPKExNipk2+jfDkTQSH zyw/1yUh3yn84RPfJ1PQV7N/vz2uyCaLdilQU= Received: by 10.227.146.195 with SMTP id i3mr6788987wbv.67.1293363995633; Sun, 26 Dec 2010 03:46:35 -0800 (PST) Received: from [192.168.1.13] (AReims-156-1-48-106.w86-192.abo.wanadoo.fr [86.192.223.106]) by mx.google.com with ESMTPS id 11sm7600910wbj.1.2010.12.26.03.46.34 (version=SSLv3 cipher=RC4-MD5); Sun, 26 Dec 2010 03:46:35 -0800 (PST) Message-ID: <4D172B19.3040509@gmail.com> Date: Sun, 26 Dec 2010 12:46:33 +0100 From: =?UTF-8?B?Tmljb2xhcyBkZSBQZXNsb8O8YW4=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101030 Icedove/3.0.10 MIME-Version: 1.0 To: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= 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> In-Reply-To: <4D171D34.80406@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 11:46:39 -0000 Le 26/12/2010 11:47, Vladimir 'φ-coder/phcoder' Serbinenko a é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) >> 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? Nicolas.