Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
0aba0db3
Commit
0aba0db3
authored
Mar 08, 2012
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Look for a /.localized in the root of the MFS to determine if the MFS
is indeed localized.
parent
f6a3c910
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
137 additions
and
122 deletions
+137
-122
clientside/tmcc/freebsd/slicefix
clientside/tmcc/freebsd/slicefix
+137
-122
No files found.
clientside/tmcc/freebsd/slicefix
View file @
0aba0db3
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment