From b58059437b435d23f29ab0bd6e3395a86f413a36 Mon Sep 17 00:00:00 2001
From: Peter Bex <peter@more-magic.net>
Date: Sun, 21 Feb 2016 21:11:39 +0100
Subject: Fix syslinux installation; it always looks for config file in disk
 root

---
 vps-builder.scm | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/vps-builder.scm b/vps-builder.scm
index 5a6dcdb..df63fec 100644
--- a/vps-builder.scm
+++ b/vps-builder.scm
@@ -219,12 +219,10 @@
                          "assets/boot/extlinux.conf" read-string))
            (conf (string-translate* template
                                     `(("{KERNEL}" . ,kernel)
-                                      ("{RAMDISK}" . ,ramdisk))))
-           (tgt (make-pathname `(,root-dir "boot" "extlinux")
-                               "extlinux.conf")))
-      (install-directory root-dir "/boot/extlinux" "root" "root" #o755)
-      (with-output-to-file tgt (lambda () (write-string conf)))
-      (run* (extlinux --install ,(make-pathname root-dir "boot")))))
+                                      ("{RAMDISK}" . ,ramdisk)))))
+      (with-output-to-file (make-pathname root-dir "extlinux.conf")
+        (lambda () (write-string conf)))
+      (run* (extlinux --install ,root-dir))))
   
   (define (setup-firewall root-dir)
     (install-packages root-dir "ferm" "sshguard")
-- 
cgit v1.2.3