help-grub
[Top][All Lists]
Advanced

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

check if file exist on ntfs partition to decide default boot order


From: Jarek
Subject: check if file exist on ntfs partition to decide default boot order
Date: Fri, 23 Apr 2021 23:35:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

Hi!

I want to check if specific file (let's say win.txt) exist in root directory at ntfs WIndows partition and if does, then boot Windows (or better: make it default choice but still display menu and timeout), and if not boot Linux (or leave default menu with default Linux and timeout). I've seen command test -e file and insmod ntfs, but I don't know what next. Does "grub works" like shell scripts? Are entries from grub.cfg are just interpreted and executed from top to bottom or is it compiled on update?

Jarek





reply via email to

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