On 25.04.2012 00:39, Samuel Thibault wrote: > Vladimir 'φ-coder/phcoder' Serbinenko, le Wed 25 Apr 2012 00:31:26 +0200, a écrit : >> On 25.04.2012 00:21, Samuel Thibault wrote: >>> Vladimir 'φ-coder/phcoder' Serbinenko, le Tue 24 Apr 2012 22:14:33 +0200, a écrit : >>>> On 24.04.2012 19:13, Samuel Thibault wrote: >>>>> Vladimir 'φ-coder/phcoder' Serbinenko, le Tue 24 Apr 2012 15:19:25 +0200, a écrit : >>>>>> On 24.04.2012 14:42, Samuel Thibault wrote: >>>>>>>> I'm surprised that Hurd doesn't offer a way to just ask "What does this >>>>>>>> filesystem translator consume?" >>>>>>> A file can reside inside an iso file, which >>>>>>> is stored in an ext2fs, which is stored in a file, >>>>>> So much GRUB can handle. >>>>> But how to express that to GRUB? grub_guess_root_devices only returns >>>>> a series of alternative paths. See below. >>>> By just giving the file in question. >>> That will not tell you which image has to be mounted to find it. >> As I said: currently we assume that image is for VM use, so nothing >> needs to be specifically mounted. Just return image filename. > That would work with only one layer. See my example above, it has > several layers, and you'd have to know the image filename at each layer. Right now we assume only one layer (VM use), more layers is for the future. > I'm not saying that GRUB should implement all these layers. I'm just > explaining why the "what does this translator consume?" is not a trivial > question at all in the Hurd, and thus does not have any interface for > it, and we have to define one that would only work for the trivial > cases. We just need to traverse one layer: the FS, and only the case when it's an FS. -- Regards Vladimir 'φ-coder/phcoder' Serbinenko