diff options
author | jandob | 2016-03-21 09:28:08 +0100 |
---|---|---|
committer | jandob | 2016-03-21 09:28:08 +0100 |
commit | 6b81e2d34793c26c98498f35542960887794f296 (patch) | |
tree | 2765178a97f8b259d877e5ab39b2c2f344c9b83e /builder/dnbd3-rootfs/hooks/prepare-root-partition.sh | |
parent | update rebash (diff) | |
download | systemd-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-x | builder/dnbd3-rootfs/hooks/prepare-root-partition.sh | 9 |
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 |