mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-09 05:58:27 +02:00
systemd: don't run read-write service from initrd
the initrd hits the local-fs.target as part of its normal boot process. We used to use local-fs.target as a way of knowing the system / is read-write. This no longer is a valid mechanism. This commit: 1) Stops installing plymouth-read-write service in the initrd 2) Makes it so if it does end up in the initrd it won't be used Related to fedora bug 830482
This commit is contained in:
parent
d7b7e378e6
commit
c8e548d5e4
2 changed files with 1 additions and 2 deletions
|
|
@ -417,7 +417,6 @@ if [ -n "$SYSTEMD_UNIT_DIR" -a -d "$SYSTEMD_UNIT_DIR" ]; then
|
|||
|
||||
inst $SYSTEMD_UNIT_DIR/plymouth-switch-root.service $INITRDDIR
|
||||
inst $SYSTEMD_UNIT_DIR/plymouth-start.service $INITRDDIR
|
||||
inst $SYSTEMD_UNIT_DIR/plymouth-read-write.service $INITRDDIR
|
||||
inst $SYSTEMD_UNIT_DIR/plymouth-quit.service $INITRDDIR
|
||||
inst $SYSTEMD_UNIT_DIR/plymouth-quit-wait.service $INITRDDIR
|
||||
inst $SYSTEMD_UNIT_DIR/plymouth-reboot.service $INITRDDIR
|
||||
|
|
@ -427,7 +426,6 @@ if [ -n "$SYSTEMD_UNIT_DIR" -a -d "$SYSTEMD_UNIT_DIR" ]; then
|
|||
|
||||
inst $SYSTEMD_UNIT_DIR/initrd-switch-root.target.wants/plymouth-switch-root.service $INITRDDIR
|
||||
inst $SYSTEMD_UNIT_DIR/sysinit.target.wants/plymouth-start.service $INITRDDIR
|
||||
inst $SYSTEMD_UNIT_DIR/sysinit.target.wants/plymouth-read-write.service $INITRDDIR
|
||||
inst $SYSTEMD_UNIT_DIR/multi-user.target.wants/plymouth-quit.service $INITRDDIR
|
||||
inst $SYSTEMD_UNIT_DIR/multi-user.target.wants/plymouth-quit-wait.service $INITRDDIR
|
||||
inst $SYSTEMD_UNIT_DIR/reboot.target.wants/plymouth-reboot.service $INITRDDIR
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ Description=Tell Plymouth To Write Out Runtime Data
|
|||
DefaultDependencies=no
|
||||
After=local-fs.target
|
||||
Before=sysinit.target
|
||||
ConditionPathExists=!/etc/initrd-release
|
||||
|
||||
[Service]
|
||||
ExecStart=-@PLYMOUTH_CLIENT_DIR@/plymouth update-root-fs --read-write
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue