Re: How do I set the run target and turn off services on a non running installation ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I got the installation booting on my RPi3 again. I couldn't update it with dnf update because the update was simply too large to run. I might try again in the near future.

Here are some things that I learned in this effort.

1) RPi3 boots with extlinux, not grub or grub2.

2) To change the kernel boot parameters, edit /boot/extlinux/extlinux.conf

3) You can set the run level via the kernel parameters.

  • add "systemd.unit=runlevel1.target" to the append line in the kernel parameters, for example

https://docs.fedoraproject.org/en-US/Fedora/19/html/Installation_Guide/s1-grub-targets.html

https://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet

4) To disable various services, remove service.service from the target.wants folder for the target you are using. Each target has its own wants folder ! If you change run levels, you'll have to re enable various services.

For example, in the /usr/lib/systemd/system/multi-user.target.wants

[me@localhost multi-user.target.wants]$ ls -al total 28 drwxr-xr-x. 3 root root 4096 Mar 6 15:31 . drwxr-xr-x. 29 root root 20480 Jan 31 11:59 .. lrwxrwxrwx. 1 root root 15 Nov 29 07:24 dbus.service -> ../dbus.service lrwxrwxrwx. 1 root root 15 Jan 16 06:00 getty.target -> ../getty.target drwxr-xr-x. 2 root root 4096 Mar 6 15:31 hidden lrwxrwxrwx. 1 root root 24 Jun 20 2016 plymouth-quit.service -> ../plymouth-quit.service lrwxrwxrwx. 1 root root 29 Jun 20 2016 plymouth-quit-wait.service -> ../plymouth-quit-wait.service lrwxrwxrwx. 1 root root 33 Jan 16 06:00 systemd-ask-password-wall.path -> ../systemd-ask-password-wall.path lrwxrwxrwx. 1 root root 39 Jan 16 06:00 systemd-update-utmp-runlevel.service -> ../systemd-update-utmp-runlevel.service lrwxrwxrwx. 1 root root 32 Jan 16 06:00 systemd-user-sessions.service -> ../systemd-user-sessions.service

Hint: to disable a service, make a folder called hidden and move the service to that folder.

5) To start raw networking manually, do the following:

With a dynamic IP $ ifconfig eth0 up $ sudo dhclient eth0

With a static IP To set IP address you want (for example 192.168.0.1) type: $ ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up $ route add default gw GATEWAY-IP eth0

If you want to use Network Manager:

systemctl stop NetworkManager.service systemctl disable NetworkManager.service

Then you enable the network service in a similar fashion. systemctl enable network.service systemctl start network.service

Network Manager Command Line Interface documentation https://fedoraproject.org/wiki/Networking/CLI

http://serverfault.com/questions/21475/starting-network-connection-from-ubuntu-recovery

If you get a message about resolv.conf not being found, it is supposed to get set to something at boot time. Create a fake one or run NetworkManager to get it to create one.

/run/resolvconf/resolv.conf is a symbolic link that should point to a real file

https://ubuntuforums.org/showthread.php?t=2068299

Hope this helps someone.

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux