diff options
| author | jandob | 2016-03-22 15:10:02 +0100 |
|---|---|---|
| committer | jandob | 2016-03-22 15:10:02 +0100 |
| commit | fc8a01bb8f51137c06b1eb3a8c2a8c5a6a334f59 (patch) | |
| tree | 4bdf342d15e909f3a4c41dbda7bc47517ecadbb4 | |
| parent | add timeout parameter to find_block_device (diff) | |
| download | systemd-init-fc8a01bb8f51137c06b1eb3a8c2a8c5a6a334f59.tar.gz systemd-init-fc8a01bb8f51137c06b1eb3a8c2a8c5a6a334f59.tar.xz systemd-init-fc8a01bb8f51137c06b1eb3a8c2a8c5a6a334f59.zip | |
add timeout parameter
| -rwxr-xr-x | builder/dnbd3-rootfs/hooks/prepare-root-partition.sh | 8 | ||||
| -rw-r--r-- | dev-tools/example-openslx.config | 1 |
2 files changed, 6 insertions, 3 deletions
diff --git a/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh b/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh index 3dc22978..4fc7e2ee 100755 --- a/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh +++ b/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh @@ -15,9 +15,11 @@ logging.set_level debug source /etc/openslx # region find writable partition -if [[ "$SLX_WRITABLE_DEVICE_IDENTIFIER" != "" ]] \ - && ! persistent_device=$( - tools.find_block_device "$SLX_WRITABLE_DEVICE_IDENTIFIER") +if [[ "$SLX_WRITABLE_DEVICE_IDENTIFIER" != "" ]] && + ! persistent_device="$( + tools.find_block_device "$SLX_WRITABLE_DEVICE_IDENTIFIER" "" \ + "$SLX_WRITABLE_DEVICE_IDENTIFIER_TIMEOUT" + )" then logging.warn "Failed to find unique device with identifier" \ "\"${SLX_WRITABLE_DEVICE_IDENTIFIER}\"; matched devices:" \ diff --git a/dev-tools/example-openslx.config b/dev-tools/example-openslx.config index 122da9ae..47d37c43 100644 --- a/dev-tools/example-openslx.config +++ b/dev-tools/example-openslx.config @@ -6,6 +6,7 @@ SLX_DNBD3_IMAGE='archLinux/archLinux.vmdk' # If empty the whole device is used SLX_SYSTEM_PARTITION_IDENTIFIER='system' SLX_WRITABLE_DEVICE_IDENTIFIER='' +SLX_WRITABLE_DEVICE_IDENTIFIER_TIMEOUT='' SLX_WRITABLE_DEVICE_STORAGE_FILE='storage.img' # NOTE: if the filesystem is any other than ext4, then the corresponding # filesystem tools have to be added to the initramfs manually. (use the dracut |
