machine-drivers / docker-machine-driver-xhyve

docker-machine/minikube/minishift driver plugin for xhyve/hyperkit (native macOS hypervisor.framework)
https://godoc.org/github.com/machine-drivers/docker-machine-driver-xhyve
BSD 3-Clause "New" or "Revised" License
888 stars 74 forks source link

Make /boot configurable to allow different live iso to work with driver #146

Closed praveenkumar closed 7 years ago

praveenkumar commented 7 years ago

Currently boot is hardcoded where it search for vmlinuz and initrd which make little hard if iso image structure is bit different and kernel and initrd files are in in different directory. It would be great to make it as argument which default value will be boot.

Current structure of a boot2docker image after mount

[root@dhcp35-203 boot2docker]# tree ./
./
├── boot
│   ├── initrd.img
│   ├── isolinux
│   │   ├── boot.cat
│   │   ├── boot.msg
│   │   ├── f2
│   │   ├── f3
│   │   ├── f4
│   │   ├── isolinux.bin
│   │   └── isolinux.cfg
│   └── vmlinuz64
└── version

And current structure of a centos live image.

$ tree /Volumes/live-centos/
/Volumes/live-centos/
├── EFI
│   └── BOOT
│       ├── BOOTX64.EFI
│       ├── fonts
│       │   └── unicode.pf2
│       ├── grub.cfg
│       └── grubx64.efi
├── LiveOS
│   ├── osmin.img
│   └── squashfs.img
└── isolinux
    ├── boot.cat
    ├── efiboot.img
    ├── initrd0.img
    ├── isolinux.bin
    ├── isolinux.cfg
    ├── macboot.img
    ├── vesamenu.c32
    └── vmlinuz0
zchee commented 7 years ago

This issue is under discussion in #147