Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/hooks
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
commit8b759cb0ad95b8da9a7dfc029dbcac770abd4364 (patch)
treefe4f856a73675e5a8a4b963ab519d0b1b46891a7 /hooks
parent509043fd7d587c39d581b5114572296c205201e3 (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 'hooks')
-rw-r--r--hooks/archiso2
1 files changed, 1 insertions, 1 deletions
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