Merge pull request #9 from ragusa-it/optimize-random-source-3769705395637556964
⚡ Replace blocking /dev/random with non-blocking /dev/urandom
This commit was merged in pull request #9.
This commit is contained in:
@@ -85,7 +85,7 @@ echo "LUKS encryption configured."
|
|||||||
echo ""
|
echo ""
|
||||||
echo "═══ Phase 4: Generating swap keyfile ═══"
|
echo "═══ Phase 4: Generating swap keyfile ═══"
|
||||||
|
|
||||||
dd bs=4096 count=1 if=/dev/random of=/tmp/swap.key iflag=fullblock
|
dd bs=4096 count=1 if=/dev/urandom of=/tmp/swap.key iflag=fullblock
|
||||||
chmod 600 /tmp/swap.key
|
chmod 600 /tmp/swap.key
|
||||||
|
|
||||||
echo "Adding keyfile to swap LUKS volume..."
|
echo "Adding keyfile to swap LUKS volume..."
|
||||||
|
|||||||
Reference in New Issue
Block a user