Bug 210312 - emulators/linux_base-c7: installation fails if linux.ko not loaded
Summary: emulators/linux_base-c7: installation fails if linux.ko not loaded
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-emulation (Nobody)
Depends on:
Reported: 2016-06-15 20:05 UTC by Ed Maste
Modified: 2020-01-08 15:48 UTC (History)
7 users (show)

See Also:
bugzilla: maintainer-feedback? (emulation)


Note You need to log in before you can comment on or make changes to this bug.
Description Ed Maste freebsd_committer 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 freebsd_committer 2016-06-15 20:08:24 UTC
Hrm, I suspect this started happening after r415233.
Comment 2 Tijl Coosemans freebsd_committer 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 freebsd_committer 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 freebsd_triage 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 freebsd_committer 2019-01-25 20:49:59 UTC
This problem persists, with linux_base-c7 7.4.1708_6
Comment 6 Walter Schwarzenfeld freebsd_triage 2019-01-25 21:10:13 UTC