Opened 5 years ago

Closed 5 years ago

#631 closed defect (fixed)

/bin/lsmod is missing in minimal.conf

Reported by: vicgat Owned by: vicgat
Priority: normal Milestone: 3.0.3
Component: mindi Version: 3.0.2
Severity: normal Keywords: lsmod SLES


Booting on a backup made from SLES 11 SP2, I see that /sbin/lsmod is a link to /bin/lsmod, but it's not working because /bin/lsmod is not present.

I checked ; /bin/lsmod is missing in minimal.conf

I'll add /bin/lsmod in minimal.conf

Attachments (1)

busybox mod lsmod etc.jpg (119.6 KB) - added by vicgat 5 years ago.
busybox rmmod etc -- and lsmod bug

Download all attachments as: .zip

Change History (6)

comment:1 Changed 5 years ago by vicgat

In fact, lsmod is embedded in mindi-busybox...

So, instead adding /bin/lsmod to minimal.conf, /sbin/lsmod should be linked to /bin/busybox (as it's already done for depmod, lsmod, modinfo and rmmod).

comment:2 Changed 5 years ago by vicgat

It's already done for depmod, modinfo and rmmod, which are linked to ../bin/busybox.

So /sbin/lsmod should be linked to ../bin/busybox too.

Changed 5 years ago by vicgat

busybox rmmod etc -- and lsmod bug

comment:3 Changed 5 years ago by vicgat

Bruno, I don't find in the mondo/mindi/mindi-busybox sources where you link depmod, modinfo and rmmod to ../bin/busybox. Could you please enlight me on this ?

comment:4 Changed 5 years ago by vicgat

Meanwhile I can do in the shell: "busybox lsmod" or "ln -sf /bin/busybox /sbin/lsmod"...

But, anyway, /sbin/lsmod should be linked to /bin/busybox at mindi boot.

I could add a "ln -sf /bin/busybox /sbin/lsmod" in /usr/sbin/mindi but I would prefer to add lsmod to the list of files (depmod, modinfo, rmmod) linked to busybox...

How did you do it, Bruno ?

comment:5 Changed 5 years ago by bruno

  • Resolution set to fixed
  • Status changed from new to closed

links are managed automagically by the build procedure of busybox.

lsmod has never been under /bin in fact in the past as far as I remember on any Linux distro. However I can't blam SLES 11 SP2 as it's not in the FHS :-(

Si I'm adding it to minimal.conf as it's the best way for now to support distro differences. Fixed in rev [3038]

Note: See TracTickets for help on using tickets.