|
|
|
Re: mount -o remount? | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
David,
----- "David Howells" <dhowells@xxxxxxxxxx> wrote:
>
> Did you get it to pass the option to the kernel?
>
Unfortunately my programming skills are just not good enough to figure out the structure of busybox's mount:
http://sources.busybox.net/index.py/trunk/busybox/util-linux/mount.c?diff_format=h&revision=26173&view=markup
However, I have just managed to find a workaround that I can use whereby I mount the root NFS filesystem, chroot into it and then use the "proper" mount command to mount the NFS root filesystem again. Something like:
mount -t nfs -o nolock,ro,tcp ${NFS_SERVER}:${NFS_ROOT} /mnt/nfsroot
chroot /mnt/nfsroot mount -o fsc,nolock,ro ${NFS_SERVER}:${NFS_ROOT} /mnt/nfsroot
mount --move /mnt/nfsroot/mnt/nfsroot /mnt/sysroot
umount /mnt/nfsroot
mount --move /mnt/sysroot /mnt/nfsroot
Slightly convoluted but it works. Starting cachefilesd not long after this seems to be doing what I want too.
Thanks,
Daire
--
Linux-cachefs mailing list
Linux-cachefs@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cachefs
[Linux Resources] [LARTC] [Bugtraq] [Yosemite Forum] [Photo]