mirror of
https://git.proxmox.com/git/grub2
synced 2025-10-18 19:10:33 +00:00
Disable use of floppy devices
An ugly kludge. Should this be merged upstream? Author: Robert Millan Patch-Name: disable_floppies.patch
This commit is contained in:
parent
9c74a9d23c
commit
63a4f23b9e
@ -532,6 +532,18 @@ read_device_map (const char *dev_map)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (! strncmp (p, "/dev/fd", sizeof ("/dev/fd") - 1))
|
||||
{
|
||||
char *q = p + sizeof ("/dev/fd") - 1;
|
||||
if (*q >= '0' && *q <= '9')
|
||||
{
|
||||
free (map[drive].drive);
|
||||
map[drive].drive = NULL;
|
||||
grub_util_info ("`%s' looks like a floppy drive, skipping", p);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
/* On Linux, the devfs uses symbolic links horribly, and that
|
||||
confuses the interface very much, so use realpath to expand
|
||||
symbolic links. */
|
||||
|
Loading…
Reference in New Issue
Block a user