Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
79dcd6ac
Commit
79dcd6ac
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Don't install havege on VMs
parent
beb4a88b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/freedombone-image-customise
+5
-1
5 additions, 1 deletion
src/freedombone-image-customise
src/freedombone-utils-rng
+5
-1
5 additions, 1 deletion
src/freedombone-utils-rng
src/freedombone-utils-setup
+8
-3
8 additions, 3 deletions
src/freedombone-utils-setup
with
18 additions
and
5 deletions
src/freedombone-image-customise
+
5
−
1
View file @
79dcd6ac
...
...
@@ -1410,7 +1410,11 @@ rm $rootdir/usr/sbin/policy-rc.d
# Set up HRNG for systems known to have one
# Otherwise install haveged
if
[[
"
$MACHINE
"
!=
"beaglebone"
*
]]
;
then
chroot
$rootdir
apt-get
-yq
install
haveged
# With some VMs, the hardware cycles counter is emulated and deterministic,
# and thus predictible, so havege should not be used
if
[[
"
$MACHINE
"
!=
"qemu"
*
]]
;
then
chroot
$rootdir
apt-get
-yq
install
haveged
fi
else
chroot
$rootdir
apt-get
-yq
install
rng-tools
sed
-i
's|#HRNGDEVICE=/dev/hwrng|HRNGDEVICE=/dev/hwrng|g'
$rootdir
/etc/default/rng-tools
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-rng
+
5
−
1
View file @
79dcd6ac
...
...
@@ -157,7 +157,11 @@ function random_number_generator {
install_onerng
;;
*
)
apt-get
-yq
install
haveged
# With some VMs, the hardware cycles counter is emulated and deterministic,
# and thus predictible, so havege should not be used
if
[[
"
$ARCHITECTURE
"
!=
"qemu"
*
]]
;
then
apt-get
-yq
install
haveged
fi
;;
esac
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-setup
+
8
−
3
View file @
79dcd6ac
...
...
@@ -230,9 +230,14 @@ function initial_setup {
apt-get
-yq
install
avahi-discover avahi-autoipd iptables dnsutils net-tools
apt-get
-yq
install
network-manager iputils-ping libnss-mdns libnss-myhostname
apt-get
-yq
install
libnss-gw-name nano man ntp locales locales-all debconf
apt-get
-yq
install
wireless-tools wpasupplicant usbutils zsh
apt-get
-yq
install
pinentry-curses eatmydata iotop bc hostapd haveged
apt-get
-yq
install
cpulimit screen
apt-get
-yq
install
wireless-tools wpasupplicant usbutils zsh cpulimit screen
apt-get
-yq
install
pinentry-curses eatmydata iotop bc hostapd
# With some VMs, the hardware cycles counter is emulated and deterministic,
# and thus predictible, so havege should not be used
if
[[
$ARCHITECTURE
!=
'qemu'
*
]]
;
then
apt-get
-yq
install
haveged
fi
if
[[
$ARCHITECTURE
==
'qemu'
*
||
$ARCHITECTURE
==
'amd64'
||
$ARCHITECTURE
==
'x86_64'
||
$ARCHITECTURE
==
'i686'
||
$ARCHITECTURE
==
'i386'
]]
;
then
apt-get
-yq
install
grub2 lvm2 initramfs-tools
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment