Skip to content

Commit

Permalink
coreos-boot-edit: abort if system has several boot partitions
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Dubrovskii <[email protected]>
  • Loading branch information
nikita-dubrovskii committed Oct 5, 2021
1 parent 07fcfa1 commit 8b18c32
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ karg() {
echo "${value}"
}

# Ensure we have just 1 boot partition or fail otherwise
/usr/bin/rdcore single-partition boot

# 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 8b18c32

Please sign in to comment.