GRUB2 a FreeBSD - upresneni + pokusy
Jan Dušátko
jan at dusatko.org
Fri Apr 22 11:49:42 CEST 2011
Ahoj
Prikladam vysledky pokusu a rozsahlejsi popis problemu a jejich duvodu.
Pri bootovanim FreeBSD v GRUB2 nedojde k interpretaci
dat ulozenychv /boot/loader.conf, tzn. settings a nacteni dalsich modulu.
Potrebuji grub z duvodu snadne volby zalozniho boot prostredi.
/boot/grub/grub.cfg obsahuje
insmod ufs2
set root='(/dev/ar0,1,a)'
search --no-floppy --fs-uuid --set 4dad96ad553bd910
echo Loading kernel of FreeBSD kernel ...
kfreebsd /boot/kernel/kernel
kfreebsd_loadenv /boot/device.hints
kfreebsd_module_elf /boot/kernel/acpi.ko
set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ar0s1a
set kFreeBSD.vfs.root.mountfrom.options=rw
a /boot/loader.conf
if_tun_load="YES"
ichsmb_load="YES"
ipmi_load="YES"
ichwd_load="YES"
#ahci_load="YES"
#geom_label_load="YES"
#geom_part_mbr_load="YES"
zfs_load="YES"
#vesa_load="YES"
beastie_disable="NO"
loader_logo="beastie"
autoboot_delay="5"
#ZFS Tunning
vm.kmem_size="512M"
vm.kmem_size_max="1G"
vm.kmem_size_min="256M"
vfs.zfs.prefetch.disable=0
/boot/oader standardne interpretuje nasledujici soubory
/boot/device.hints
/boot/loader.conf
/boot/loader.conf.local
Resil jste to nekdo ?
Jeste doplnim par pokusu a jejich vysledky
menuentry "FreeBSD, Primary Boot Environment kernel" --class freebsd --class
bsd --class os {
insmod ufs2
set root='(/dev/ar0,1,a)'
search --no-floppy --fs-uuid --set 4dad96ad553bd910
echo Loading kernel of FreeBSD kernel ...
kfreebsd /boot/kernel/kernel
kfreebsd_loadenv /boot/device.hints
kfreebsd_module_elf /boot/kernel/acpi.ko
set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ar0s1a
set kFreeBSD.vfs.root.mountfrom.options=rw
}
Ignoruje /boot/loader.conf a /boot/loader.local
menuentry "FreeBSD, Primary Boot Environment kernel environment test"
--class freebsd --class bsd --class os {
insmod ufs2
set root='(/dev/ar0,1,a)'
search --no-floppy --fs-uuid --set 4dad96ad553bd910
echo Loading kernel of FreeBSD kernel ...
kfreebsd /boot/kernel/kernel
kfreebsd_loadenv /boot/device.hints /boot/loader.conf
/boot/loader.conf.local
kfreebsd_module_elf /boot/kernel/acpi.ko
kfreebsd_module_elf /boot/kernel/if_tun.ko
kfreebsd_module_elf /boot/kernel/ichsmb.ko
kfreebsd_module_elf /boot/kernel/ipmi.ko
kfreebsd_module_elf /boot/kernel/ichwd.ko
kfreebsd_module_elf /boot/kernel/zfs.ko
set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ar0s1a
set kFreeBSD.vfs.root.mountfrom.options=rw
}
Ignoruje /boot/loader.conf a /boot/loader.local, nenacte se acpi a ichsmb.
Jinak projde.
menuentry "FreeBSD, Primary Boot Environment kernel environment & module
test" --class freebsd --class bsd --class os {
insmod ufs2
set root='(/dev/ar0,1,a)'
search --no-floppy --fs-uuid --set 4dad96ad553bd910
echo Loading kernel of FreeBSD kernel ...
kfreebsd /boot/kernel/kernel
kfreebsd_loadenv /boot/device.hints /boot/loader.conf
/boot/loader.conf.local
kfreebsd_module_elf /boot/kernel/acpi.ko
kfreebsd_module_elf /boot/kernel/if_tun.ko
kfreebsd_module_elf /boot/kernel/ichsmb.ko
kfreebsd_module_elf /boot/kernel/ipmi.ko
kfreebsd_module_elf /boot/kernel/ichwd.ko
kfreebsd_module_elf /boot/kernel/zfs.ko
set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ar0s1a
set kFreeBSD.vfs.root.mountfrom.options=rw
}
Zhavaruje pri inicializaci, nenajde disky
menuentry "FreeBSD, Primary Boot Environment ordinal test" --class freebsd
--class bsd --class os {
insmod ufs2
set root='(/dev/hd0,1,a)'
kfreebsd /boot/loader
}
Spusti se loader a ten nedokaze najit diskovy prostor.
menuentry "FreeBSD, Primary Boot Environment shotgun test" --class freebsd
--class bsd --class os {
set root='(/dev/hd0,1,a)'
chainloader +1
}
Není schopen zavest ani loader
More information about the Users-l
mailing list