summaryrefslogtreecommitdiffstats
path: root/builder
diff options
context:
space:
mode:
authorThiago Abdo2019-10-15 17:05:20 +0200
committerThiago Abdo2019-10-15 17:05:20 +0200
commit3eff3fcd9db6ac10e7df8f76f75c5d14e5e66568 (patch)
treea94f41abefc286e10d94909e59105ce197a5f91a /builder
parentRevert "use full dinamicly linked losetup" (diff)
downloadsystemd-init-3eff3fcd9db6ac10e7df8f76f75c5d14e5e66568.tar.gz
systemd-init-3eff3fcd9db6ac10e7df8f76f75c5d14e5e66568.tar.xz
systemd-init-3eff3fcd9db6ac10e7df8f76f75c5d14e5e66568.zip
Removes logging configuration from exception, probabily in bash 4.4.19 they does not work
Signed-off-by: Thiago Abdo <tjabdo@inf.ufpr.br>
Diffstat (limited to 'builder')
-rwxr-xr-xbuilder/modules.d/dnbd3-rootfs/hooks/copy-openslx-configuration-into-newroot.sh6
-rwxr-xr-xbuilder/modules.d/dnbd3-rootfs/hooks/mount-root-device.sh6
2 files changed, 7 insertions, 5 deletions
diff --git a/builder/modules.d/dnbd3-rootfs/hooks/copy-openslx-configuration-into-newroot.sh b/builder/modules.d/dnbd3-rootfs/hooks/copy-openslx-configuration-into-newroot.sh
index 12dab27d..bb8feccc 100755
--- a/builder/modules.d/dnbd3-rootfs/hooks/copy-openslx-configuration-into-newroot.sh
+++ b/builder/modules.d/dnbd3-rootfs/hooks/copy-openslx-configuration-into-newroot.sh
@@ -6,13 +6,13 @@ core.import exceptions
core.import logging
type emergency_shell >/dev/null 2>&1 || source /lib/dracut-lib.sh
# endregion
-exceptions.try
-{
-source "/etc/openslx"
logging.set_commands_level debug
logging.set_level debug
[[ "$SLX_LOG_FILE_PATH" == "" ]] && SLX_LOG_FILE_PATH=/var/log/openslx
logging.set_log_file "$SLX_LOG_FILE_PATH"
+exceptions.try
+{
+source "/etc/openslx"
mkdir --parents "${NEWROOT}/opt/openslx"
cp "/etc/openslx" "${NEWROOT}/opt/openslx/config"
diff --git a/builder/modules.d/dnbd3-rootfs/hooks/mount-root-device.sh b/builder/modules.d/dnbd3-rootfs/hooks/mount-root-device.sh
index a5aceab6..36e4f091 100755
--- a/builder/modules.d/dnbd3-rootfs/hooks/mount-root-device.sh
+++ b/builder/modules.d/dnbd3-rootfs/hooks/mount-root-device.sh
@@ -1,17 +1,19 @@
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
# region imports
+
+sleep 10
source '/usr/lib/rebash/core.sh'
core.import exceptions
type emergency_shell >/dev/null 2>&1 || source /lib/dracut-lib.sh
# endregion
-exceptions.try
-{
logging.set_commands_level debug
logging.set_level debug
[[ "$SLX_LOG_FILE_PATH" == "" ]] && SLX_LOG_FILE_PATH=/var/log/openslx
logging.set_log_file "$SLX_LOG_FILE_PATH"
+exceptions.try
+{
if ! getarg root=; then
source "/etc/openslx"
mount "$SLX_DNBD3_DEVICE_COW" "$NEWROOT" $SLX_MOUNT_ROOT_OPTIONS