From 5d910431cf02d8804f2bca2c7646aa055f497ea5 Mon Sep 17 00:00:00 2001 From: Steven Whitehouse Date: Mon, 24 Sep 2001 15:18:45 +0000 Subject: [PATCH] o Check in case of setting up volumes before root is mounted. --- driver/device-mapper/dm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/driver/device-mapper/dm.c b/driver/device-mapper/dm.c index d48b83e3e..cc02169c0 100644 --- a/driver/device-mapper/dm.c +++ b/driver/device-mapper/dm.c @@ -603,6 +603,9 @@ static void dm_sbin_hotplug(struct mapped_device *md, int create) if (!hotplug_path[0]) return; + if (!current->fs->root) + return; + sprintf(name, "DMNAME=%s\n", md->name); i = 0; -- 2.43.5