mirror of
https://github.com/clearlinux/hyperstart.git
synced 2026-08-24 08:07:21 +00:00
create volume directory for non docker volume
Signed-off-by: Gao feng <omarapazanadi@gmail.com>
This commit is contained in:
+8
-3
@@ -78,9 +78,14 @@ static int container_setup_volume(struct hyper_container *container)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (vol->docker && container->initialize &&
|
||||
(container_populate_volume(vol->mountpoint, volume) < 0)) {
|
||||
fprintf(stderr, "fail to populate volume %s\n", vol->mountpoint);
|
||||
if (vol->docker) {
|
||||
if (container->initialize &&
|
||||
(container_populate_volume(vol->mountpoint, volume) < 0)) {
|
||||
fprintf(stderr, "fail to populate volume %s\n", vol->mountpoint);
|
||||
return -1;
|
||||
}
|
||||
} else if (hyper_mkdir(volume) < 0) {
|
||||
fprintf(stderr, "fail to create directroy %s\n", volume);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user