machine-drivers/docker-machine-driver-xhyve

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

praveenkumar opened this issue · 1 comments

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

This issue is under discussion in #147