[Tails-dev] [PATCH] Remove the last absolute path in our SYS…

Borrar esta mensaxe

Responder a esta mensaxe
Autor: Ague Mill
Data:  
Para: tails-dev
Asunto: [Tails-dev] [PATCH] Remove the last absolute path in our SYSLINUX config
Hi!

I would like to see the attached patch included in 0.14~rc2. I have
tested it to work on both a DVD and a USB sticks created by our USB
installer.

Removing all absolute paths in our SYSLINUX config has the advantage
that to convert the configuration from ISOLINUX to SYSLINUX, the
directory name is the only thing that actually needs to be changed.

This could be helpful to the Universal USB Installer developers to fix
the present breakage of Tails support.

--
Ague
From 93253110525663a67111240c6c1e6e110ce3bf25 Mon Sep 17 00:00:00 2001
From: Tails developers <amnesia@???>
Date: Sat, 20 Oct 2012 15:16:16 +0200
Subject: [PATCH] Remove the last absolute path in our SYSLINUX config

---
 config/binary_local-hooks/10-syslinux_customize |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/config/binary_local-hooks/10-syslinux_customize b/config/binary_local-hooks/10-syslinux_customize
index 936c30f..c6565ec 100755
--- a/config/binary_local-hooks/10-syslinux_customize
+++ b/config/binary_local-hooks/10-syslinux_customize
@@ -53,3 +53,5 @@ EOF

sed -i -e '/^include stdmenu\.cfg/a include tails.cfg' "${CFG_FILE}"

+# no need to use absolute paths to find splash images
+sed -e 's,/isolinux/,,' -i "${SYSLINUX_PATH}/stdmenu.cfg"
--
1.7.2.5