add option to install haveged to speed things up
This commit is contained in:
parent
f96f095762
commit
98f43f6640
16
install.sh
16
install.sh
|
@ -55,6 +55,20 @@ clean_archroot() {
|
||||||
done {lsfd}< <(ls /archroot)
|
done {lsfd}< <(ls /archroot)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_haveged() {
|
||||||
|
if which haveged >/dev/null 2>&1; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
log "Creating keys for pacman will be very slow because"
|
||||||
|
log "KVM lacks true sources of ramdomness. Install haveged"
|
||||||
|
log "to speed it up?"
|
||||||
|
local response
|
||||||
|
read -p '([yes] or no) ' response
|
||||||
|
if [ "${response}" = "yes" ] || [ -z "${response}" ]; then
|
||||||
|
apt-get -y install haveged
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
initialize_coredb() {
|
initialize_coredb() {
|
||||||
log "Downloading package database ..."
|
log "Downloading package database ..."
|
||||||
wget "${archlinux_mirror}/core/os/x86_64/core.db"
|
wget "${archlinux_mirror}/core/os/x86_64/core.db"
|
||||||
|
@ -339,6 +353,8 @@ installer_main() {
|
||||||
cd /archroot/installer
|
cd /archroot/installer
|
||||||
|
|
||||||
clean_archroot
|
clean_archroot
|
||||||
|
install_haveged
|
||||||
|
|
||||||
initialize_coredb
|
initialize_coredb
|
||||||
calculate_dependencies
|
calculate_dependencies
|
||||||
download_packages
|
download_packages
|
||||||
|
|
Loading…
Reference in New Issue