On Fri, Aug 21, 2020 at 07:47:24PM +0800, Wu Fengguang wrote:
奇怪, fsid=0 只能开一个的
只开一个就会报下面的错,跑不起来。
exportfs: /exports/result requires fsid= for NFS export exportfs: /exports/initrd requires fsid= for NFS export exportfs: /exports/osimage requires fsid= for NFS export exportfs: /exports/os-rw requires fsid= for NFS export exportfs: /exports/os requires fsid= for NFS export
Thanks, Yinsi
Thanks, Fengguang
Signed-off-by: Liu Yinsi liuyinsi@huawei.com
container/os-nfs/root/etc/exports | 10 +++++----- container/os-nfs/start | 1 + sparrow/4-docker/buildall | 1 - 3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/container/os-nfs/root/etc/exports b/container/os-nfs/root/etc/exports index 07ba95b..346542b 100644 --- a/container/os-nfs/root/etc/exports +++ b/container/os-nfs/root/etc/exports @@ -1,6 +1,6 @@ /exports *(ro,async,fsid=0,crossmnt,no_subtree_check,no_root_squash) -/exports/os *(ro,async,no_subtree_check,no_root_squash) -/exports/os-rw *(rw,async,no_subtree_check,no_root_squash) -/exports/osimage *(rw,async,no_subtree_check,insecure,all_squash,anonuid=1090,anongid=1090) -/exports/initrd *(rw,async,no_subtree_check,insecure,all_squash,anonuid=1090,anongid=1090) -/exports/result *(rw,async,no_subtree_check,insecure,all_squash,anonuid=1090,anongid=1090) +/exports/os *(ro,async,fsid=0,no_subtree_check,no_root_squash) +/exports/os-rw *(rw,async,fsid=0,no_subtree_check,no_root_squash) +/exports/osimage *(rw,async,fsid=0,no_subtree_check,insecure,all_squash,anonuid=1090,anongid=1090) +/exports/initrd *(rw,async,fsid=0,no_subtree_check,insecure,all_squash,anonuid=1090,anongid=1090) +/exports/result *(rw,async,fsid=0,no_subtree_check,insecure,all_squash,anonuid=1090,anongid=1090) diff --git a/container/os-nfs/start b/container/os-nfs/start index a95a0d8..e1dcb5e 100755 --- a/container/os-nfs/start +++ b/container/os-nfs/start @@ -19,6 +19,7 @@ cmd=( # -it --name os-nfs # avoid multiple containers -e NFS_DISABLE_VERSION_3=1
- --mount type=tmpfs,destination=/exports -v /srv/os:/exports/os:ro -v /srv/os:/exports/os-rw # for install/setup -v /srv/result:/exports/result
diff --git a/sparrow/4-docker/buildall b/sparrow/4-docker/buildall index d03b7d7..d7a373c 100755 --- a/sparrow/4-docker/buildall +++ b/sparrow/4-docker/buildall @@ -33,7 +33,6 @@ do_one() [ -x build ] && ./build [ -x install ] && ./install [ -x first-run ] && ./first-run
[ -x start ] && ./start ) lockfile-remove --lock-name "$container_name".lock[ "$container_name" == 'os-nfs' ] && exit
-- 2.23.0