Dhruvaraj Subhashchandran | 3506c18 | 2020-02-18 05:28:39 -0600 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Start memory preserving reboot host%i |
Andrew Geissler | 99ee5ca | 2021-02-04 13:27:06 -0600 | [diff] [blame] | 3 | Wants=obmc-host-stop-pre@%i.target |
| 4 | After=obmc-host-stop-pre@%i.target |
| 5 | Wants=obmc-host-stopping@%i.target |
| 6 | Before=obmc-host-stopping@%i.target |
Andrew Geissler | f7f3f4a | 2020-10-12 10:19:22 -0500 | [diff] [blame] | 7 | Before=op-stop-instructions@%i.service |
Andrew Geissler | 54d1b13 | 2020-09-30 11:18:58 -0500 | [diff] [blame] | 8 | After=phosphor-reset-sensor-states@%i.service |
| 9 | Before=phosphor-reboot-host@%i.service |
Dhruvaraj Subhashchandran | 750f922 | 2022-02-24 06:19:35 -0600 | [diff] [blame] | 10 | Before=clear_hostdumps_poweroff.service |
Adriana Kobylak | bbb5339 | 2022-02-14 21:15:48 +0000 | [diff] [blame] | 11 | After=openpower-update-bios-attr-table.service |
Dhruvaraj Subhashchandran | 3506c18 | 2020-02-18 05:28:39 -0600 | [diff] [blame] | 12 | Conflicts=obmc-host-startmin@%i.target |
| 13 | |
| 14 | [Service] |
Adriana Kobylak | bbb5339 | 2022-02-14 21:15:48 +0000 | [diff] [blame] | 15 | @ENABLE_PHAL_TRUE@Environment="PDBG_DTB=@CEC_DEVTREE_RW_PATH@" |
Dhruvaraj Subhashchandran | 3506c18 | 2020-02-18 05:28:39 -0600 | [diff] [blame] | 16 | RemainAfterExit=yes |
| 17 | Type=oneshot |
Andrew Geissler | 9ca8a11 | 2022-04-07 16:18:47 -0500 | [diff] [blame] | 18 | ExecStart=/bin/sh -c \ |
| 19 | "busctl set-property xyz.openbmc_project.BIOSConfigManager \ |
| 20 | /xyz/openbmc_project/bios_config/manager xyz.openbmc_project.BIOSConfig.Manager \ |
Andrew Geissler | 03eaa3e | 2022-05-02 15:27:19 -0400 | [diff] [blame] | 21 | PendingAttributes a{s\\(sv\\)} 1 pvm_sys_dump_active \ |
Andrew Geissler | f2e5372 | 2022-05-03 11:18:06 -0400 | [diff] [blame] | 22 | xyz.openbmc_project.BIOSConfig.Manager.AttributeType.Enumeration s Enabled" \ |
| 23 | || true |
Andrew Geissler | 67513c1 | 2022-04-26 16:55:59 -0400 | [diff] [blame] | 24 | ExecStart=/bin/sh -c \ |
| 25 | "busctl call xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/bmc \ |
| 26 | xyz.openbmc_project.Dump.Create CreateDump a{sv} 0" || true |
Dhruvaraj Subhashchandran | 3506c18 | 2020-02-18 05:28:39 -0600 | [diff] [blame] | 27 | ExecStart=/usr/bin/openpower-proc-control enterMpReboot |
Dhruvaraj Subhashchandran | 5e9a59f | 2020-03-17 12:49:17 -0500 | [diff] [blame] | 28 | ExecStart=/bin/mkdir -p /run/openbmc/ |
| 29 | ExecStart=/bin/touch /run/openbmc/mpreboot@%i |
Andrew Geissler | b5fa942 | 2021-12-03 14:45:40 -0600 | [diff] [blame] | 30 | ExecStart=/bin/sh -c "busctl set-property xyz.openbmc_project.State.Host /xyz/openbmc_project/state/host%i xyz.openbmc_project.State.Host RestartCause s xyz.openbmc_project.State.Host.RestartCause.HostCrash" |
Dhruvaraj Subhashchandran | 3506c18 | 2020-02-18 05:28:39 -0600 | [diff] [blame] | 31 | |
| 32 | [Install] |
| 33 | WantedBy=obmc-host-diagnostic-mode@%i.target |