tuyosi
2015-07-12 07:04:54 UTC
the main process is install debian , and then isntall openbsd by
debian's grub2
1) on debian
download bsd.rd to /
rewrite /boot/grub/grub.cfg
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)'
--class debian --class gnu-linux --class gnu
--class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root
48513cc3-0824-41d2-b0e2-33cefa6dfbc7
echo 'Loading Linux 3.2.0-4-amd64 ...'
kopenbsd /bsd.rd <---------------------------------
echo 'Loading initial ramdisk ...'
boot <---------------------------------
}
then boot by 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)'
then openbsd install begin
2)
write /etc/grub.d/40_custom
ーーーーーーーーーーーーー
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "OpenBSD" {
set root=(hd0,4)
chainloader +1
}
and update-grub
dual boot machine , happy
debian's grub2
1) on debian
download bsd.rd to /
rewrite /boot/grub/grub.cfg
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)'
--class debian --class gnu-linux --class gnu
--class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root
48513cc3-0824-41d2-b0e2-33cefa6dfbc7
echo 'Loading Linux 3.2.0-4-amd64 ...'
kopenbsd /bsd.rd <---------------------------------
echo 'Loading initial ramdisk ...'
boot <---------------------------------
}
then boot by 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)'
then openbsd install begin
2)
write /etc/grub.d/40_custom
ーーーーーーーーーーーーー
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "OpenBSD" {
set root=(hd0,4)
chainloader +1
}
and update-grub
dual boot machine , happy