15.04.2017 13:55, Mat628 пишет: > Hi, > > I wanted to verify/clarify what would be an acceptable format for a disk id > to be used as a search parameter for a module to return the associated device. > > Where on Linux, devices are mapped to a hardware specific path. > For hard disks it is > > type-product_serial(-partition#) >
There is no established standard and this changed over time. GRUB uses platform firmware to access devices, so it can only use information firmware exports. In general we have no way to query for this information. > ata-ST42443343DR_6GE23Y09 > ata-ST42443343DR_6GE23Y09-part1 > > But for a USB flash drive it is > > type-vendor_product_serial-(?physical id?)-(part#) > > usb-SanDisk_Ultra_4E53324345657878876543-0:0-part1 > > where product = model name > > Would it be okay to shorten this for USB flash drive to > > type-product_serial-(part#) ? > > usb-Ultra_4E53324345657878876543-part1 > > To help keep it to a minimal amount of characters the user would have to > type. While ensuring the shortened version would not impact its reliability > to return the correct device. Even the 'type' could be removed if that is > okay with you? > > Best regards, > > Matt > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel > _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel