Skip to content

Commit

Permalink
dracut/boot-edit: Do nothing if we have a boot= karg
Browse files Browse the repository at this point in the history
In this case, we shouldn't have anything to do.  This is needed
for `bootc install` which currently sets up these kargs in advance.
containers/bootc#30
  • Loading branch information
cgwalters committed Jan 10, 2023
1 parent 40bd5d5 commit 89e543e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ karg() {
echo "${value}"
}

# If we've already bound boot, then we should have nothing to do.
bootdev=$(karg boot)
if [ -n "$bootdev" ]; then
exit 0
fi

# Mount /boot. Note that we mount /boot but we don't unmount it because we
# are run in a systemd unit with MountFlags=slave so it is unmounted for us.
bootmnt=/mnt/boot_partition
Expand Down

0 comments on commit 89e543e

Please sign in to comment.