diff options
| -rwxr-xr-x | builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh | 3 |
1 files changed, 2 insertions, 1 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 6fe86d12..ff1fdcd3 100755 --- a/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh +++ b/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh @@ -36,13 +36,14 @@ local persistent_device=$(utils.find_block_device \ '$SLX_PERSISTENT_PARTITION_PATTERN_LABEL_UUID_TYPE') local tmp_device=$(utils.find_block_device \ '$SLX_TMP_PARTITION_PATTERN_LABEL_UUID_TYPE') + if [ -n $tmp_device ]; then mount -t auto "$tmp_device" $NEWROOT/tmp fi local persistent="N" # 'P' for persistent storage, 'N' for not persistent local writable_device -if [ -n $persistent_device ]; then +if [ -n "$persistent_device" ]; then writable_device=$persistent_device persistent="P" else |
