Skip to contentSkip to conversation

initscripts/urandom: create directory before staging into it

PATCH New Ming Liu 1 participant 1 message Dec 19, 2012

lore
Share & tools
lore

Ming Liu

author
#0 lore raw

PATCH v3 1/1 initscripts/urandom: create directory before staging into it

/etc/init.d/urandom fails to start/stop because it tries to save random-seed into /var/lib/urandom folder which does not exist in the file system.

Fixed by creating /var/lib/urandom at do_install time.

[YOCTO #3518]
[ CQID: WIND00384168 ]

---
 meta/recipes-core/initscripts/initscripts_1.0.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-core/initscripts/initscripts_1.0.bb +3 -1
index d25838b..39be9a8 100644
@@ -3,7 +3,7 @@ DESCRIPTION = "Initscripts provide the basic system startup initialization scrip
 SECTION = "base"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
-PR = "r137"
+PR = "r138"
 
 INHIBIT_DEFAULT_DEPS = "1"
 
@@ -133,4 +133,6 @@ do_install () {
 	fi
 
 	install -m 0755		${WORKDIR}/device_table.txt		${D}${sysconfdir}/device_table
+	# Holds state information pertaining to urandom
+	install -d ${D}/var/lib/urandom
 }
Signature · 1 line
1.7.11