mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
o Check in case of setting up volumes before root is mounted.
This commit is contained in:
parent
c5ecb802fc
commit
5d910431cf
@ -603,6 +603,9 @@ static void dm_sbin_hotplug(struct mapped_device *md, int create)
|
|||||||
if (!hotplug_path[0])
|
if (!hotplug_path[0])
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!current->fs->root)
|
||||||
|
return;
|
||||||
|
|
||||||
sprintf(name, "DMNAME=%s\n", md->name);
|
sprintf(name, "DMNAME=%s\n", md->name);
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user