Skip to content

Commit bf2891c

Browse files
committed
WiP: cryptsetup 2.6.1 : bonify log grabber helper and put it under initrd/bin/test_reencrypt_ram.sh
To test and report results: - Please got to recovery shell (hit r frenetically the moment bootsplash flickers) - Have a USB thumb drive connected with either fat32/etx3/ext4/exFAT - Type "test_" and then tab tab. Type enter when you see test_reencrypt_ram.sh - Wait for test to be over. This is when "Done." is showed. - Disconnect USB Thumb drive. - Upload from another computer the content of "ram_reencrypt.log" to github PR Signed-off-by: Thierry Laurion <[email protected]>
1 parent af13404 commit bf2891c

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

initrd/bin/test_reencrypt_ram.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
echo "Mounting USB drive to /media"
2+
mount-usb --mode rw
3+
4+
echo "PLACEHOLDER - Creating 8GB file in /tmp" | tee -a /media/ram_reencrypt.log
5+
dd if=/dev/zero of=/tmp/disk8gb.raw bs=1M count=8k | tee -a /media/ram_reencrypt.log
6+
echo "This is test passphrase used to create LUKS key" > /tmp/passphrase.txt
7+
8+
#cryptsetup benchmark | tee -a /media/ram_reencrypt.log
9+
10+
echo "PLACEHOLDER - Creating LUKS container on /tmp/disk8gb.raw..." | tee -a /media/ram_reencrypt.log
11+
cryptsetup luksFormat /tmp/disk8gb.raw --debug --batch-mode --key-file /tmp/passphrase.txt | tee -a /media/ram_reencrypt.log
12+
13+
echo "PLACEHOLDER - Reeencrypting LUKS container on /tmp/disk8gb.raw..." | tee -a /media/ram_reencrypt.log
14+
cryptsetup reencrypt /tmp/disk8gb.raw --disable-locks --force-offline-reencrypt --debug --batch-mode --key-file /tmp/passphrase.txt | tee -a /media/ram_reencrypt.log
15+
16+
echo "PLACEHOLDER - Unmounting USB drive from /media"
17+
umount /media
18+
echo "Done. You can remove USB drive now and upload ram_reencrypt.log from another computer to github PR."

initrd/test_reencrypt_ram.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)