Salvador Fandino
2010-04-06 11:27:33 UTC
AFAIK, this procedure is not documented in any place and it is quite
handy in order to install OpenBSD on boxes that already have a recent
Linux inside and use grub2 as the boot manager:
0) do any preparatory work needed: backup your data, resize your
partitions, create a new one for OpenBSD, etc.
1) download bsd.rd and move it to the Linux root partition:
# wget ftp://ftp.openbsd.org/pub/OpenBSD/4.6/i386/bsd.rd
# mv bsd.rd /openbsd.rd
2) add the following entry to /etc/grub.d/40_custom
menuentry "Install OpenBSD from RAM disk" {
set root=(hd0,1)
kopenbsd /openbsd.rd
}
replacing (hd0,1) by the partition id corresponding to the Linux root
file system.
(you may need to modify also /etc/default/grub in order to make grub2
menu visible)
3) regenerate grub configuration:
# update-grub
4) reboot:
# reboot
5) When the grub menu pops up select "Install OpenBSD from RAM disk"
... and install OpenBSD
Cheers,
- Salva
handy in order to install OpenBSD on boxes that already have a recent
Linux inside and use grub2 as the boot manager:
0) do any preparatory work needed: backup your data, resize your
partitions, create a new one for OpenBSD, etc.
1) download bsd.rd and move it to the Linux root partition:
# wget ftp://ftp.openbsd.org/pub/OpenBSD/4.6/i386/bsd.rd
# mv bsd.rd /openbsd.rd
2) add the following entry to /etc/grub.d/40_custom
menuentry "Install OpenBSD from RAM disk" {
set root=(hd0,1)
kopenbsd /openbsd.rd
}
replacing (hd0,1) by the partition id corresponding to the Linux root
file system.
(you may need to modify also /etc/default/grub in order to make grub2
menu visible)
3) regenerate grub configuration:
# update-grub
4) reboot:
# reboot
5) When the grub menu pops up select "Install OpenBSD from RAM disk"
... and install OpenBSD
Cheers,
- Salva