summaryrefslogtreecommitdiffstats
path: root/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device
diff options
context:
space:
mode:
Diffstat (limited to 'builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device')
-rwxr-xr-xbuilder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device4
1 files changed, 4 insertions, 0 deletions
diff --git a/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device b/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device
index 1909536a..b0be2820 100755
--- a/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device
+++ b/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device
@@ -239,6 +239,10 @@ save_partition_info() {
. /etc/openslx
# This is the main variable driving this script
declare -g writable_device=
+if [ -z "$SLX_WRITABLE_DEVICE_IDENTIFIER" ]; then
+ SLX_WRITABLE_DEVICE_IDENTIFIER="44"
+ echo "SLX_WRITABLE_DEVICE_IDENTIFIER='$SLX_WRITABLE_DEVICE_IDENTIFIER'" >> /etc/openslx
+fi
if [ -n "$SLX_WRITABLE_DEVICE_IDENTIFIER" ]; then
# only first one for now TODO create linear devices of all ID44s
writable_device="$(slx-tools dev_find_partitions "$SLX_WRITABLE_DEVICE_IDENTIFIER" | head -n 1)"