|Summary:||emulators/linux_base-c7: installation fails if linux.ko not loaded|
|Product:||Ports & Packages||Reporter:||Ed Maste <emaste>|
|Component:||Individual Port(s)||Assignee:||freebsd-emulation (Nobody) <emulation>|
|Severity:||Affects Only Me||CC:||bapt, emaste, rene, tijl, trasz, w.schwarzenfeld, xmj|
Description Ed Maste 2016-06-15 20:05:44 UTC
Attempting to update my packages failed with: % sudo pkg upgrade ... [10/19] Upgrading linux_base-c6 from 6.7_2 to 6.7_3... sysctl: unknown oid 'compat.linux.osrelease' linuxulator is not (kld)loaded, exiting pkg: PRE-INSTALL script failed % It should be possible to upgrade the package w/o the linux kernel module loaded.
Comment 1 Ed Maste 2016-06-15 20:08:24 UTC
Hrm, I suspect this started happening after r415233.
Comment 2 Tijl Coosemans 2016-09-05 21:56:47 UTC
Linux support is needed to run /compat/linux/sbin/ldconfig to update /compat/linux/etc/ld.so.cache. There are other linux packages that run other tools during installation. Kernel linux support is required when installing linux packages. We cannot do much about that.
Comment 3 Ed Maste 2016-12-23 14:38:07 UTC
There are things we *could* do: - We could have some infrastructure that linux_base hooks into, in order to prevent the installation from starting rather than having it fail 75% of the way through (or prompt the user to kldload linux) - For this specific case (ld.so.cache) we could have a FreeBSD port of Linux ldconfig - We could queue post-install actions, and run them later It may well be that requiring linux.ko to be loaded for pkg installation is the only reasonable approach. But we provide a terrible user experience by aborting the installation part way through, and will need to find some way to address that.
Comment 4 Walter Schwarzenfeld 2019-01-25 20:47:38 UTC
We have version 6.10 This is surely out-of-date. So I am closing here.
Comment 5 Ed Maste 2019-01-25 20:49:59 UTC
This problem persists, with linux_base-c7 7.4.1708_6
Comment 6 Walter Schwarzenfeld 2019-01-25 21:10:13 UTC