grub2/grub2-once.service
Michael Chang a79c01f92a Accepting request 898233 from home:michael-chang:branches:Base:System
- Fix running grub2-once leads to failure of starting systemd service in the
  boot sequence (bsc#1169460)
  * grub2-once
  * grub2-once.service

OBS-URL: https://build.opensuse.org/request/show/898233
OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=385
2021-06-08 05:13:58 +00:00

18 lines
448 B
Desktop File

[Unit]
Description=Restore grubenv
DefaultDependencies=no
After=local-fs.target
Before=sysinit.target shutdown.target
Conflicts=shutdown.target
ConditionPathIsReadWrite=/boot/grub2/grubenv
ConditionPathExists=/var/tmp/grub2-cleanup-once
[Service]
Type=oneshot
ExecStart=-/usr/bin/grub2-editenv /boot/grub2/grubenv unset next_entry
ExecStartPost=-/usr/bin/rm -f /var/tmp/grub2-cleanup-once
StandardOutput=journal
[Install]
WantedBy=sysinit.target