]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
fix cryptsetup parameter
authorBastian Dehn <hhaalo@arcor.de>
Sun, 16 Aug 2026 18:19:54 +0000 (20:19 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 16 Aug 2026 18:19:54 +0000 (20:19 +0200)
src/backupmount
tests/backupmount_tests.bats

index 089253cebe70afcb9cf45cc187f4bfe511bc9621..408ba8ab2030afc0b2e414641effecb4612f125a 100755 (executable)
@@ -113,7 +113,7 @@ mount_device()
                || return $?
 
        local cryptsetupargs=("open"
-               "--key-file $key"
+               "--key-file=$key"
                "$device"
                "$volume")
        cryptsetup "${cryptsetupargs[@]}" \
index 9cdf46eada726ddf43ce3683ea55110680456c77..b04a39adc25c3b945279c6bb774d58b4e14309cb 100755 (executable)
@@ -321,7 +321,7 @@ teardown() {
        assert_line --index 3 "ℹ️ INFO: volume open luks-crypt-volume"
        assert_equal "$(awk 'NR==1 {print; exit}' "$CRYPTSETUP_LOG")" "4"
        assert_equal "$(awk 'NR==2 {print; exit}' "$CRYPTSETUP_LOG")" "open"
-       assert_equal "$(awk 'NR==3 {print; exit}' "$CRYPTSETUP_LOG")" "--key-file /path/to/luks-key-file-day"
+       assert_equal "$(awk 'NR==3 {print; exit}' "$CRYPTSETUP_LOG")" "--key-file=/path/to/luks-key-file-day"
        assert_equal "$(awk 'NR==4 {print; exit}' "$CRYPTSETUP_LOG")" "/dev/path/to/day"
        assert_equal "$(awk 'NR==5 {print; exit}' "$CRYPTSETUP_LOG")" "luks-crypt-volume"
 }