Don't show floppies if missing
authorJamie Cameron <jcameron@webmin.com>
Wed, 22 Oct 2008 06:13:55 +0000 (06:13 +0000)
committerJamie Cameron <jcameron@webmin.com>
Wed, 22 Oct 2008 06:13:55 +0000 (06:13 +0000)
fdisk/fdisk-lib.pl
fdisk/lang/en

index 7131efb..7f95a24 100644 (file)
@@ -875,7 +875,8 @@ sub partition_select
 {
 local $rv = "<select name=$_[0]>\n";
 local ($found, $d, $p);
-if ($_[2] == 0 || $_[2] == 2) {
+if (($_[2] == 0 || $_[2] == 2) &&
+    (-r "/dev/fd0" || $_[1] =~ /^\/dev\/fd[01]$/)) {
        $rv .= sprintf "<option %s value=/dev/fd0>%s\n",
                $_[1] eq "/dev/fd0" ? "selected" : "",
                &text('select_fd', 0) if (!$_[4] || "/dev/fd0" =~ /$_[4]/);
index c43ccf9..d5f45ff 100644 (file)
@@ -236,12 +236,12 @@ log_tunefs=Tuned $1 filesystem on $2
 log_fsck=Repaired $1 filesystem on $2
 log_hdparm=Modified IDE parameters for $1
 
-fs_ext2=Linux Native
+fs_ext2=Old Linux Native
 fs_minix=Minix
 fs_msdos=MS-DOS
 fs_vfat=Windows
 fs_reiserfs=ReiserFS
-fs_ext3=New Linux Native
+fs_ext3=Linux Native
 fs_xfs=SGI
 fs_jfs=IBM Journalling