You are not logged in.
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.
Offline
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
Well I have watched those threads and tested, but nothing has worked for me. Any other ideas?
Offline
What exactly have you tested?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I have tried to disable dhcpcd and enabling it and then I have deleted the network.target in that file and nothing.
Offline
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
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
Offline
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
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
Ok I test it, I come back when I have tested and tell if it works. Thank you!
Offline
Why did you re-enable the dhcpd service you desire not to be enabled??
And deleting targets is never a good idea, btw.
Offline
And deleting targets is never a good idea, btw.
Sorry if you thought I implied that it is allright to remove the target with:
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
Offline
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
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! I appreciate it!
Offline
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:
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
Well I didn't try like this how I solved it for the first time... I didn't move anything...
Offline