On 2014-09-05 17:57, Dan Mack wrote: > On Sat, 8 Mar 2014, Peter Grehan wrote: > >> Hi Rudy, >> >>> Peter, anyway to get grub-bhyve to automatically load /grub/grub.conf >>> from a CentOS install? > > <snip> > >> CentOS is grub v1 which isn't quite compatible with grub2 (e.g. linux >> -> kernel). >> >> grub-bhyve can pick up a config file from the host system: use "-r >> host" to force that, and the -d option to change the default path for >> grub.conf. No need to redirect input. >> >> Then, in grub.conf on the host, put in the absolute path with the grub >> commands e.g. > > <snip> > >> (the console=ttyS0 isn't needed: grub-bhyve auto-inserts that). >> > > > Let me resucitate this thread ... > > I just tried this on Centos7 and expeience the same lack of grub menu. > I was able to work around it by manually entering the manual paths for > linux and initrd but wouldn't it be nice ... > > However, on the Centos7 install, there appears to be both a grub/ and > grub2/ configuration directory: > > | > | grub> ls (hd0,msdos1)/ > | Possible files are: > | grub/ grub2/ ... > | > > and in the grub2 folder there exists a seemling grub2 compatible > grub.cfg file: > > | grub> cat (hd0,msdos1)/grub2/grub.cfg > | # > | # DO NOT EDIT THIS FILE > | # > | # It is automatically generated by grub2-mkconfig using templates > | # from /etc/grub.d and settings from /etc/default/grub > | # > | <snip> > > Is there a way to direct grub-bhyve to use the > centos:/boot/grub2/grub.cfg file ala some argument -- I scanned the > source and couldn't find a simple over-ride. > > I'll test/rebuild the suite if you can point me in the general > direction. > > Thanks, > > dan > -- > Dan Mack > > _______________________________________________ > [email protected] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to > "[email protected]"
There CentOS goes being annoying... grub-bhyve loads the grub config file on ubuntu because it is in the expected place /boot/grub but because CentOS 6 has a grub 1 config in /boot/grub they put the grub 2 config in /boot/grub2... note: you can do: source /boot/grub2/grub.conf or is it 'script' or something there is some interactive command in grub-bhyve to load a config file from inside the VM image. -- Allan Jude
signature.asc
Description: OpenPGP digital signature
