Small white production Linux boot flowchart (old driver do not spray, welcome to discuss and correct mistakes), thank you
References: Brother Bird's Linux private cuisine, Wikipedia.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/88/2B/wKioL1frNSSyEw10AAOB0u12oNw076.png "title=" Linux boot flowchart. png "alt=" Wkiol1frnssyew10aaob0u12onw076.png "/>
Note ①: Files for each run mode
[[Email protected] ~]# ll -d /usr/lib/systemd/system/runlevel*.target | cut -c 28- May 4 17:52 /usr/lib/systemd/system/runlevel0.target -> poweroff.target may 4 17:52 /usr/lib/systemd/system/runlevel1.target -> rescue.target may 4 17:52 /usr/lib/systemd/system/runlevel2.target -> multi-user.target may 4 17:52 /usr/lib/systemd/system/runlevel3.target -> multi-user.target may 4 17:52 /usr/lib/systemd/system/runlevel4.target -> multi-user.target may 4 17:52 /usr/lib/systemd/system/runlevel5.target -> graphical.target may 4 17:52 /usr/lib/systemd/system/runlevel6.target -> Reboot.target
Note ②:
[Email protected] ~]# Cat/usr/lib/systemd/system/graphical.target [Unit]
Interfacedocumentation=man:systemd.special (7) Requires=multi-user.targetafter=multi-user.target Conflicts=rescue.targetwants=display-manager.service Allowisolate=yes[install]alias=default.target
This means that Graphical.target must complete the multi-user.target before it can be done, and after the graphical.target, it is necessary to start display-manager.service the meaning of the line.
|
Note ③:
#看看系统预设要载入的unit有哪些? [[Email protected] ~]# ls /usr/lib/systemd/system/multi-user.target.wantsbrandbot.path plymouth-quit.service systemd-logind.servicedbus.service plymouth-quit-wait.service systemd-user-sessions.servicegetty.target systemd-ask-password-wall.path# user custom to load the unit and what? [[Email protected] ~]# ls /etc/systemd/system/multi-user.target.wantsabrt-ccpp.service crond.service mdmonitor.service sshd.serviceabrtd.service hypervkvpd.service Modemmanager.service sysstat.serviceabrt-oops.service hypervvssd.service networkmanager.service tuned.serviceabrt-vmcore.service irqbalance.service postfix.service Vmtoolsd.serviceabrt-xorg.service kdump.service remote-fs.target vsftpd2.serviceatd.service ksm.service rngd.service vsftpd.serviceauditd.service ksmtuned.service rsyslog.servicebackup2.timer libstoragemgmt.service Smartd.servicebackup.timer libvirtd.service sshd2.service
This article is from the "Pengjiawang" blog, make sure to keep this source http://pengjiawang.blog.51cto.com/10989721/1857266
Small white production Linux boot flowchart