grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Don't look for a partition map on a floppy


From: Robert Mabee
Subject: Re: [PATCH] Don't look for a partition map on a floppy
Date: Sat, 16 Jun 2012 00:58:01 -0400
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

Minix floppies are partitioned.

Facts are such inconvenient things.

I'm still looking for a way to iterate through partitions without incurring
the floppy timeout, something like this:
  for dev in *; do
    if ! regexp "\(fd[0-9]\)" $dev; then
      for part in ($dev,*); do

I can see how to change the *-expansion logic so * wouldn't read partmaps
(since it only matches devices anyway) and so (hd0,*) would only access hd0.




reply via email to

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