mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-05-17 06:02:25 -04:00
set umask for encrypted swapfile creation
This commit is contained in:
parent
597f534d63
commit
4382120e37
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ rsync -cv nftables/nftables-${hosts_firewall[$host]:-web}.conf $remote:/mnt/etc/
|
||||||
ssh $remote "arch-chroot /mnt systemctl enable chronyd.service fstrim.timer logrotate.timer nftables.service plocate-updatedb.timer systemd-networkd.service sshd.service unbound.service"
|
ssh $remote "arch-chroot /mnt systemctl enable chronyd.service fstrim.timer logrotate.timer nftables.service plocate-updatedb.timer systemd-networkd.service sshd.service unbound.service"
|
||||||
ssh $remote "arch-chroot /mnt systemctl disable remote-fs.target systemd-network-generator.service"
|
ssh $remote "arch-chroot /mnt systemctl disable remote-fs.target systemd-network-generator.service"
|
||||||
|
|
||||||
ssh $remote "dd if=/dev/random of=/mnt/swapfile bs=1M count=$swap status=progress"
|
ssh $remote "umask 077 && dd if=/dev/random of=/mnt/swapfile bs=1M count=$swap status=progress"
|
||||||
|
|
||||||
password=$(head -c32 <(tr -dc A-Za-z0-9 </dev/random))
|
password=$(head -c32 <(tr -dc A-Za-z0-9 </dev/random))
|
||||||
echo password: $password
|
echo password: $password
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue