diff --git a/install/ops-install.in b/install/ops-install.in index 1d996603bf50c6195e989aba6a7de5992cbee10b..378d13360e30c8234be4d6a9d55d6e972acd927f 100644 --- a/install/ops-install.in +++ b/install/ops-install.in @@ -34,6 +34,10 @@ my $BOSSNODE_IP = '@BOSSNODE_IP@'; my $USERNODE_IP = '@USERNODE_IP@'; my $LOGFACIL = '@TBLOGFACIL@'; +# For /share export below. +my $CONTROL_NETWORK = "@CONTROL_NETWORK@"; +my $CONTROL_NETMASK = "@CONTROL_NETMASK@"; + # # Allow this to work if the library is left in the source directory # @@ -338,6 +342,17 @@ Phase "exports", "Setting up exports", sub { join(" ",@{$filesystems{$key}}) . "\t$BOSSNODE -maproot=root"; } + # + # /share is special. We want to export that to the control network + # read-only (it is exported to boss r/w, above). + # + my ($a,$b,$c,$d) = ($CONTROL_NETWORK =~ /^(\d*)\.(\d*)\.(\d*)\.(\d*)/); + my $realdir = `realpath /share`; + chomp($realdir); + push(@exports_lines, + "$realdir\t-network ${a}.${b}.${c} -mask $CONTROL_NETMASK ". + "-maproot=root -ro"); + # # Put them in exports.head, and copy that to /etc/exports #