From 49e088293748fb831fce7c7f81fccf6651f4b3b0 Mon Sep 17 00:00:00 2001 From: torben Date: Wed, 5 Sep 2018 16:57:01 +0200 Subject: Fixing; set boot flag if not exists logic. --- modules.d/dnbd-root-filesystem/hooks/update-boot-files.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules.d/dnbd-root-filesystem/hooks/update-boot-files.sh b/modules.d/dnbd-root-filesystem/hooks/update-boot-files.sh index 528e0cfa..d0a048e6 100755 --- a/modules.d/dnbd-root-filesystem/hooks/update-boot-files.sh +++ b/modules.d/dnbd-root-filesystem/hooks/update-boot-files.sh @@ -164,8 +164,9 @@ bl.exception.try { of="$device_path" \ seek=TODO else + # TODO improve: not reliable enough. if ! fdisk --list "$device_path" | \ - grep --extended-regexp "^$device_path +\*" &>/dev/null + grep --extended-regexp "^$device_partition_path +\*" &>/dev/null then bl.logging.info \ Set the \"boot\" flag to mbr based boot \ -- cgit v1.2.3-55-g7522