From: Jeremy Kerr Date: Mon, 7 Jan 2008 10:28:00 +0000 (+1100) Subject: Ignore /dev/loop* devices X-Git-Tag: v1.0.0~968 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=e8a3e2b1629824cb01c95e2a49b8f31152c0edd2 Ignore /dev/loop* devices Signed-off-by: Jeremy Kerr --- diff --git a/devices/udev-helper.c b/devices/udev-helper.c index e3ad7a4..87a7fc1 100644 --- a/devices/udev-helper.c +++ b/devices/udev-helper.c @@ -430,7 +430,8 @@ static int is_removable_device(const char *sysfs_path) static int is_ignored_device(const char *devname) { - static const char *ignored_devices[] = { "/dev/ram", NULL }; + static const char *ignored_devices[] = + { "/dev/ram", "/dev/loop", NULL }; const char **dev; for (dev = ignored_devices; *dev; dev++)