Skip to content

Commit

Permalink
Merge pull request #3085 from cgwalters/s390x-units
Browse files Browse the repository at this point in the history
  • Loading branch information
jlebon committed Oct 24, 2023
2 parents cfb63b8 + 75c7e51 commit 67ccf6e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libostree/ostree-bootloader-zipl.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,12 @@ _ostree_bootloader_zipl_post_bls_sync (OstreeBootloader *bootloader, int bootver
{
OstreeBootloaderZipl *self = OSTREE_BOOTLOADER_ZIPL (bootloader);

// This can happen in a unit testing environment; at some point what we want to do here
// is move all of the zipl logic to a systemd unit instead that's keyed of
// ostree-finalize-staged.service.
if (getuid () != 0)
return TRUE;

/* Note that unlike the grub2-mkconfig backend, we make no attempt to
* chroot().
*/
Expand Down

0 comments on commit 67ccf6e

Please sign in to comment.