Browse Source

Merge pull request #12 from sbadia/rng

debootstrap: Install and configure rng-tools.
Émile Morel 10 years ago
parent
commit
74a18ef843
1 changed files with 4 additions and 0 deletions
  1. 4 0
      olinux/create_arm_debootstrap.sh

+ 4 - 0
olinux/create_arm_debootstrap.sh

@@ -160,6 +160,10 @@ chroot_deb $TARGET_DIR 'chgrp mail /var/mail/'
 chroot_deb $TARGET_DIR 'chmod g+w /var/mail/'
 chroot_deb $TARGET_DIR 'chmod g+w /var/mail/'
 chroot_deb $TARGET_DIR 'chmod g+s /var/mail/'
 chroot_deb $TARGET_DIR 'chmod g+s /var/mail/'
 
 
+# Install rng (Random Number Generator) to gain enough entropy for SSL,GPG key generation
+chroot_deb $TARGET_DIR "apt-get install -y --force-yes rng-tools"
+echo 'HRNGDEVICE=/dev/urandom' >> $TARGET_DIR/etc/default/rng-tools
+
 # Set hostname
 # Set hostname
 echo $DEB_HOSTNAME > $TARGET_DIR/etc/hostname
 echo $DEB_HOSTNAME > $TARGET_DIR/etc/hostname