summaryrefslogtreecommitdiffstats
path: root/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh
diff options
context:
space:
mode:
authorjandob2015-11-21 16:19:01 +0100
committerjandob2015-11-21 16:19:01 +0100
commita768e2fc756b570a418afbc2fdbbed0787c0ba17 (patch)
tree69aa80f8cdcddcd0a30fe6ea7714537fe43a56c7 /builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh
parentremove ipxelinux.0 symlink from index (diff)
downloadsystemd-init-a768e2fc756b570a418afbc2fdbbed0787c0ba17.tar.gz
systemd-init-a768e2fc756b570a418afbc2fdbbed0787c0ba17.tar.xz
systemd-init-a768e2fc756b570a418afbc2fdbbed0787c0ba17.zip
integrate rebash into initramfs
Diffstat (limited to 'builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh')
-rwxr-xr-xbuilder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh b/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh
index 95ee8fd1..9dfe5e3e 100755
--- a/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh
+++ b/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh
@@ -1,4 +1,8 @@
-source "/usr/lib/utils.sh"
+source "/usr/lib/rebash/core.sh"
+core.import utils
+core.import logging
+logging.set_commands_log_level debug
+logging.set_log_level debug
# Close previous connections to be able to run this script many times.
dnbd3-client --device "$SLX_DNBD3_DEVICE" --close
@@ -23,7 +27,7 @@ fi
local nbd_device='/dev/nbd0'
systemd-preserve-process-marker qemu-nbd --connect="$nbd_device" \
"$SLX_DNBD3_DEVICE" --read-only
-local read_only_partition="$(utils_create_partition_via_offset "$nbd_device" \
+local read_only_partition="$(utils.create_partition_via_offset "$nbd_device" \
"$SLX_SYSTEM_PARTITION_LABEL")"
# Make read-only partition writable.
# TODO implement persistent available indicator.