Initial commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
SUMMARY = "Clear boot-once variables"
|
||||
DESCRIPTION = "Clear u-boot variables used for one-time boot flow"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
|
||||
|
||||
inherit obmc-phosphor-systemd
|
||||
|
||||
RDEPENDS:${PN} = "${@d.getVar('PREFERRED_PROVIDER_u-boot-fw-utils', True) or 'u-boot-fw-utils'}"
|
||||
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Clear one time boot overrides
|
||||
|
||||
ConditionFileNotEmpty=/etc/fw_env.config
|
||||
RequiresMountsFor=/run /sbin /etc
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
|
||||
# It took 7 seconds to erase and write flash, be conservative
|
||||
TimeoutStartSec=60
|
||||
Restart=no
|
||||
|
||||
ExecStart=/sbin/fw_setenv openbmconce
|
||||
ExecStart=/sbin/fw_setenv openbmconce
|
||||
Reference in New Issue
Block a user