From b914ce47f4c58ac805b4b0c7f6f49c00a47591e2 Mon Sep 17 00:00:00 2001 From: torben Date: Wed, 5 Sep 2018 16:44:03 +0200 Subject: fix many offline boot bugs --- modules.d/dnbd-root-filesystem/hooks/update-boot-files.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 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 a54b574b..528e0cfa 100755 --- a/modules.d/dnbd-root-filesystem/hooks/update-boot-files.sh +++ b/modules.d/dnbd-root-filesystem/hooks/update-boot-files.sh @@ -165,7 +165,7 @@ bl.exception.try { seek=TODO else if ! fdisk --list "$device_path" | \ - grep "^$device_path +\*" &>/dev/null + grep --extended-regexp "^$device_path +\*" &>/dev/null then bl.logging.info \ Set the \"boot\" flag to mbr based boot \ @@ -188,7 +188,7 @@ EOF fi cat << EOF > /mnt/syslinux/syslinux.cfg PROMPT 1 -TIMEOUT 50 +TIMEOUT 1 DEFAULT arch LABEL arch @@ -281,6 +281,9 @@ EOF fi # endregion if $kernel_passed && $initramfs_passed; then + if [ ! -f /mnt/slx_boot ]; then + echo / >/mnt/slx_boot + fi break fi done -- cgit v1.2.3-55-g7522