5.3 LiveCD fixit shell geom(8) environment broken?

Alexey Belousov <[email protected]>
Newsgroups gmane.os.freebsd.devel.quality-assurance,gmane.os.freebsd.devel.geom
Message-ID <[email protected]>
hi All,

recently, I played with geom in fixit shell and found some oddity:

Fixit# geom mirror load
Command 'load' not available.
Fixit# sysctl kern.module_path
kern.module_path: /boot/kernel;/boot/modules
Fixit# ls -la /boot/kernel/
ls: /boot/kernel/: No such file or directory
Fixit# ln -s /mnt2/boot/kernel /boot/
Fixit# geom mirror load -v
Module available.
Done.
Fixit# geom mirror dump da0
Unknown command: dump
usage: geom mirror help
        geom mirror list
        geom mirror load [-v]
        geom mirror unload [-v]
Fixit# ldd `which geom`
/mnt2/sbin/geom:
        libgeom.so.2 => /mnt2/lib/libgeom.so.2 (0x28078000)
        libsbuf.so.2 => /mnt2/lib/libsbuf.so.2 (0x2807c000)
        libbsdxml.so.1 => /mnt2/lib/libbsdxml.so.1 (0x2807e000)
        libutil.so.4 => /mnt2/lib/libutil.so.4 (0x2809d000)
        libc.so.5 => /mnt2/lib/libc.so.5 (0x280a9000)
Fixit# ln -s /mnt2/lib /
Fixit# geom mirror dump da0
Metadata on da0:
        magic: GEOM::MIRROR
     version: 1
        <---snip--->
Fixit#

Summary:
1. missing geom_*.ko / invalid kern.module_path
fix: sysctl kern.module_path=`sysctl -n kern.module_path`\;/mnt2/boot/kernel
or simply ln -s /mnt2/boot/kernel /boot/

2. missing necessary libs in /lib (hardcoded path?)
fix: ln -s /mnt2/lib /

-----------
cheers,
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-qa
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.