Commit 1ab682d2 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add export (to /etc/exports file) of /share read-only to CONTROL_NETWORK.

parent 9b3579d9
......@@ -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
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment