/lib/systemd/system/friendly-recovery.service is in friendly-recovery 0.2.38.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | [Unit]
Description=Recovery mode menu
DefaultDependencies=no
ConditionKernelCommandLine=recovery
Conflicts=shutdown.target
Before=systemd-fsck-root.service local-fs-pre.target emergency.service rescue.service
Wants=systemd-udevd-control.socket systemd-udevd.service systemd-udev-trigger.service
After=systemd-udevd-control.socket
[Service]
Type=oneshot
Environment=HOME=/root
WorkingDirectory=/root
ExecStartPre=-/sbin/udevadm trigger --action=add
ExecStartPre=-/sbin/udevadm settle -t 10
ExecStartPre=-/bin/dmesg --console-off
ExecStartPre=-/bin/plymouth quit
ExecStart=-/lib/recovery-mode/recovery-menu
StandardInput=tty-force
StandardOutput=inherit
StandardError=inherit
KillMode=process
IgnoreSIGPIPE=no
SendSIGHUP=yes
[Install]
WantedBy=sysinit.target
WantedBy=emergency.target
WantedBy=rescue.target
|