Skip to content

Commit 0f6d144

Browse files
committed
Unrelated: add instructions to enter recovery shell/OEM Factory Reset/Re-Ownership first thing prior of printing motd
Signed-off-by: Thierry Laurion <[email protected]>
1 parent 4cb56d4 commit 0f6d144

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

initrd/bin/test_reencrypt_block_device_with_double_confirmation.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ echo "PLACEHOLDER - Running benchmark..." | tee /media/block_reencrypt.log
2424
cryptsetup benchmark | tee -a /media/block_reencrypt.log
2525

2626
echo "PLACEHOLDER - Creating LUKS container on $DISK..." | tee -a /media/block_reencrypt.log
27-
time cryptsetup luksFormat "$DISK" --debug --batch-mode --key-file /tmp/passphrase.txt | tee -a /media/block_reencrypt.log
27+
time cryptsetup luksFormat "$DISK" --debug --key-file /tmp/passphrase.txt | tee -a /media/block_reencrypt.log
2828

2929
echo "PLACEHOLDER - Reeencrypting LUKS container on $DISK..." | tee -a /media/block_reencrypt.log
30-
time cryptsetup reencrypt "$DISK" --disable-locks --force-offline-reencrypt --debug --batch-mode --key-file /tmp/passphrase.txt | tee -a /media/block_reencrypt.log
30+
time cryptsetup reencrypt "$DISK" --disable-locks --force-offline-reencrypt --debug --key-file /tmp/passphrase.txt | tee -a /media/block_reencrypt.log
3131

3232
echo "PLACEHOLDER - Unmounting USB drive from /media"
3333
umount /media

initrd/init

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ mkdir -p /tmp/secret
4343

4444
# Now it is safe to print a banner
4545
if [ -r /etc/motd ]; then
46+
echo "Type 'r' to enter Recovery shell or 'o' to run OEM Factory Reset/Re-Ownership wizard NOW!" /dev/tty0
4647
cat /etc/motd > /dev/tty0
4748
fi
4849

0 commit comments

Comments
 (0)