x86: fail build if old syslinux config is detected
This commit is contained in:
parent
ce3806e8af
commit
617497fff0
|
@ -208,6 +208,11 @@ if [ "$THISTYPE" = "isolinux" ]; then
|
||||||
# Isolinux setup including config and help files comes from d-i.
|
# Isolinux setup including config and help files comes from d-i.
|
||||||
cat cdrom/debian-cd_info.tar.gz | (cd boot$N/isolinux/; tar zx)
|
cat cdrom/debian-cd_info.tar.gz | (cd boot$N/isolinux/; tar zx)
|
||||||
|
|
||||||
|
if [ "$(di_config_version)" = "1.0" ]; then
|
||||||
|
echo "Error: syslinux config version 1.0 is no longer supported"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Not everything in the tarball is isolinux stuff
|
# Not everything in the tarball is isolinux stuff
|
||||||
if [ -e boot$N/isolinux/win32-loader.ini ] ; then
|
if [ -e boot$N/isolinux/win32-loader.ini ] ; then
|
||||||
mv boot$N/isolinux/g2ldr* boot$N/isolinux/setup.exe \
|
mv boot$N/isolinux/g2ldr* boot$N/isolinux/setup.exe \
|
||||||
|
|
|
@ -1,6 +1,15 @@
|
||||||
# Functions to convert isolinux config to allow selection of desktop
|
# Functions to convert isolinux config to allow selection of desktop
|
||||||
# environment for certain images.
|
# environment for certain images.
|
||||||
|
|
||||||
|
di_config_version() {
|
||||||
|
local version
|
||||||
|
version=$(sed -nr "s/^# D-I config version ([0-9.])/\1/p" \
|
||||||
|
boot$N/isolinux/isolinux.cfg)
|
||||||
|
|
||||||
|
[ -n "Sversion" ] || return 1
|
||||||
|
echo "$version"
|
||||||
|
}
|
||||||
|
|
||||||
# Workaround for #505243
|
# Workaround for #505243
|
||||||
# Syslinux does not correctly handle a default64 option in combination
|
# Syslinux does not correctly handle a default64 option in combination
|
||||||
# with vesamenu. Instead, add special default label to automatically
|
# with vesamenu. Instead, add special default label to automatically
|
||||||
|
|
Loading…
Reference in New Issue