archiso/initcpio/hooks/archiso: remove option terminator from the blockdev command

Apparently blockdev does not support it.
In an ISO made using '-s img' (Squashfs with dm-snapshot), it results in:

    blockdev: Unknown command: --
This commit is contained in:
nl6720 2020-08-02 15:37:30 +03:00
parent 6312ccc9bc
commit 8e82bbbe4a
No known key found for this signature in database
GPG Key ID: 5CE88535E188D369

View File

@ -14,7 +14,7 @@ _mnt_dmsnapshot() {
ro_dev="$(losetup --find --show --read-only -- "${img}")"
echo "${ro_dev}" >> /run/archiso/used_block_devices
ro_dev_size="$(blockdev --getsz -- "${ro_dev}")"
ro_dev_size="$(blockdev --getsz "${ro_dev}")"
if [ "${cow_persistent}" = "P" ]; then
if [ -f "/run/archiso/cowspace/${cow_directory}/${img_name}.cow" ]; then