From 8b759cb0ad95b8da9a7dfc029dbcac770abd4364 Mon Sep 17 00:00:00 2001 From: nl6720 Date: Sun, 2 Aug 2020 15:37:30 +0300 Subject: 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: -- --- hooks/archiso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hooks/archiso') diff --git a/hooks/archiso b/hooks/archiso index a12c260..716c69e 100644 --- a/hooks/archiso +++ b/hooks/archiso @@ -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 -- cgit v1.2.3-70-g09d2