Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-image
Commits
725a0f88
Commit
725a0f88
authored
Dec 01, 2011
by
Nikos Skalkotos
Browse files
Remove the ARCH field from the image name
parent
7b8cdc65
Changes
3
Hide whitespace changes
Inline
Side-by-side
snf-image-host/common.sh.in
View file @
725a0f88
...
...
@@ -266,7 +266,6 @@ if [ -f "$DEFAULT_FILE" ]; then
. "$DEFAULT_FILE"
fi
: ${ARCH:="x86_64"}
: ${VARIANTS_DIR:="@sysconfdir@/ganeti/snf-image/variants"}
: ${IMAGE_DIR:="@localstatedir@/lib/snf-image"}
: ${HELPER_DIR:="@HELPER_DIR@"}
...
...
snf-image-host/create
View file @
725a0f88
...
...
@@ -29,7 +29,7 @@ if [ "$IMAGE_TYPE" = custom ]; then
image_size
=
\
$(
$CURL
-sI
"
$IMAGE_NAME
"
|
grep
^Content-Length: |
cut
-d
" "
-f2
)
else
image_file
=
"
$IMAGE_DIR
/
$IMAGE_NAME
-
$ARCH
.
$IMAGE_TYPE
"
image_file
=
"
$IMAGE_DIR
/
$IMAGE_NAME
.
$IMAGE_TYPE
"
image_size
=
"
$(
stat
-L
-c
%s
"
$image_file
"
)
"
fi
...
...
snf-image-host/defaults
View file @
725a0f88
...
...
@@ -9,10 +9,6 @@
# IMAGE_DIR: directory location for disk images
# IMAGE_DIR="/var/lib/snf-image"
# ARCH: Define the ARCH of the image to use
# Use either x86 or x86_64
# ARCH="x86_64"
# IMAGE_DEBUG: turn on debugging output for the scripts
# IMAGE_DEBUG=0
...
...
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