Commit de7cd947 authored by Mike Hibler's avatar Mike Hibler

localize_mfs will default to the MFS version from the defs- file.

This makes it sligtly more likely that you will be able to update an MFS
(e.g., to install a new certificate) by just using localize_mfs. The
biggest problem is that some clusters use multiple MFS frisbee/freebsd pairs
for various reasons (are you listening Emulab?).

A remaining problem to be addressed is that you still need to figure out
which directories in /tftpboot are the correct ones to update. Maybe we
add something like a -A option to localize_mfs to go look in the DB, figure
out which MFSes are used by some node or node_type, extract the path from
those, and update them.
parent f981a25d
......@@ -119,7 +119,7 @@ MIN_UNIX_GID=2000
NODECONSOLE="sio2"
# Which version of the MFS.
MFSVERSION="8-64"
MFSVERSION="10-64"
PROTOGENI_SUPPORT=1
PROTOGENI_GENIRACK=0
PROTOGENI_DOMAIN="apt"
......
......@@ -109,7 +109,7 @@ MIN_UNIX_GID=2000
# Which console to use in the MFS. We need to set this for GeniRacks.
NODECONSOLE="vga"
# Which version of the MFS.
MFSVERSION="8-64"
MFSVERSION="10-64"
PROTOGENI_SUPPORT=1
PROTOGENI_DOMAIN="clemsoncloudlab"
PROTOGENI_LOCALUSER=1
......
......@@ -113,7 +113,7 @@ MIN_UNIX_GID=2000
NODECONSOLE="vga"
# Which version of the MFS.
MFSVERSION="8-64"
MFSVERSION="10-64"
PROTOGENI_SUPPORT=1
PROTOGENI_GENIRACK=0
PROTOGENI_DOMAIN="cloudlab"
......
......@@ -404,7 +404,7 @@ NODECONSOLE="sio"
# "82" Semi-old FreeBSD 8.2, 32-bit; use if you have 32-bit nodes
# "8-64" Semi-old FreeBSD 8.2, 64-bit; use if you have ALL 64-bit nodes
#
MFSVERSION="8-64"
MFSVERSION="10-64"
#
# Set this if you are running:
......
#!/usr/bin/perl -w
#
# Copyright (c) 2010-2018 University of Utah and the Flux Group.
# Copyright (c) 2010-2019 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -54,7 +54,13 @@ my $ETCDIR = "$TB/etc";
my $ELABINELAB = @ELABINELAB@;
my $MFSCONSOLE = "@NODECONSOLE@";
my $OURTIMEZONE = "@OURTIMEZONE@";
my $MFSVERSION = "@MFSVERSION@";
# Use defs variable to initialize
my $FBSDKERNEL = 8;
if ($MFSVERSION && $MFSVERSION =~ /^(8|9|10|11)[-\d]/) {
$FBSDKERNEL = $1;
}
# Need these below.
my $FBSD_MAJOR;
......
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