Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
55cacd18
Commit
55cacd18
authored
Jul 12, 2017
by
Mike Hibler
Browse files
Recognize that you must use FBSD 10 kernel in FBSD 10 MFS.
parent
05c40b1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/localize_mfs.in
View file @
55cacd18
...
@@ -322,14 +322,24 @@ sub LocalizeBSD()
...
@@ -322,14 +322,24 @@ sub LocalizeBSD()
# Get the correct kernel version
# Get the correct kernel version
# XXX note that the 8.x kernel is usually the default "kernel",
# XXX note that the 8.x kernel is usually the default "kernel",
# we move it to "kernel8" for consistency with the other kernels.
# we move it to "kernel8" for consistency with the other kernels.
# XXX except in the latest 10.x MFS in which there is only a kernel10.
#
#
if
(
-
e
"
kernel
"
&&
!
-
e
"
kernel8
")
{
if
(
-
e
"
kernel
"
&&
!
-
e
"
kernel8
")
{
ExecQuiet
("
mv kernel kernel8
")
==
0
ExecQuiet
("
mv kernel kernel8
")
==
0
or
fatal
("
Could not move kernel to kernel8
");
or
fatal
("
Could not move kernel to kernel8
");
}
}
if
(
-
e
"
kernel
${FBSDKERNEL}
")
{
if
(
-
s "kernel${FBSDKERNEL}") {
print "
Using
FreeBSD
$FBSDKERNEL
kernel
.\
n
"
;
ExecQuiet(
"
cp
-
fp
kernel$
{
FBSDKERNEL
}
kernel
"
) == 0
ExecQuiet(
"
cp
-
fp
kernel$
{
FBSDKERNEL
}
kernel
"
) == 0
or fatal(
"
Could
not
copy
FreeBSD
$
{
FBSDKERNEL
}
.
x
kernel
"
);
or fatal(
"
Could
not
copy
FreeBSD
$
{
FBSDKERNEL
}
.
x
kernel
"
);
} elsif (
$FBSDKERNEL
!= 10 && -e
"
kernel10
"
) {
$FBSDKERNEL
= 10;
print
"
FreeBSD
10
MFS
,
using
FreeBSD
10
kernel
.\
n
"
;
ExecQuiet(
"
cp
-
fp
kernel$
{
FBSDKERNEL
}
kernel
"
) == 0
or fatal(
"
Could
not
copy
FreeBSD
$
{
FBSDKERNEL
}
.
x
kernel
"
);
# XXX create empty kernel8 and kernel9 files so we won't use those
ExecQuiet(
"
cp
/dev/null
kernel8
"
);
ExecQuiet(
"
cp
/dev/null
kernel9
"
);
} else {
} else {
fatal(
"
No
FreeBSD
$
{
FBSDKERNEL
}
.
x
kernel
"
);
fatal(
"
No
FreeBSD
$
{
FBSDKERNEL
}
.
x
kernel
"
);
}
}
...
...
Write
Preview
Supports
Markdown
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