summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2019-12-18 11:19:52 +0100
committerJonathan Bauer2019-12-18 11:19:52 +0100
commit90f1e4fca98dd8304ef547ca8346f88385386e78 (patch)
tree2628d75acc68a976b18688102cb27b3e05d849a8
parent[slx-addons] properly use addon's ld.so.cache (diff)
downloadsystemd-init-90f1e4fca98dd8304ef547ca8346f88385386e78.tar.gz
systemd-init-90f1e4fca98dd8304ef547ca8346f88385386e78.tar.xz
systemd-init-90f1e4fca98dd8304ef547ca8346f88385386e78.zip
[slx-dmsetup] support default GPT part type for ID44
-rwxr-xr-xbuilder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device8
1 files changed, 5 insertions, 3 deletions
diff --git a/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device b/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device
index b0be2820..1f280099 100755
--- a/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device
+++ b/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device
@@ -240,12 +240,14 @@ save_partition_info() {
# 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
+ SLX_WRITABLE_DEVICE_IDENTIFIER=("44" "87f86132-ff94-4987-b250-444444444444")
+ # TODO make scripts reading this variable compatible with list of IDs
+ echo "SLX_WRITABLE_DEVICE_IDENTIFIER='${SLX_WRITABLE_DEVICE_IDENTIFIER[0]}'" >> /etc/openslx
+ echo "SLX_WRITABLE_DEVICE_IDENTIFIERS='${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)"
+ writable_device="$(slx-tools dev_find_partitions "${SLX_WRITABLE_DEVICE_IDENTIFIER[@]}" | head -n 1)"
fi
if [ -z "$writable_device" ]; then
echo "$0: Could not find writable device with id '$SLX_WRITABLE_DEVICE_IDENTIFIER'."