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
674b3b7d
Commit
674b3b7d
authored
Aug 13, 2014
by
Leigh B Stoller
Browse files
Remove swap line from /etc/fstab inside guest root.
Fix up LVSIZE calculation to use IMAGESSIZE.
parent
b3b6e74d
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/linux/xen/libvnode_xen.pm
View file @
674b3b7d
...
...
@@ -1392,6 +1392,9 @@ sub vnodePreConfig($$$$$){
goto
bad
if
(
$?
);
# remove swap partitions from fstab
mysystem2
("
sed -i -e '/swap/d'
$vnoderoot
/etc/fstab
");
# enable the correct device for console
if
(
-
f
"
$vnoderoot
/etc/inittab
")
{
mysystem2
("
sed -i.bak -e 's/xvc0/console/'
"
.
...
...
@@ -1415,6 +1418,7 @@ sub vnodePreConfig($$$$$){
"
$vnoderoot
/etc/shadow
");
}
}
# Testing a theory; remove all this iscsi stuff to see if that
# is causing problems with the control network interface going
# offline after boot.
...
...
@@ -2742,7 +2746,8 @@ sub downloadOneImage($$)
if
(
exists
(
$raref
->
{'
IMAGELOW
'})
&&
exists
(
$raref
->
{'
IMAGEHIGH
'}))
{
$raref
->
{'
LVSIZE
'}
=
$raref
->
{'
IMAGEHIGH
'}
-
$raref
->
{'
IMAGELOW
'}
+
1
;
((
$raref
->
{'
IMAGEHIGH
'}
-
$raref
->
{'
IMAGELOW
'}
+
1
)
/
(
1024
/
$raref
->
{'
IMAGESSIZE
'}));
}
}
if
(
mysystem2
("
lvcreate -n
$lvname
-L
${lv_size}
m
$VGNAME
"))
{
...
...
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