File tree Expand file tree Collapse file tree 1 file changed +11
-15
lines changed Expand file tree Collapse file tree 1 file changed +11
-15
lines changed Original file line number Diff line number Diff line change 1
1
# This file is part of https://github.com/random-archer/mkinitcpio-systemd-tool
2
2
3
- # Ensure /sysroot mount before switch root.
4
- # See issue #10.
3
+ # Ensure /sysroot mount before switch root.
4
+ # Provides unit dependency: sysroot.mount -> initrd-root-fs.target
5
+ # See https://github.com/systemd/systemd/issues/3551
6
+ # See https://github.com/random-archer/mkinitcpio-systemd-tool/issues/10
7
+ # See https://github.com/random-archer/mkinitcpio-systemd-tool/issues/12
5
8
# See https://www.freedesktop.org/software/systemd/man/bootup.html
9
+ # See https://github.com/systemd/systemd/blob/master/src/fstab-generator/fstab-generator.c
6
10
7
11
[Unit]
8
- Description =Initrd SysRoot Mount
12
+ Description =Initrd /sysroot binder
9
13
Documentation =https://github.com/random-archer/mkinitcpio-systemd-tool/blob/master/README.md
10
14
ConditionPathExists =/etc/initrd-release
11
- ConditionPathExists =/dev/mapper/root
12
- ConditionPathExists =/sysroot
13
- ConditionPathIsMountPoint =!/sysroot
14
15
DefaultDependencies =no
15
- After =initrd-cleanup.service
16
- After =initrd-root-fs.target initrd-fs.target initrd.target
17
- Before =initrd-switch-root.service
18
- Before =initrd-switch-root.target
16
+ After =sysroot.mount
17
+ BindsTo =sysroot.mount
19
18
20
19
[Service]
21
20
Type =oneshot
22
21
RemainAfterExit =true
23
- ExecStart =/bin/mount /dev/mapper/root /sysroot
22
+ ExecStart =/bin/true
24
23
25
24
[Install]
26
- WantedBy =initrd-switch-root.service
27
- WantedBy =initrd-switch-root.target
25
+ WantedBy =initrd-root-fs.target
28
26
29
27
[X-SystemdTool]
30
-
31
- # enable service
32
28
InitrdService =enable
You can’t perform that action at this time.
0 commit comments