Add haveged to initramfs
This commit is contained in:
parent
29bb770672
commit
01186e458a
3 changed files with 4 additions and 1 deletions
|
|
@ -73,7 +73,7 @@
|
|||
"echo overlay >> /etc/initramfs-tools/modules",
|
||||
"echo 'RESUME=none' > /etc/initramfs-tools/conf.d/resume",
|
||||
"mkdir /usr/local/boot",
|
||||
"apt-get -f -y install aria2 linux-image-amd64 lvm2",
|
||||
"apt-get -f -y install aria2 linux-image-amd64 lvm2 haveged",
|
||||
"cp $(find /boot/ -name 'initrd.img-*' | sort -V | tail -n 1) '/tmp/images/{{user `initramfs_file`}}'",
|
||||
"cp $(find /boot/ -name 'vmlinuz-*' | sort -V | tail -n 1) '/tmp/images/{{user `linux_file`}}'"
|
||||
]
|
||||
|
|
|
|||
|
|
@ -92,6 +92,8 @@ labsync_configure_dns() {
|
|||
|
||||
|
||||
labsync_mount_root() {
|
||||
haveged
|
||||
|
||||
export PATH="/usr/local/bin:$PATH"
|
||||
[ "$labsync_debug" = 1 ] && set -x
|
||||
sed -i 's/use_lvmetad = 1/use_lvmetad = 0/' /etc/lvm/lvm.conf
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ case $1 in
|
|||
copy_exec /sbin/mke2fs
|
||||
copy_exec /sbin/sfdisk
|
||||
copy_exec /usr/bin/aria2c
|
||||
copy_exec /usr/sbin/haveged
|
||||
copy_file cert /etc/ssl/certs/ca-certificates.crt
|
||||
exit 0
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue