Running CentOS 7
Installed a vendors kernel module
I added a file in "/etc/modules-load.d/loadMyModule" with the module name in it.
After modification, recompile, and reinstall of the module, the old version is persistent on the system after a reboot.
However if I run...
sudo modprobe -r mydriver
sudo modprobe mydriver
The new version is now working...
How is the old version still getting loaded at boot?
Thanks
After much headbanging
If you have rebuilt the initramfs via dracut, the old module will be there. After installing the updated module, be sure to re-run dracut so it is replaced in the initramfs
Related
I am having difficulty getting the DBD::MariaDB module to install on an instance of OSX 10.12.6. I am using homebrew and perlbrew, and other cpan modules installed without issue with cpanm.
I have used homebrew to install openssl and mysql-connector-c as the cpan Install page recommended.
Rather than trying to use cpanm for this, I am attempting to install manually so I can specify a mysql_config location. I have a heavily customized instance of MariaDB 10.2.21 installed so nothing is "default." If it's relevant, my MariaDB configuration was based off a brew install.
I am stuck at this point: Failed to create t/MariaDB.mtest: No such file or directory at /Documents/DBD-MariaDB-1.21/Makefile.PL line 415. Fails to make the file and I'm doing this with user directories with perlbrew.
Using Perl 5.26.1 on perlbrew 0.86 (latest). Not sure what to actually do here. Not sure why I'm unable to make the file in a user folder.
Did I miss a crucial step?
I successfully recompiled and installed linux kernel 4.2.0 on my ubuntu 15, I for the learning purposes tried to install another kernel 4.1.7 on my machine. I followed the exact same procedure to recompile and install it. I become successful to recompile kernel 4.1.7 but when i installed it and reboot my ubuntu and checked running kernel in it it still shows the 4.2.0 instead of 4.1.7.
what could go wrong in my second installation?
The process i followed to recompile and install both kernel is
1. downloaded the kernel from kernel.org
2. made the kernel directory in home and extract kernel.tar.xz there
3. in terminal go to the kernel directory
4. run this command sudo apt-get install gcc libncurses5-dev dpkg-dev
5. make menuconfig
6. saved the .config file with a different name i-e .config_aa
7. mv .config_aa .config
8. make -j 5 KDEB_PKGVERSION=1.RIBALINUX deb-dev
9. sudo make install
10. sudo reboot
11. checked kernel version using uname -r
You need to choose kernel for load in bootloader. On Ubuntu it is usually a GRUB2 (tutorial).
This step is missed in some manuals, because one usually intents to build kernel with newer version. After installation, the newest kernel version is arranged first, which is loaded by default.
I spun up a new EC2 instance with Redhat OS. I am trying to install Mojolicious with cpanm Mojolicious but it keeps telling me Can't locate <package> in #INC. The first few times I just did cpanm <package> and then sudo reboot. Then I try to install Mojolicious again but every time it's missing something new and there could be hundreds of these, right? So how do get it to install all the dependencies for Mojolicious?
As an aside, I built a mojolicious app on OSX and I am trying to host it in on EC2. The install was perfect on my Mac.
The system perl provided by RedHat is intentionally crippled (possibly in violation of the Perl license!). The easy fix is to install the perl-core module (to install the core modules of Perl, sigh).
The recommended answer however is to not use the system perl interpreter, leave that to system usage. Instead try perlbrew.
i have a Lenovo Z580 IDeaPAd Laptop and want to boot my linux with acpi.but with its kernel i must to set acpi off in the kernel i read more about this in net and found that must use new kernels above 3.8.
i donwload every kernels in the kernel.org.
i want to set the configs but i dont know any thing and use the previous kernel configs to compile.
i want to know what configs should i do and set for solving the acpi problem.
i ahve linuxmint 14 and linuxmint 15 and have kernels: 3.9.3 3.9.4 and 3.9.6.
If you have working linux-kernel, before compile of kernel use command
make oldconfig
This make config with working old params.
Try install previus version of Mint, which use 3.8.* kernel. Compile kernel with old-config and upgrade system.
Download the kernel tarball from kernel.org, then execute the following:
$ tar xvzf kernel-xxx.tar.gz
$ cp /book/config-`uname -r` .config
$ make oldconfig # use default value for all prompt
$ make
$ make modules_install
$ make install
I'm using sshfs on macosx 10.7 in my every day job.
To install sshfs I have used macport: "port install fuse4x sshfs".
The todays error:
$ sshfs user#domain.com:/path myfolder
fuse4x client library version is incompatible with the kernel extension (kext='0.9.0', library='0.9.2').
Any tips welcomed. I don't understand, I have not updated the system.
Follow
$ brew info fuse4x-kext
instructions:
In order for FUSE-based filesystems to work, the fuse4x kernel
extension must be installed by the root user:
$ sudo /bin/cp -rfX /usr/local/Cellar/fuse4x-kext/0.9.2/Library/Extensions/fuse4x.kext /Library/Extensions
$ sudo chmod +s /Library/Extensions/fuse4x.kext/Support/load_fuse4x
If upgrading from a previous version of Fuse4x, the old kernel
extension will need to be unloaded before performing the steps listed
above. First, check that no FUSE-based filesystems are running:
$ mount -t fuse4x
Unmount all FUSE filesystems and then unload the kernel extension:
$ sudo kextunload -b org.fuse4x.kext.fuse4x
tl;dr:
try to manually update fuse4x-kect after updating the ports' tree using sync verb
port sync
port upgrade fuse4x-kext
Longer read
The error you pasted means that somehow macports didn't update the kext port fuse4x-kext when it upgraded fuse4x, it should have. I doubt your issue is still actual, since you're likely to have updated since october 2012, you should perform regular ports' upgrades and check when a new macports version is out in order to run a selfupdate verb.
As future reference you can guess what the kext port for a port is by looking at its information
port info fuse4x
or list of dependencies:
port deps fuse4x
Ports offering kexts can be loaded and unloaded from kernel by using load and unload verb.