Don't show floppies if missing

This commit is contained in:
Jamie Cameron
2008-10-22 06:13:55 +00:00
parent 4c3aefd0be
commit 52145f7608
2 changed files with 4 additions and 3 deletions

View 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]/);

View 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