mirror of
https://git.myvelabs.com/lab/archlinux.git
synced 2026-08-16 13:44:26 +00:00
Switch /dev/random to urandom and sudo to sudo-rs
This commit is contained in:
parent
ddfa862bbb
commit
462624a07e
2 changed files with 41 additions and 31 deletions
9
arch.sh
9
arch.sh
|
|
@ -3,9 +3,8 @@ revision=1.0l
|
|||
set -a
|
||||
set -E
|
||||
|
||||
# ZFS key
|
||||
# zfsgpgkey=DDF7DB817396A49B2A2723F7403BD972F75D9D76 # archzfs
|
||||
zfsgpgkey=D0F2AE55C1BF11A026D155813A658A95B8CFCC51 # myvezfs
|
||||
# myvezfs gpg key
|
||||
zfsgpgkey=D0F2AE55C1BF11A026D155813A658A95B8CFCC51
|
||||
|
||||
# Exit function
|
||||
trap '[ "${?}" -ne 77 ] || exit 77' ERR
|
||||
|
|
@ -203,7 +202,7 @@ function repeat
|
|||
# Pacstrap new root and generate fs tables
|
||||
function pacstrapGenfstab
|
||||
{
|
||||
local archpkgs="sudo openssh efibootmgr pacman-contrib \
|
||||
local archpkgs="sudo-rs openssh efibootmgr pacman-contrib \
|
||||
vim rsync pv git less openbsd-netcat \
|
||||
man-db bash-completion reflector \
|
||||
wireguard-tools systemd-resolvconf \
|
||||
|
|
@ -572,7 +571,7 @@ function generateKeyfile
|
|||
{
|
||||
echo
|
||||
say as heading 'Generating keyfile'
|
||||
dd bs=1 count=256 if=/dev/random of=/mnt/crypto_keyfile.bin status=progress
|
||||
dd bs=1 count=256 if=/dev/urandom of=/mnt/crypto_keyfile.bin status=progress
|
||||
chmod 000 /mnt/crypto_keyfile.bin
|
||||
printf '%s' "${grubpass}" | cryptsetup luksAddKey ${bootpart} /mnt/crypto_keyfile.bin
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue