Explanatory comment
authorJamie Cameron <jcameron@webmin.com>
Sat, 23 Jul 2011 23:05:16 +0000 (16:05 -0700)
committerJamie Cameron <jcameron@webmin.com>
Sat, 23 Jul 2011 23:05:16 +0000 (16:05 -0700)
fdisk/fdisk-lib.pl

index 05f8224..af192be 100755 (executable)
@@ -183,6 +183,8 @@ if (open(PARTS, "/proc/partitions")) {
                        }
                }
        close(PARTS);
+
+       # Sort IDE first
        @devs = sort { ($b =~ /\/hd[a-z]+$/ ? 1 : 0) <=>
                       ($a =~ /\/hd[a-z]+$/ ? 1 : 0) } @devs;
        }