mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
Merge pull request #12009 from mrc0mmand/bump-partition-size-for-TEST-02-CRYPTSETUP
test: fix LUKS2 support
This commit is contained in:
commit
1aac9f5dee
@ -29,7 +29,7 @@ check_result_qemu() {
|
||||
test_setup() {
|
||||
create_empty_image
|
||||
echo -n test >$TESTDIR/keyfile
|
||||
cryptsetup -q luksFormat ${LOOPDEV}p2 $TESTDIR/keyfile
|
||||
cryptsetup -q luksFormat --pbkdf pbkdf2 --pbkdf-force-iterations 1000 ${LOOPDEV}p2 $TESTDIR/keyfile
|
||||
cryptsetup luksOpen ${LOOPDEV}p2 varcrypt <$TESTDIR/keyfile
|
||||
mkfs.ext4 -L var /dev/mapper/varcrypt
|
||||
mkdir -p $TESTDIR/root
|
||||
|
@ -470,7 +470,7 @@ create_empty_image() {
|
||||
[ -b "$LOOPDEV" ] || return 1
|
||||
echo "LOOPDEV=$LOOPDEV" >> $STATEFILE
|
||||
sfdisk "$LOOPDEV" <<EOF
|
||||
,$((_size-10))M
|
||||
,$((_size-50))M
|
||||
,
|
||||
EOF
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user