What is the easiest way to decide if a given directory tree from a block
device is an install media?

In grub2 for Xen PV guests a grub script has to decide if a menu has to
be presented or not. The current approach is to do something like
        if test -e $r/content &&
           test -e $r/boot/x86_64/vmlinuz-xen &&
           test -e $r/boot/x86_64/initrd-xen
           show install menu
           show boot menu
           show boot menu

I wonder if that is robust enough to decide if a given block device is
an installation DVD or not. Should the script stat something else, or
some additional files to be sure, like /media.1/directory.yast or

To unsubscribe, e-mail: zypp-devel+unsubscr...@opensuse.org
To contact the owner, e-mail: zypp-devel+ow...@opensuse.org

Reply via email to