Commit 0aba0db3 authored by Leigh B Stoller's avatar Leigh B Stoller

Look for a /.localized in the root of the MFS to determine if the MFS

is indeed localized.
parent f6a3c910
......@@ -104,6 +104,17 @@ else
setboss=0
fi
# Indicates the MFS has been properly localized and we can copy stuff
# into the image.
LOCALIZED="/.localized"
islocalized() {
if [ -e $LOCALIZED ]; then
return 0;
fi
return 1;
}
dofreebsd() {
#
# ARGH! FreeBSD 5, which primarily uses UFS2, internally converts
......@@ -295,6 +306,7 @@ dofreebsd() {
fi
fi
if islocalized; then
# Check the certs.
if [ -e $ETCDIR/emulab.pem ]; then
cmp -s $ETCDIR/emulab.pem /mnt/etc/emulab/emulab.pem
......@@ -353,6 +365,7 @@ dofreebsd() {
fixit=1
fi
fi
fi
if [ $fixit -eq 0 ]; then
echo " no changes necessary"
......@@ -725,6 +738,7 @@ dolinux() {
fi
# Check the certs.
if islocalized; then
if [ ! -d /mnt/etc/emulab ]; then
mkdir -m 755 /mnt/etc/emulab || {
echo "Failed to mkdir /mnt/etc/emulab"
......@@ -828,6 +842,7 @@ dolinux() {
}
fi
fi
fi
# run any postconfig scripts:
if [ -x $BINDIR/osconfig ]; then
......
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