mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 16:49:23 +00:00
fix a completion buf, add floppy devices into the device map file unconditionally.
This commit is contained in:
1 parent
d7c7eb7897
commit
0612bf14c0
4 files changed
+17
-10
No files matched your search
+6
-7
@@ -341,14 +341,13 @@ init_device_map (void)
|
||||
break;
|
||||
|
||||
get_floppy_disk_name (name, i);
|
||||
/* In floppies, write the map, whether check_device succeeds
|
||||
or not, because the user just does not insert floppies. */
|
||||
if (fp)
|
||||
fprintf (fp, "(fd%d)\t%s\n", i, name);
|
||||
|
||||
if (check_device (name))
|
||||
{
|
||||
assign_device_name (i, name);
|
||||
|
||||
/* If the device map file is opened, write the map. */
|
||||
if (fp)
|
||||
fprintf (fp, "(fd%d)\t%s\n", i, name);
|
||||
}
|
||||
assign_device_name (i, name);
|
||||
}
|
||||
|
||||
/* IDE disks. */
|
||||
|
||||
Reference in new issue
Block a user