Skip to content

Commit

Permalink
Unrelated: add instructions to enter recovery shell/OEM Factory Reset…
Browse files Browse the repository at this point in the history
…/Re-Ownership first thing prior of printing motd

Signed-off-by: Thierry Laurion <[email protected]>
  • Loading branch information
tlaurion committed Nov 29, 2023
1 parent 4cb56d4 commit 8672674
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ echo "PLACEHOLDER - Running benchmark..." | tee /media/block_reencrypt.log
cryptsetup benchmark | tee -a /media/block_reencrypt.log

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

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

echo "PLACEHOLDER - Unmounting USB drive from /media"
umount /media
Expand Down
1 change: 1 addition & 0 deletions initrd/init
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ mkdir -p /tmp/secret

# Now it is safe to print a banner
if [ -r /etc/motd ]; then
echo "QUICK! Type 'r' to enter Recovery shell or 'o' to enter OEM Factory Reset/Re-Ownership wizard! Missed? Ctrl+Alt+Delete and try again!" /dev/tty0
cat /etc/motd > /dev/tty0
fi

Expand Down

0 comments on commit 8672674

Please sign in to comment.