[LEDE-DEV] urandom seed & /etc mount time

John Crispin john at phrozen.org
Thu Jun 2 00:10:23 PDT 2016



On 02/06/2016 09:04, Etienne Champetier wrote:
> Hi John,
> 
> Le 2 juin 2016 07:04, "John Crispin" <john at phrozen.org
> <mailto:john at phrozen.org>> a écrit :
>>
>>
>> On 01/06/2016 23:39, Etienne Champetier wrote:
>> > Hi,
>> >
>> > i'm thinking about adding a urandom seed like any distro do,
>> > just need to know when /etc is first monted (inside procd or via
> init scripts?)
>> >
>> > Regards
>> > Etienne
>>
>> from within mount_root
> 
> First called in "boot" init script? After ubus has started?
> 
>>
>>         John
>>
> 

i was not telling the truth

package/base-files/files/lib/preinit/80_mount_root

it depends on what kind of setup you have. on a !overlay setup /etc will
be available earlier. however after the 80_mount_root script executed,
/etc should be available on all setups, so probably best to hook it int
preinit as 81_urandom_seed ?

	John



More information about the Lede-dev mailing list