Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2020-08-02 15:37:30 +0300
committernl6720 <nl6720@gmail.com>2020-08-11 06:58:06 +0300
commit8e82bbbe4a239a529a3c7df3ae0664fc551e1213 (patch)
treee8f31e402057cfe93e70d4b01a9771fb6c559acf /archiso
parent6312ccc9bccb453c8506322581aa467538bc123f (diff)
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: --
Diffstat (limited to 'archiso')
-rw-r--r--archiso/initcpio/hooks/archiso2
1 files changed, 1 insertions, 1 deletions
diff --git a/archiso/initcpio/hooks/archiso b/archiso/initcpio/hooks/archiso
index a12c260..716c69e 100644
--- a/archiso/initcpio/hooks/archiso
+++ b/archiso/initcpio/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