Commit 3d48882
Make sure both Virtio9p shared folders and NFS shared folders can be used at the same time.
In this commit I removed the `d.setupMount()` from the `Start()` function: `Start()` simply starts the docker-machine and isn't supposed to do any other work. For example, you can not add more CPUs, more RAM, or more Disks with the `docker-machine start` command. Just like CPU, RAM, etc, Shared Folders can not be added after the fact with `docker-machine start` and as such, the `d.setupMounts()` shouldn't run.
I, however, changed the `Create()` function so that it returns an error, and thus prevents the docker-machine from being created, when the `d.setupMounts()` fails.
The other changes address the bug where you couldn't have both Virtio9p *and* NFS shared folders. The bug was that both the code setting up Virtio9p shares and the NFS shares would overwrite the `bootlocal.sh` script.1 parent dff9c59 commit 3d48882
1 file changed
+7
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
487 | | - | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
488 | 490 | | |
489 | 491 | | |
490 | 492 | | |
| |||
535 | 537 | | |
536 | 538 | | |
537 | 539 | | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | 540 | | |
543 | 541 | | |
544 | 542 | | |
| |||
1006 | 1004 | | |
1007 | 1005 | | |
1008 | 1006 | | |
1009 | | - | |
1010 | | - | |
| 1007 | + | |
| 1008 | + | |
1011 | 1009 | | |
1012 | 1010 | | |
1013 | 1011 | | |
| |||
1056 | 1054 | | |
1057 | 1055 | | |
1058 | 1056 | | |
1059 | | - | |
1060 | | - | |
| 1057 | + | |
| 1058 | + | |
1061 | 1059 | | |
1062 | 1060 | | |
1063 | 1061 | | |
| |||
0 commit comments