You are not logged in.

#1 2018-01-01 12:35:08

Alpakka31
Member
From: Finland
Registered: 2018-01-01
Posts: 8

Archiso dhcpcd problem -> a start job is runnning for dhcpcd on enp5s0

Can I get help on this, because I have tried to fix this many times and rebuilding the iso over and over and I'm starting to feel really frustrated right now.
The problem is that everytime I boot my custom archlinux distro on my laptop and then on the booting it just says "a start job is running for dhcpcd on enp5s0" and then I have to wait some seconds.

I have Network Manager up and running with no problems. I want to just somehow stop this dhcpcd problem.

I would appreciate really much if somebody helps me to fix this nasty problem. smile

Offline

#2 2018-01-01 13:35:11

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Archiso dhcpcd problem -> a start job is runnning for dhcpcd on enp5s0

Welcome to the forums.  It is expected that you search before posting questions that have already been covered (extensively) on the forums:

https://bbs.archlinux.org/viewtopic.php?id=232026
https://bbs.archlinux.org/viewtopic.php?id=222133
https://bbs.archlinux.org/viewtopic.php?id=221216
https://bbs.archlinux.org/viewtopic.php?id=213363


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2018-01-01 13:41:07

Alpakka31
Member
From: Finland
Registered: 2018-01-01
Posts: 8

Re: Archiso dhcpcd problem -> a start job is runnning for dhcpcd on enp5s0

Well I have watched those threads and tested, but nothing has worked for me. Any other ideas?

Offline

#4 2018-01-01 13:45:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Archiso dhcpcd problem -> a start job is runnning for dhcpcd on enp5s0

What exactly have you tested?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2018-01-01 13:52:45

Alpakka31
Member
From: Finland
Registered: 2018-01-01
Posts: 8

Re: Archiso dhcpcd problem -> a start job is runnning for dhcpcd on enp5s0

I have tried to disable dhcpcd and enabling it and then I have deleted the network.target in that file and nothing.

Offline

#6 2018-01-01 13:55:15

Alpakka31
Member
From: Finland
Registered: 2018-01-01
Posts: 8

Re: Archiso dhcpcd problem -> a start job is runnning for dhcpcd on enp5s0

I deleted the network.target, but then after I rebuild my iso and took the config from the live cd and booted up, I went to look for the file again and there was network.target again.

Offline

#7 2018-01-01 14:09:26

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Archiso dhcpcd problem -> a start job is runnning for dhcpcd on enp5s0

How did you enable and disable the services , deleted the network.target, how?
You need to show us what you have done & in what file because it is hard to guess wink

Offline

#8 2018-01-01 14:21:49

Alpakka31
Member
From: Finland
Registered: 2018-01-01
Posts: 8

Re: Archiso dhcpcd problem -> a start job is runnning for dhcpcd on enp5s0

I enabled and disabled the service like this systemctl enable dhcpcd.service
systemctl disable dhcpcd.service

And I deleted network.target from this file /usr/lib/systemd/system/systemd-user-sessions.service as here was made https://bbs.archlinux.org/viewtopic.php?id=213363

Last edited by Alpakka31 (2018-01-01 14:22:28)

Offline

#9 2018-01-01 14:30:08

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Archiso dhcpcd problem -> a start job is runnning for dhcpcd on enp5s0

You should use the files that are there to do that, for that have a look at releng/airootfs/root/customize_airootfs.sh.
Unless you want to do it yourself every time ofcourse.

Offline

#10 2018-01-01 14:35:52

Alpakka31
Member
From: Finland
Registered: 2018-01-01
Posts: 8

Re: Archiso dhcpcd problem -> a start job is runnning for dhcpcd on enp5s0

Ok I test it, I come back when I have tested and tell if it works. Thank you! smile

Offline

#11 2018-01-01 15:21:17

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: Archiso dhcpcd problem -> a start job is runnning for dhcpcd on enp5s0

Why did you re-enable the dhcpd service you desire not to be enabled??
And deleting targets is never a good idea, btw.

Offline

#12 2018-01-01 15:38:34

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Archiso dhcpcd problem -> a start job is runnning for dhcpcd on enp5s0

seth wrote:

And deleting targets is never a good idea, btw.

Sorry if you thought I implied that it is allright to remove the target with:

self wrote:

Unless you want to do it yourself every time ofcourse.

I don't eve ask myself that Q. If people want to do it the way they want to, even if proven wrong, they will be back asking why 'another' related service is not working wink

Offline

#13 2018-01-01 15:58:09

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: Archiso dhcpcd problem -> a start job is runnning for dhcpcd on enp5s0

No, I meat him doing that (comment #6 sounded like he removed it entirely but even the linked thread leads to a bug that suggests swapping network to network-online in the dhcpd service; and even then this is irrelevant if he'd just disable the dhcpd service...)

Offline

#14 2018-01-01 16:00:58

Alpakka31
Member
From: Finland
Registered: 2018-01-01
Posts: 8

Re: Archiso dhcpcd problem -> a start job is runnning for dhcpcd on enp5s0

I solved the problem.

I removed network.target from here /usr/lib/systemd/system/systemd-user-sessions.service and then made this file with same writings to here /etc/systemd/system/systemd-user-sessions.service.

Copied those files to usb stick and then I copied .config folder from the /home/liveuser/ directory and then at last this file too
/usr/lib/systemd/systemd-user-sessions. I moved those to my arch linux system where I build the iso. I moved /etc/systemd/system/systemd-user-sessions.service to /home/user/livecd/airootfs/etc/systemd/system/systemd-user-sessions.service and I moved /usr/lib/systemd/system/systemd-user-sessions.service to /home/user/livecd/airootfs/usr/lib/systemd/system/systemd-user-sessions.service and I moved /usr/lib/systemd/systemd-user-sessions to /home/user/livecd/airootfs/usr/lib/systemd/systemd-user-sessions and last the .config folder to /home/user/livecd/airootfs/etc/skel/.config. Then rebuilded my iso, booted up on the same laptop... no problems at all.

5 days of frustration and problem solved. Thank you everyone for the help! smile I appreciate it!

Offline

#15 2018-01-01 16:31:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Archiso dhcpcd problem -> a start job is runnning for dhcpcd on enp5s0

Alpakka31 wrote:

I solved the problem.

I removed network.target from here...

Yeah.  That's the primary solution in the threads I linked to.  Yet several posts ago you said:

Alpakka31 wrote:

Well I have watched those threads and tested, but nothing has worked for me. Any other ideas?

Hmmm.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#16 2018-01-01 16:34:10

Alpakka31
Member
From: Finland
Registered: 2018-01-01
Posts: 8

Re: Archiso dhcpcd problem -> a start job is runnning for dhcpcd on enp5s0

Well I didn't try like this how I solved it for the first time... I didn't move anything...

Offline

Board footer

Powered by FluxBB