Problems with busybox 1.23.2 depmod

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
jlst

Problems with busybox 1.23.2 depmod

#1 Post by jlst »

Last month I compiled the latest version of many core utilities.

I was sad to find out that my last remaster didn't work as expected.

After rebooting a few times and try to figure out what's wrong, I came to the conclusion that it was depmod, but which one.

I compiled busybox with the default configuration, I wonder if I did something wrong. All other busybox functions seem to work as expected.

Everything works if I save session and run the normal depmod, restart, if it continues with that error, run normal depmod again, then restart, and then everything works as expected.

But that's not the way it should be...

So I looked at the code in /etc/rc.d/rc.sysinit

and replaced this:

Code: Select all

  if [ "`busybox | grep 'depmod'`" != "" ];then
   busybox depmod #use busybox depmod if available.
  else
   depmod
  fi
with this:

Code: Select all

  if which depmod ; then
   depmod
  else
   busybox depmod
  fi

I did the same in: /etc/rc.d/rc.update

And recreated the sfs file.

=========

And now the computer just booted with no errors. That's why I'm writing this.

=========

Conclusion:

It's safer to use the 'full' version of depmod... just in case...

Post Reply