The following commit has been merged in the master branch:
commit 271ac2ec1daaa6a8a3b878a51c348788a3151bcb
Author: Samuel Thibault <[email protected]>
Date: Thu Nov 10 23:48:35 2011 +0100
debian/hurd.postinst: Set up "*random" alternatives and generate seed on
first install too.
diff --git a/debian/changelog b/debian/changelog
index 67f9aa8..a40d865 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ hurd (20111106-2) UNRELEASED; urgency=low
* debian/control:
- Use hurd-any instead of hurd-i386.
- Recommend bf-utf-source to get more than just latin1 on the console.
+ * debian/hurd.postinst: Set up "*random" alternatives and generate seed on
+ first install too.
-- Samuel Thibault <[email protected]> Sun, 06 Nov 2011 19:51:54 +0100
diff --git a/debian/hurd.postinst b/debian/hurd.postinst
index 0e3a3b1..000afe6 100644
--- a/debian/hurd.postinst
+++ b/debian/hurd.postinst
@@ -65,15 +65,17 @@ if [ "$1" = configure ] && [ "$2" ]; then
( cd /dev ; rm -f random urandom )
fi
/usr/lib/hurd/setup-translators -K
- update-alternatives --install /dev/random random /dev/random-hurd 10 \
- --slave /dev/urandom urandom /dev/urandom-hurd
+fi
+
+update-alternatives --install /dev/random random /dev/random-hurd 10 \
+ --slave /dev/urandom urandom /dev/urandom-hurd
+if [ "$1" = configure ] ; then
# Generate initial pool
UMASK=`umask`
umask 077
- [ -f /var/spool/random-seed ] || dd < /dev/urandom >
/var/spool/random-seed bs=1 count=600
+ [ -f /var/spool/random-seed ] || dd < /dev/urandom >
/var/spool/random-seed bs=1 count=600 2> /dev/null
# TODO: will need to run settrans -ga /dev/random at system stop to
make
# it save it back
umask $UMASK
fi
-
--
Debian GNU Hurd packaging