mirror of
https://github.com/clearlinux/hyperstart.git
synced 2026-08-25 16:56:01 +00:00
Merge pull request #65 from gao-feng/nondocker
create volume directory for non docker volume
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