File: fix.test-luksmeta.patch

package info (click to toggle)
luksmeta 9-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 1,636 kB
  • sloc: sh: 4,410; ansic: 1,804; makefile: 88
file content (19 lines) | stat: -rw-r--r-- 482 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Work around test-luksmeta fail when running as non-root
Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
Date: 2019-03-01
Forwarded: no

    The cryptsetup luksFormat program now fails when running as
    non-root, see #923513

--- a/test-luksmeta
+++ b/test-luksmeta
@@ -11,7 +11,7 @@
 trap 'onexit' EXIT
 
 truncate -s 4M $tmp
-echo -n foo | cryptsetup luksFormat $tmp -
+echo -n foo | cryptsetup luksFormat --type luks1 $tmp -
 
 ! ./luksmeta test -d $tmp