Better do an explicit check for D-I syslinux config version
This commit is contained in:
parent
617497fff0
commit
fc09043feb
|
@ -208,10 +208,17 @@ 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
|
di_syslinux_ver="$(di_syslinux_version)"
|
||||||
echo "Error: syslinux config version 1.0 is no longer supported"
|
case "$di_syslinux_ver" in
|
||||||
exit 1
|
2.0)
|
||||||
fi
|
: ;;
|
||||||
|
1.*)
|
||||||
|
echo "Error: syslinux config versions before 2.0 are not supported"
|
||||||
|
exit 1 ;;
|
||||||
|
*)
|
||||||
|
echo "Error: unrecognized syslinux config version '$di_syslinux_ver'"
|
||||||
|
exit 1 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
# 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
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# 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() {
|
di_syslinux_version() {
|
||||||
local version
|
local version
|
||||||
version=$(sed -nr "s/^# D-I config version ([0-9.])/\1/p" \
|
version=$(sed -nr "s/^# D-I config version ([0-9.])/\1/p" \
|
||||||
boot$N/isolinux/isolinux.cfg)
|
boot$N/isolinux/isolinux.cfg)
|
||||||
|
|
Loading…
Reference in New Issue