diff options
| author | nl6720 <nl6720@gmail.com> | 2020-08-02 15:37:30 +0300 |
|---|---|---|
| committer | nl6720 <nl6720@gmail.com> | 2020-08-11 06:58:06 +0300 |
| commit | 8e82bbbe4a239a529a3c7df3ae0664fc551e1213 (patch) | |
| tree | e8f31e402057cfe93e70d4b01a9771fb6c559acf | |
| parent | 6312ccc9bccb453c8506322581aa467538bc123f (diff) | |
| download | archiso-8e82bbbe4a239a529a3c7df3ae0664fc551e1213.tar.gz archiso-8e82bbbe4a239a529a3c7df3ae0664fc551e1213.tar.bz2 | |
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: --
| -rw-r--r-- | archiso/initcpio/hooks/archiso | 2 |
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 |
