Tiny Core Extensions > TCE Q&A Forum

nfs-utils and nfs-server - module nfsd not found in modules.dep

(1/3) > >>

CentralWare:
I have a VM running TC 4.7.7
I removed tce/optional and tce/onboot.lst and rebooted
As part of my start-up script I have a function which reinstalls any missing packages:

--- Code: ---apps="e2fsprogs squashfs-tools-4.x dropbear dnsmasq nfs-utils mc"
for app in $apps
do
    if [ ! -d /tmp/tcloop/$app ]; then
        echo -n "${WHITE}Installing ${CYAN}$app${NORMAL}: "
        su -c "tce-load -wi $app >/dev/null 2>/dev/null" tc
        echo "${GREEN}Done.${NORMAL}"
    fi
done

--- End code ---

This process went through perfectly fine as it has dozens of times previously.  The machine is set up as a development dns/dhcp/tftp server using dnsmasq.  This functionality is working as expected.  I went to fire up nfs-server (which I've done previously quite a few times) and have a new situation I haven't seen before:

--- Code: ---sudo /usr/local/etc/init.d/dropbear start

echo "ALL: ALL" > /etc/hosts.allow
sudo /usr/local/etc/init.d/nfs-server start
exportfs -ra

touch /opt/.hosts
touch /opt/.leases
sudo dnsmasq

--- End code ---

nfs-server start:

--- Code: ---modprobe: module nfsd not found in modules.dep
nfs-server utilities are started.

--- End code ---
rpc.statd and rpc.mountd are running in the background

exportfs -ra gives no complants

--- Code: ---# exportfs
/tftp           <world>

--- End code ---

/etc/exports
/tftp           *(rw,insecure,no_root_squash,fsid=0,anonuid=0,anongid=0,no_subtree_check,nohide)

/etc/hosts.allow
ALL: ALL

/tftp permissions
drwxrwsr-x    4 tc       staff          120 Nov 14 16:51 tftp


--- Code: ---# lsmod
Module                  Size  Used by    Tainted: P
mperf                  12288  0
cpufreq_userspace      12288  0
cpufreq_powersave      12288  0
cpufreq_stats          12288  0
cpufreq_conservative    12288  0
squashfs               24576 15
scsi_wait_scan         12288  0
zcache                 12288  0
zram                   12288  1
loop                   16384 30
ppdev                  12288  0
parport_pc             24576  0
parport                24576  2 ppdev,parport_pc
pcnet32                24576  0
pcspkr                 12288  0
ac                     12288  0

--- End code ---

I'm at a loss as to why nfsd is not supported?

EDIT: While writing this entry, I had a sneaky suspicion.  In the list of apps noted above, I had removed a few (cifs and dos support along with a couple others since they weren't being used) and after looking at tcloop, I noticed "file systems" was no longerinstalled.  I installed filesystems-3.0.21-tinycore.tcz (and its mtd dependency) and voila'...  the error went away regarding the missing module, but now it's more a point of "How would I have known otherwise to install this as the forums don't seem to mention such a dependency and nfs itself doesn't look for it?"  It may be worthwhile adding filesystems-KERNEL to the nfs-server script to prevent future confusion and headaches like it does for nfs-utils.

curaga:
To be fair, the info file states it's required for server use, and that it's not a dep as the extension can be used for client-only too.

CentralWare:
@Curaga: Thus my suggestion to add minor detection to /usr/local/etc/init.d/nfs-server as it would only apply to nfsd.  I don't recall seeing the notation within nfs-utils.tcz.info when loading via tce-ab...  but it doesn't mean it's not there somewhere.


--- Code: ---start)
     ...
     if [ ! -f /proc/fs/nfsd ]; then
          echo "filesystems-$KERNEL is not installed"
          exit 1;
     fi
     ...

--- End code ---
...that's my thinking at least?!

Within a modular environment (again, totally opinionated here) it would be my way of thinking that a multi-purpose item such as NFS support might "check itself" for things that apply only to a given feature, whereas it would list it in filename.tcz.dep only if it applied to all features.  This could help cut debugging customizations tremendously...  but again, that's just my thoughts.

I truly appreciate everyone's help and responses!  Compared to other distros I've dealt with over the years, I'm actually fascinated over the TC model.  I've had to build replacements for tc-load and the likes due to mix-n-match apps between x86 and x64 (though experimental using x86 under 64; ie: acpid hasn't yet been compiled under x64 so we're testing acpid x86.)

Once we're completed with all of the mods, I'll send along the modifications to see if the TCL staff can put them to use.

curaga:
I'm totally ok with a check like that, but I'm not the author of the nfs-utils extension. Jason and Juanito seem to have updated it last.

Juanito:

--- Quote from: centralware on November 17, 2014, 06:23:12 AM ---I've had to build replacements for tc-load and the likes due to mix-n-match apps between x86 and x64 (though experimental using x86 under 64; ie: acpid hasn't yet been compiled under x64 so we're testing acpid x86.)

--- End quote ---
Please don't be shy - a 64-bit acpid extension would be gratefully received  :)


--- Quote ---Jason and Juanito seem to have updated it last.
--- End quote ---
tc-4.x nfs-utils extension updated

Navigation

[0] Message Index

[#] Next page

Go to full version