initscripts: add urandom directory into volatiles
PATCH v2 1/1 initscripts: add urandom directory into volatiles
/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 adding /var/lib/urandom into volatiles.
[YOCTO #3518]
[ CQID: WIND00384168 ]
--- meta/recipes-core/initscripts/initscripts-1.0/volatiles | 1 + meta/recipes-core/initscripts/initscripts_1.0.bb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
meta/recipes-core/initscripts/initscripts-1.0/volatiles +1 -0
@@ -37,3 +37,4 @@ f root root 0664 /var/run/utmp none l root root 0644 /etc/resolv.conf /var/run/resolv.conf f root root 0644 /var/run/resolv.conf none l root root 0755 /run /var/run +d root root 0755 /var/lib/urandom none
meta/recipes-core/initscripts/initscripts_1.0.bb +1 -1
@@ -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"
Signature · 1 line
1.7.11
Quoted 5 lines · Ming Liu
/etc/init.d/urandomfails to start/stop because it tries to save random-seed into/var/lib/urandomfolder which does not exist in the file system.Fixed by adding
/var/lib/urandominto volatiles.
Doesn't this mean that the persistent state of urandom will be saved to a ramdisk?
Mixing up persistent and transient state in /var is exactly why /run exists, and why we should switch to support /run as soon as possible...
Ross
Quoted 5 lines · Ross
Quoted 4 lines · Ming Liu
/etc/init.d/urandomfails to start/stop because it tries to save random-seed into/var/lib/urandomfolder which does not exist in the file system.
Quoted 9 lines
Quoted 1 line
Fixed by adding
/var/lib/urandominto volatiles.Doesn't this mean that the persistent state of urandom will be saved to a ramdisk?
Mixing up persistent and transient state in /var is exactly why /run exists, and why we should switch to support /run as soon as possible...
Sorry, this was my suggestion, It actually is creating /var/lib/urandom which should be a persistent sub-dir of /var
I was bouncing back and for about it being in the the recipe's do_install vs populate volaties file, I did not see any other /var/lib/<dir> being created so I leaned toward this solution. This was on the list a week or so ago, we could go back to itbeing created in the do_install()
Sau!
Quoted 8 lines
Ross
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 11 lines · Saul Wold
Quoted 10 lines · Ross
Quoted 5 lines · Ming Liu
/etc/init.d/urandomfails to start/stop because it tries to save random-seed into/var/lib/urandomfolder which does not exist in the file system.Fixed by adding
/var/lib/urandominto volatiles.Doesn't this mean that the persistent state of urandom will be saved to a ramdisk?
Quoted 7 lines
Quoted 4 lines
Mixing up persistent and transient state in /var is exactly why /run exists, and why we should switch to support /run as soon as possible...
Sorry, this was my suggestion, It actually is creating
/var/lib/urandomwhich should be a persistent sub-dir of /varI was bouncing back and for about it being in the the recipe's
do_installvs populate volaties file, I did not see any other /var/lib/<dir> being created so I leaned toward this solution. This was on the list a week or so ago, we could go back to itbeing created in thedo_install()
OK, so I will resend the patch creating it in do_install() as V3 since it's a bit long time ago.
the best,
thank you
Quoted 14 lines
Sau!
Quoted 8 lines
Ross
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 5 lines · Ross
Quoted 4 lines · Ming Liu
/etc/init.d/urandomfails to start/stop because it tries to save random-seed into/var/lib/urandomfolder which does not exist in the file system.
Quoted 7 lines
Quoted 1 line
Fixed by adding
/var/lib/urandominto volatiles.Doesn't this mean that the persistent state of urandom will be saved to a ramdisk?
Mixing up persistent and transient state in /var is exactly why /run exists, and why we should switch to support /run as soon as possible...
FWIW, there's bug about /run directory support -- https://bugzilla.yoctoproject.org/show_bug.cgi?id=3181.
Cheers,
Chen Qi
Quoted 7 lines
Ross
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core