help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Searching for a directory to get the holding device


From: Andrei Borzenkov
Subject: Re: Searching for a directory to get the holding device
Date: Wed, 10 Feb 2016 15:10:09 +0300

On Wed, Feb 10, 2016 at 2:29 PM, Arbiel (gmx) <address@hidden> wrote:
> Hi
>
> Is it possible to have grub search for a directory
>
> search --set=device   --xxxx    "${dir_path}"
>

Of course.

search --file /path/to/file

Do not forget that path always must be absolute, grub always starts
from the root of filesystem

> without having to loop on all devices and testing whether
> (device)/${dir_path} is a directory or not ?
>
> Arbiel
>
>
> _______________________________________________
> Help-grub mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-grub
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]