summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortorben2018-09-05 16:57:01 +0200
committertorben2018-09-05 16:57:01 +0200
commit49e088293748fb831fce7c7f81fccf6651f4b3b0 (patch)
tree9886a80d08e12012640e000fe9d8fec0bc80cf73
parentfix many offline boot bugs (diff)
downloadsystemd-init-49e088293748fb831fce7c7f81fccf6651f4b3b0.tar.gz
systemd-init-49e088293748fb831fce7c7f81fccf6651f4b3b0.tar.xz
systemd-init-49e088293748fb831fce7c7f81fccf6651f4b3b0.zip
Fixing; set boot flag if not exists logic.
-rwxr-xr-xmodules.d/dnbd-root-filesystem/hooks/update-boot-files.sh3
1 files changed, 2 insertions, 1 deletions
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 \