1[Unit]
2Description=Start memory preserving reboot host%i
3Wants=obmc-host-stop-pre@%i.target
4After=obmc-host-stop-pre@%i.target
5Wants=obmc-host-stopping@%i.target
6Before=obmc-host-stopping@%i.target
7Before=op-stop-instructions@%i.service
8After=phosphor-reset-sensor-states@%i.service
9Before=phosphor-reboot-host@%i.service
10Before=clear_hostdumps_poweroff.service
11After=openpower-update-bios-attr-table.service
12Conflicts=obmc-host-startmin@%i.target
13
14[Service]
15@ENABLE_PHAL_TRUE@Environment="PDBG_DTB=@CEC_DEVTREE_RW_PATH@"
16RemainAfterExit=yes
17Type=oneshot
18ExecStart=/bin/sh -c \
19  "busctl set-property xyz.openbmc_project.BIOSConfigManager \
20   /xyz/openbmc_project/bios_config/manager xyz.openbmc_project.BIOSConfig.Manager \
21   PendingAttributes a{s\\(sv\\)} 1 pvm_sys_dump_active \
22   xyz.openbmc_project.BIOSConfig.Manager.AttributeType.Enumeration s Enabled" \
23   || true
24ExecStart=/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
27ExecStart=/usr/bin/openpower-proc-control enterMpReboot
28ExecStart=/bin/mkdir -p /run/openbmc/
29ExecStart=/bin/touch /run/openbmc/mpreboot@%i
30ExecStart=/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"
31
32[Install]
33#WantedBy=obmc-host-diagnostic-mode@%i.target
34