On Tue, Jun 19, 2018 at 6:07 PM, Michael D. Setzer II <[email protected]> wrote:
> Tried adding the lines into the busybox .config file, but then trying to make
> it
> still fails in the mount.c program when it still tries to include the three
> header
> files that no longer exist on the fedora 28 in the /usr/include/rpc directory.
If you get am error, please show it.
> Ended up just removing the mount and umount options from busybox, and it
> then compiles just fine. Reduces busybox file by about 15K. Unfortunately
> adding the mount, umount and required libraries is about an additional 500K.
Please see this:
//config:config FEATURE_MOUNT_NFS
//config: bool "Support mounting NFS file systems on Linux < 2.6.23"
//config: default n
//config: depends on MOUNT
//config: select FEATURE_SYSLOG
//config: help
//config: Enable mounting of NFS file systems on Linux kernels prior
//config: to version 2.6.23. Note that in this case mounting of NFS
//config: over IPv6 will not be possible.
//config:
//config: Note that this option links in RPC support from libc,
//config: which is rather large (~10 kbytes on uclibc).
You can simply unselect this option.
Today, NFS mounting works on non-ancient kernels *without RPC*.
It used to use a binary structure with mount options
(struct nfs_mount_data), but now it also accepts string
as mount options, like all other filesystems always did.
See:
/* Linux 2.6.23+ supports nfs mounts with options passed as a string.
* For older kernels, you must build busybox with ENABLE_FEATURE_MOUNT_NFS.
* (However, note that then you lose any chances that NFS over IPv6 would work).
*/
static int nfsmount(struct mntent *mp, unsigned long vfsflags, char *filteropts)
{
len_and_sockaddr *lsa;
char *opts;
char *end;
char *dotted;
int ret;
This function resolves hostname to IP(v6) and passes it in "addr=IP" option.
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox