summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlessandro Elias2016-02-19 17:34:18 +0100
committerAlessandro Elias2016-02-19 17:34:18 +0100
commitac0c69163878a9a5ac9f4c46fd6e9efeb06af7ae (patch)
tree601e66400e3bb89044ba72c4198f84ee6d33bd41
parentFixed path to config, new name /etc/openslx. (diff)
downloadsystemd-init-ac0c69163878a9a5ac9f4c46fd6e9efeb06af7ae.tar.gz
systemd-init-ac0c69163878a9a5ac9f4c46fd6e9efeb06af7ae.tar.xz
systemd-init-ac0c69163878a9a5ac9f4c46fd6e9efeb06af7ae.zip
Fixed name of new config, /etc/openlx
Signed-off-by: Alessandro Elias <ae11@c3sl.ufpr.br>
-rwxr-xr-xbuilder/hd-boot/hooks/prepare-root-part.sh11
1 files changed, 5 insertions, 6 deletions
diff --git a/builder/hd-boot/hooks/prepare-root-part.sh b/builder/hd-boot/hooks/prepare-root-part.sh
index d95b5846..0583034e 100755
--- a/builder/hd-boot/hooks/prepare-root-part.sh
+++ b/builder/hd-boot/hooks/prepare-root-part.sh
@@ -18,7 +18,6 @@ core.import utils
LOOP_BACK=127.0.0.1
BLOCK_DM="root"
-SLX_CONFIG_FILE="config"
debug_off() {
set +x
@@ -95,13 +94,13 @@ fi
# in /boot must be a backup of config
if [ -z "$SLX_DNBD3_RELATIVE_PATH" ]; then
- [ ! -e "${DIR_ROOT}/boot/${SLX_CONFIG_FILE}" ] &&\
- emergency_shell "${DIR_ROOT}/boot/${SLX_CONFIG_FILE} could not be found."
- . "${DIR_ROOT}/boot/${SLX_CONFIG_FILE}"
+ [ ! -e "${DIR_ROOT}/boot/${CONFIG_FILE_NAME}" ] &&\
+ emergency_shell "${DIR_ROOT}/boot/${CONFIG_FILE_NAME} could not be found."
+ . "${DIR_ROOT}/boot/${CONFIG_FILE_NAME}"
else
# update the config file we've got one from the server.
- cp -a "${SLX_CONFIGURATION_LOCATION}/${SLX_CONFIG_FILE}"\
- "${DIR_ROOT}/boot/${SLX_CONFIG_FILE}"
+ cp -a "${SLX_CONFIGURATION_LOCATION}/${CONFIG_FILE_NAME}"\
+ "${DIR_ROOT}/boot/${CONFIG_FILE_NAME}"
fi
info "Starting DNBD3 server at \"$LOOP_BACK\" settings at \"$DNBD3_CONFIG_DIR\"."