summaryrefslogtreecommitdiffstats
path: root/config/binary_local-hooks
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2012-09-11 16:15:31 +0200
committerTails developers <amnesia@boum.org>2012-09-11 17:20:45 +0200
commit3aba9be30f64e5f50c5331e48914b110f66a942a (patch)
tree615d1f5d882c00a971d95af59cdfdc39640ac9fe /config/binary_local-hooks
parent89462c2e6f9248a85a1e9ec2e302c1a95866f019 (diff)
Install ifcpu64.c32 from live-build's chroot.
We don't want to install it from the build system since the syslinux versions may differ, introducing subtle desynchronization induced breakage.
Diffstat (limited to 'config/binary_local-hooks')
-rwxr-xr-xconfig/binary_local-hooks/20-syslinux_detect_cpu17
1 files changed, 16 insertions, 1 deletions
diff --git a/config/binary_local-hooks/20-syslinux_detect_cpu b/config/binary_local-hooks/20-syslinux_detect_cpu
index 144281a..ed56b6b 100755
--- a/config/binary_local-hooks/20-syslinux_detect_cpu
+++ b/config/binary_local-hooks/20-syslinux_detect_cpu
@@ -41,12 +41,27 @@ esac
SYSLINUX_LIVE_CFG="${SYSLINUX_PATH}/live.cfg"
SYSLINUX_MENU_CFG="${SYSLINUX_PATH}/menu.cfg"
+# Checking depends
+Check_package chroot/usr/bin/syslinux syslinux
+
+# Restoring cache
+Restore_cache cache/packages_binary
+
+# Installing depends
+Install_package
+
# Copy necessary syslinux modules
for module in ifcpu64.c32
do
- cp "/usr/lib/syslinux/${module}" "${SYSLINUX_PATH}/"
+ cp "chroot/usr/lib/syslinux/${module}" "${SYSLINUX_PATH}/"
done
+# Saving cache
+Save_cache cache/packages_binary
+
+# Removing depends
+Remove_package
+
# Replace syslinux.cfg with autodetection "code"
cat > "${SYSLINUX_CFG}" <<EOF
label select_menu