[Linux-cachefs] mount -o remount?
Daire Byrne
Daire.Byrne at framestore.com
Wed May 6 14:36:09 UTC 2009
David,
----- "David Howells" <dhowells at redhat.com> 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
More information about the Linux-cachefs
mailing list