On 12/26/2010 12:46 PM, Nicolas de Pesloüan wrote: > 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) > How exactly do we do it on mkconfig time? What prevents doing it on runtime? >>> 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. >
-- Regards Vladimir 'φ-coder/phcoder' Serbinenko
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Grub-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/grub-devel
