Skip to content
GitLab
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
b872c5ff
Commit
b872c5ff
authored
May 13, 2013
by
Srikanth Raju
Committed by
Leigh B Stoller
Jul 23, 2013
Browse files
Prettify
parent
348adcd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/linux/xen/export-template-remote.rb
View file @
b872c5ff
...
...
@@ -18,7 +18,8 @@ class EmulabExport
$:
.
unshift
(
Dir
.
pwd
+
"/ec2-ami-tools-1.4.0.9/lib/"
)
require
'ec2/platform/current'
excludes
=
[
'/tmp/image'
,
'/dev'
,
'/media'
,
'/mnt'
,
'/proc'
,
'/sys'
,
'/'
,
'/proc/sys/fs/binfmt_misc'
,
'/dev/pts'
]
excludes
=
[
'/tmp/image'
,
'/dev'
,
'/media'
,
'/mnt'
,
'/proc'
,
'/sys'
,
'/'
,
'/proc/sys/fs/binfmt_misc'
,
'/dev/pts'
]
image
=
EC2
::
Platform
::
Current
::
Image
.
new
(
"/"
,
"/tmp/image"
,
10
*
1024
,
...
...
@@ -31,7 +32,8 @@ class EmulabExport
end
def
check_prereqs
()
raise
"No unzip found. Please install unzip"
unless
system
(
"command -v unzip >/dev/null 2>&1"
)
raise
"No unzip found. Please install unzip"
unless
system
(
"command -v unzip >/dev/null 2>&1"
)
end
def
get_kernel
()
...
...
@@ -78,7 +80,8 @@ class EmulabExport
def
gen_tar
()
raise
"Couldn't tar"
unless
system
(
"tar -cvzf emulab.tar.gz kernel initrd bootopts -C /tmp/ image 2>&1"
)
system
(
"tar -cvzf emulab.tar.gz kernel initrd "
+
"bootopts -C /tmp/ image 2>&1"
)
end
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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