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:
parent
6312ccc9bc
commit
8e82bbbe4a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user