can't 'kldload zfs' if loaded not via /boot/loader

Ivan Dolgorukov ccnp at mail.ru
Thu Mar 13 16:06:06 UTC 2008


 
Hi!

I'm trying to boot up from my usb stick using grub 1.96 (/boot/loader gave me the 'BTX halted bug') and I've managed to succeed in that. After booting up in the command promth I've issued 'kldload zfs'. The command gives me 'link_elf: symbol hardlink_check_uid undefined', after that kldload fails. If I boot up from standart /boot/loader (on VMWARE or some other PC) there are no such problems exist.

Any ideas how to fix it? My idea is that some variable (kenv or sysctl) is missing and link_elf can't find 'hardlink_check_uid' in /boot/kernel/kernel.

P.S.
uname -a
FreeBSD devil.localdomain 7.0-STABLE FreeBSD 7.0-STABLE #5: Wed Mar 12 12:19:10 MSK 2008     root at devil.localdomain:/usr/obj/usr/src/sys/MYKERNEL  i386


diff /usr/src/sys/i386/conf/GENERIC /usr/src/sys/i386/conf/MYKERNEL 
19c19
< # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.474.2.3 2008/02/03 07:28:37 scottl Exp $
---
> # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.474.2.2.2.1 2008/02/06 03:24:28 scottl Exp $
31c31,32
< options       SCHED_4BSD              # 4BSD scheduler
---
> #options      SCHED_4BSD              # 4BSD scheduler
> options               SCHED_ULE
69a71,74
> # for flash usb
> options       ROOTDEVNAME=\"ufs:da0s2a\"
> device                acpi
> 



More information about the freebsd-questions mailing list