sysvinit: load random seed from dom0 provided data
QubesOS/qubes-issues#1311
This commit is contained in:
parent
7963fb91c7
commit
13fb6e2fc3
@ -20,6 +20,10 @@ start()
|
|||||||
chgrp qubes /var/run/qubes
|
chgrp qubes /var/run/qubes
|
||||||
chmod 0775 /var/run/qubes
|
chmod 0775 /var/run/qubes
|
||||||
|
|
||||||
|
# Load random seed from dom0
|
||||||
|
qubesdb-read /qubes-random-seed | base64 -d > /dev/urandom
|
||||||
|
qubesdb-rm /qubes-random-seed
|
||||||
|
|
||||||
# Location of files which contains list of protected files
|
# Location of files which contains list of protected files
|
||||||
PROTECTED_FILE_LIST='/etc/qubes/protected-files.d'
|
PROTECTED_FILE_LIST='/etc/qubes/protected-files.d'
|
||||||
|
|
||||||
|
@ -64,6 +64,11 @@ start()
|
|||||||
# the service will start only after successful restore
|
# the service will start only after successful restore
|
||||||
systemctl start qubes-db.service
|
systemctl start qubes-db.service
|
||||||
echo Back to life.
|
echo Back to life.
|
||||||
|
|
||||||
|
# Reload random seed
|
||||||
|
qubesdb-read /qubes-random-seed | base64 -d > /dev/urandom
|
||||||
|
qubesdb-rm /qubes-random-seed
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
start_meminfo_writer=$(/usr/bin/qubesdb-read /qubes-service/meminfo-writer 2>/dev/null)
|
start_meminfo_writer=$(/usr/bin/qubesdb-read /qubes-service/meminfo-writer 2>/dev/null)
|
||||||
|
Loading…
Reference in New Issue
Block a user