[scripts] force removal of entropy pid file from system image

This commit is contained in:
Fabio Erculiani 2011-08-31 11:43:03 +02:00
parent cabccec56b
commit af72ab84ed
6 changed files with 22 additions and 0 deletions

View File

@ -86,3 +86,7 @@ umount /proc
# remove hw hash # remove hw hash
rm -f /etc/entropy/.hw.hash rm -f /etc/entropy/.hw.hash
# remove entropy pid file
rm -f /var/run/entropy/entropy.lock
exit 0

View File

@ -117,4 +117,7 @@ rm -rf /var/lib/entropy/tmp
# remove entropy hwhash # remove entropy hwhash
rm -f /etc/entropy/.hw.hash rm -f /etc/entropy/.hw.hash
# remove entropy pid file
rm -f /var/run/entropy/entropy.lock
exit 0 exit 0

View File

@ -1,4 +1,8 @@
#!/bin/sh #!/bin/sh
# make sure there is no stale pid file around that prevents entropy from running
rm -f /var/run/entropy/entropy.lock
export FORCE_EAPI=2 export FORCE_EAPI=2
equo update equo update
if [ "${?}" != "0" ]; then if [ "${?}" != "0" ]; then

View File

@ -342,4 +342,7 @@ emaint --fix world
rm -rf /var/lib/entropy/*cache* rm -rf /var/lib/entropy/*cache*
# remove entropy pid file
rm -f /var/run/entropy/entropy.lock
exit 0 exit 0

View File

@ -10,3 +10,7 @@ fi
# remove entropy hwash # remove entropy hwash
rm -f "${CHROOT_DIR}"/etc/entropy/.hw.hash rm -f "${CHROOT_DIR}"/etc/entropy/.hw.hash
# remove entropy pid file
rm -f "${CHROOT_DIR}"/var/run/entropy/entropy.lock
exit 0

View File

@ -7,3 +7,7 @@ equo query list installed -qv > /etc/sabayon-pkglist
# remove hw hash # remove hw hash
rm -f /etc/entropy/.hw.hash rm -f /etc/entropy/.hw.hash
# remove entropy pid file
rm -f /var/run/entropy/entropy.lock
exit 0