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
ded30adf
Commit
ded30adf
authored
Sep 21, 2012
by
Nikos Skalkotos
Browse files
Add IMAGE_DEBUG variable
if this is set, then snf-image will run in debug mode.
parent
f55d6d0c
Changes
3
Hide whitespace changes
Inline
Side-by-side
snf-image-host/common.sh.in
View file @
ded30adf
...
...
@@ -372,6 +372,7 @@ fi
: ${VARIANTS_DIR:="@sysconfdir@/ganeti/snf-image/variants"}
: ${IMAGE_DIR:="@localstatedir@/lib/snf-image"}
: ${IMAGE_DEBUG:="no"}
: ${HELPER_DIR:="@HELPER_DIR@"}
: ${HELPER_IMG:="@HELPER_IMG@"}
: ${HELPER_KERNEL:="@HELPER_KERNEL@"}
...
...
snf-image-host/create
View file @
ded30adf
...
...
@@ -24,6 +24,13 @@ set -o pipefail
ganeti_os_main
if
[
"
$IMAGE_DEBUG
"
=
"yes"
]
;
then
PS4
=
'$(date "+%s.%N ($LINENO) + ")'
set
-x
elif
[
"
$IMAGE_DEBUG
"
!=
"no"
]
;
then
echo
"Warning: Unsupported IMAGE_DEBUG value:
\`
$IMAGE_DEBUG
'"
fi
# Save stderr to a file
stderr
=
$(
mktemp
)
add_cleanup
rm
"
$stderr
"
...
...
snf-image-host/defaults
View file @
ded30adf
...
...
@@ -10,7 +10,7 @@
# IMAGE_DIR="/var/lib/snf-image"
# IMAGE_DEBUG: turn on debugging output for the scripts
# IMAGE_DEBUG=
0
# IMAGE_DEBUG=
no
# HELPER_DIR: Directory hosting the helper files
# HELPER_DIR="/var/lib/snf-image/helper/"
...
...
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