You are not logged in.

#1 2018-05-11 07:21:46

p00h
Member
Registered: 2016-07-07
Posts: 9

Archiso + aria2c issue

Im working on live system iso based on releng.
I've made some initcpio hooks.
One of them used to launch aria2c to download airootfs.sfs, mount it then.
It's been working well, but not anymore. I didnt make any changes to the hook.
At the moment the process stops right before aria2c binary, and I have to press Enter key several times to make it work.
If I dont press the enter key several times the system waits indefinitely and nothing really happens.
If I press the enter key the binary launches well as it used to do earlier.

If anyone gave me any clues that would be greatly appreciated.
Thank you.

Offline

#2 2018-05-11 07:37:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,672

Re: Archiso + aria2c issue

What does the hook look like? Which kernel are you trying to do this with? Simply from the symptoms reads like another form of https://bbs.archlinux.org/viewtopic.php?id=236696

Offline

#3 2018-05-11 08:03:24

p00h
Member
Registered: 2016-07-07
Posts: 9

Re: Archiso + aria2c issue

Thanks for the link.
The hook merely starts the aria2c binary. Im using the latest kernel.
Please note, the hook has been working for a very long time. It started to fail several days ago.
Gonna try to compile aria2 myself, if it does not help, i will try linux-lts kernel.

Last edited by p00h (2018-05-11 08:20:20)

Offline

#4 2018-05-11 11:23:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,672

Re: Archiso + aria2c issue

Yeah which is why I'm inclined to think it's the issue with the starved random seed, all conditions you mention so far  match with that. aria2c blocks on a cryptographic function because it doesn't get any randomness, you provide that by pressing enter a few times and the process continues.

Offline

#5 2018-05-11 12:49:47

p00h
Member
Registered: 2016-07-07
Posts: 9

Re: Archiso + aria2c issue

V1del wrote:

aria2c blocks on a cryptographic function because it doesn't get any randomness, you provide that by pressing enter a few times and the process continues.

What a brilliant idea! Never thought this way. Thank you, that is a way to discover!

Offline

#6 2018-05-12 04:10:40

p00h
Member
Registered: 2016-07-07
Posts: 9

Re: Archiso + aria2c issue

You were bloody right, the problem was the lack of entropy.
But I still could not find a workaround, neither haveged nor rngd seems to work within initramfs.
Even If I start it, it does not provide the system with enough entropy.
I still have to press buttons to speed up the process. Or I have to wait up to 15 minutes for the process to start.
Do you have any ideas how to solve it?
Again any clues would be appreciated)

Offline

Board footer

Powered by FluxBB