Skip to content
Snippets Groups Projects
Unverified Commit 8e82bbbe authored by nl6720's avatar nl6720
Browse files

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: --
parent 6312ccc9
No related branches found
Tags v47
1 merge request!60archiso/initcpio/hooks/archiso: remove option terminator from the blockdev command
Pipeline #879 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment