summaryrefslogtreecommitdiffstats
path: root/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh
diff options
context:
space:
mode:
authorjandob2016-03-21 09:28:08 +0100
committerjandob2016-03-21 09:28:08 +0100
commit6b81e2d34793c26c98498f35542960887794f296 (patch)
tree2765178a97f8b259d877e5ab39b2c2f344c9b83e /builder/dnbd3-rootfs/hooks/prepare-root-partition.sh
parentupdate rebash (diff)
downloadsystemd-init-6b81e2d34793c26c98498f35542960887794f296.tar.gz
systemd-init-6b81e2d34793c26c98498f35542960887794f296.tar.xz
systemd-init-6b81e2d34793c26c98498f35542960887794f296.zip
add Feature #834
Diffstat (limited to 'builder/dnbd3-rootfs/hooks/prepare-root-partition.sh')
-rwxr-xr-xbuilder/dnbd3-rootfs/hooks/prepare-root-partition.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh b/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh
index d5c9d1d1..71f70df2 100755
--- a/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh
+++ b/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh
@@ -107,8 +107,13 @@ fi
# endregion
# region find read-only partition
if [ -z "$SLX_SYSTEM_PARTITION_PREPARATION_SCRIPT" ]; then
- read_only_partition="$(tools.find_block_device \
- "$SLX_SYSTEM_PARTITION_IDENTIFIER" "$read_only_device")"
+ if [ -z "$SLX_SYSTEM_PARTITION_IDENTIFIER" ]; then
+ read_only_partition="$read_only_device"
+ true
+ else
+ read_only_partition="$(tools.find_block_device \
+ "$SLX_SYSTEM_PARTITION_IDENTIFIER" "$read_only_device")"
+ fi
else
eval "$SLX_SYSTEM_PARTITION_PREPARATION_SCRIPT"
fi