mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 12:13:33 +08:00
add initrd-fs.target and initrd-fs-pre.target
This commit is contained in:
parent
47c4903452
commit
39b83cdab3
@ -343,6 +343,8 @@ dist_systemunit_DATA = \
|
||||
units/kexec.target \
|
||||
units/local-fs.target \
|
||||
units/local-fs-pre.target \
|
||||
units/initrd-fs.target \
|
||||
units/initrd-fs-pre.target \
|
||||
units/remote-fs.target \
|
||||
units/remote-fs-pre.target \
|
||||
units/network.target \
|
||||
|
@ -48,6 +48,8 @@
|
||||
#define SPECIAL_SOCKETS_TARGET "sockets.target"
|
||||
#define SPECIAL_LOCAL_FS_TARGET "local-fs.target"
|
||||
#define SPECIAL_LOCAL_FS_PRE_TARGET "local-fs-pre.target"
|
||||
#define SPECIAL_INITRD_FS_TARGET "initrd-fs.target"
|
||||
#define SPECIAL_INITRD_FS_PRE_TARGET "initrd-fs-pre.target"
|
||||
#define SPECIAL_REMOTE_FS_TARGET "remote-fs.target" /* LSB's $remote_fs */
|
||||
#define SPECIAL_REMOTE_FS_PRE_TARGET "remote-fs-pre.target"
|
||||
#define SPECIAL_SWAP_TARGET "swap.target"
|
||||
|
11
units/initrd-fs-pre.target
Normal file
11
units/initrd-fs-pre.target
Normal file
@ -0,0 +1,11 @@
|
||||
# This file is part of systemd.
|
||||
#
|
||||
# systemd is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU Lesser General Public License as published by
|
||||
# the Free Software Foundation; either version 2.1 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
[Unit]
|
||||
Description=Initrd File Systems (Pre)
|
||||
Documentation=man:systemd.special(7)
|
||||
ConditionPathExists=/etc/initrd-release
|
13
units/initrd-fs.target
Normal file
13
units/initrd-fs.target
Normal file
@ -0,0 +1,13 @@
|
||||
# This file is part of systemd.
|
||||
#
|
||||
# systemd is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU Lesser General Public License as published by
|
||||
# the Free Software Foundation; either version 2.1 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
[Unit]
|
||||
Description=Initrd File Systems
|
||||
Documentation=man:systemd.special(7)
|
||||
OnFailure=emergency.target
|
||||
OnFailureIsolate=yes
|
||||
ConditionPathExists=/etc/initrd-release
|
Loading…
Reference in New Issue
Block a user