I've now got os-prober to detect and create chainloader menu stanzas for NetBSD 
and FreeBSD. 
The key is to call blkid again with the -p option when a UFS partition is 
detected to return the ufs type and to mount the partition with the proper 
ufstype parameter to the mount commant. 

To use the native GRUB commands will require more work. However since
both NetBSD and FreeBSD provide their own boot menus when chainloaded to
allow the user to do such things as boot single-user etc there may not
be any mileage in using the native GRUB commands, certainly on FreeBSD
where there doesn't seem to be any way of bypassing the FreeBSD boot
menu.

Unfortunately blkid, on my test machine at least, intermittently finds
two copies of FreeBSD, the second a duplicate of the real one but in a
'phantom' partition. And blkid doesn't recognise an OpenBSD partition at
all - presumably because the ufs-magic numbers don't match.

So if a short term 'fix' is required then the best thing may be to have
the 50-mounted script emit a suitable message when a UFS partition is
detected, pointing the user to a set of example stanzas per Peter
Belew's example for FreeBSD above.

I will continue to look at blkid as time permits.


The easy way to blkid doesn't recognise a

-- 
*BSD not detected by os-prober
https://bugs.launchpad.net/bugs/432254
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to