Build without isolinux/desktop. Closes: #706150

debian-cd currently expects there to always be isolinux/desktop/*
files and a dtmenu.cfg file, failing if they are missing. Make it so
debian-cd can cope whether those files are present or not.
This commit is contained in:
Steve McIntyre 2013-06-12 23:59:33 +01:00
parent 4b560abd99
commit f007eaed9d
5 changed files with 22 additions and 20 deletions

4
debian/changelog vendored
View File

@ -1,9 +1,13 @@
debian-cd (3.1.14) UNRELEASED; urgency=low debian-cd (3.1.14) UNRELEASED; urgency=low
[ Steve McIntyre ]
* Start jessie work; copy things from the wheezy config for now. * Start jessie work; copy things from the wheezy config for now.
* Remove older squeeze, lenny, etch dirs * Remove older squeeze, lenny, etch dirs
* Move code hosting from svn to git. * Move code hosting from svn to git.
[ Robert Spencer ]
* Build without isolinux/desktop. Closes: #706150
-- Steve McIntyre <93sam@debian.org> Mon, 06 May 2013 23:26:18 +0100 -- Steve McIntyre <93sam@debian.org> Mon, 06 May 2013 23:26:18 +0100
debian-cd (3.1.13) unstable; urgency=medium debian-cd (3.1.13) unstable; urgency=medium

View File

@ -284,17 +284,14 @@ fi
if [ -z "$MULTIARCH" ]; then if [ -z "$MULTIARCH" ]; then
# Set up isolinux dir for only the current arch # Set up isolinux dir for only the current arch
sed -i "s|%install%|$INSTALLDIR|" \ grep -lr '%install%' boot$N/isolinux/* | xargs -r sed -i "s|%install%|$INSTALLDIR|"
boot$N/isolinux/*.cfg boot$N/isolinux/desktop/*.cfg
# Remove the amd*.cfg files to avoid them being loaded on a # Remove the amd*.cfg files to avoid them being loaded on a
# disc that does not have both amd64 and i386 dirs. # disc that does not have both amd64 and i386 dirs.
rm -f boot$N/isolinux/amd*.cfg boot$N/isolinux/desktop/amd*.cfg find boot$N/isolinux/ -name "amd*.cfg" -delete
else else
# Set up isolinux dir for multi-arch # Set up isolinux dir for multi-arch
sed -i "s|%install%|$INSTALLDIR_i386| grep -lr '%install[-amd]*%' boot$N/isolinux/* | xargs -r sed -i -e "s|%install%|$INSTALLDIR_i386|" -e "s|%install-amd%|$INSTALLDIR_amd64|"
s|%install-amd%|$INSTALLDIR_amd64|" \
boot$N/isolinux/*.cfg boot$N/isolinux/desktop/*.cfg
for file in boot$N/isolinux/f3.txt* boot$N/isolinux/f4.txt*; do for file in boot$N/isolinux/f3.txt* boot$N/isolinux/f4.txt*; do
sed -i "4 s/^$/(note: i386 is default; prepend 'amd64-' to use an amd64 kernel instead)/" $file sed -i "4 s/^$/(note: i386 is default; prepend 'amd64-' to use an amd64 kernel instead)/" $file

View File

@ -22,8 +22,10 @@ multiarch_workaround() {
boot$N/isolinux/amdtxt.cfg || true boot$N/isolinux/amdtxt.cfg || true
sed -i "/^include menu.cfg/ a\include instsel.cfg" \ sed -i "/^include menu.cfg/ a\include instsel.cfg" \
boot$N/isolinux/prompt.cfg boot$N/isolinux/prompt.cfg
if [ -e boot$N/isolinux/desktop/prompt.cfg ]; then
sed -i "/^default install/ a\include instsel.cfg" \ sed -i "/^default install/ a\include instsel.cfg" \
boot$N/isolinux/desktop/prompt.cfg boot$N/isolinux/desktop/prompt.cfg
fi
cat >boot$N/isolinux/instsel.cfg <<EOF cat >boot$N/isolinux/instsel.cfg <<EOF
default install-select default install-select
label install-select label install-select
@ -48,8 +50,8 @@ create_desktop_dir() {
modify_for_single_desktop() { modify_for_single_desktop() {
# Cleanup # Cleanup
rm boot$N/isolinux/dtmenu.cfg rm -f boot$N/isolinux/dtmenu.cfg
rm -r boot$N/isolinux/desktop rm -fr boot$N/isolinux/desktop
# Set default desktop, or remove if not applicable # Set default desktop, or remove if not applicable
if [ "$DESKTOP" ]; then if [ "$DESKTOP" ]; then

View File

@ -284,17 +284,14 @@ fi
if [ -z "$MULTIARCH" ]; then if [ -z "$MULTIARCH" ]; then
# Set up isolinux dir for only the current arch # Set up isolinux dir for only the current arch
sed -i "s|%install%|$INSTALLDIR|" \ grep -lr '%install%' boot$N/isolinux/* | xargs -r sed -i "s|%install%|$INSTALLDIR|"
boot$N/isolinux/*.cfg boot$N/isolinux/desktop/*.cfg
# Remove the amd*.cfg files to avoid them being loaded on a # Remove the amd*.cfg files to avoid them being loaded on a
# disc that does not have both amd64 and i386 dirs. # disc that does not have both amd64 and i386 dirs.
rm -f boot$N/isolinux/amd*.cfg boot$N/isolinux/desktop/amd*.cfg find boot$N/isolinux/ -name "amd*.cfg" -delete
else else
# Set up isolinux dir for multi-arch # Set up isolinux dir for multi-arch
sed -i "s|%install%|$INSTALLDIR_i386| grep -lr '%install[-amd]*%' boot$N/isolinux/* | xargs -r sed -i -e "s|%install%|$INSTALLDIR_i386|" -e "s|%install-amd%|$INSTALLDIR_amd64|"
s|%install-amd%|$INSTALLDIR_amd64|" \
boot$N/isolinux/*.cfg boot$N/isolinux/desktop/*.cfg
for file in boot$N/isolinux/f3.txt* boot$N/isolinux/f4.txt*; do for file in boot$N/isolinux/f3.txt* boot$N/isolinux/f4.txt*; do
sed -i "4 s/^$/(note: i386 is default; prepend 'amd64-' to use an amd64 kernel instead)/" $file sed -i "4 s/^$/(note: i386 is default; prepend 'amd64-' to use an amd64 kernel instead)/" $file

View File

@ -22,8 +22,10 @@ multiarch_workaround() {
boot$N/isolinux/amdtxt.cfg || true boot$N/isolinux/amdtxt.cfg || true
sed -i "/^include menu.cfg/ a\include instsel.cfg" \ sed -i "/^include menu.cfg/ a\include instsel.cfg" \
boot$N/isolinux/prompt.cfg boot$N/isolinux/prompt.cfg
if [ -e boot$N/isolinux/desktop/prompt.cfg ]; then
sed -i "/^default install/ a\include instsel.cfg" \ sed -i "/^default install/ a\include instsel.cfg" \
boot$N/isolinux/desktop/prompt.cfg boot$N/isolinux/desktop/prompt.cfg
fi
cat >boot$N/isolinux/instsel.cfg <<EOF cat >boot$N/isolinux/instsel.cfg <<EOF
default install-select default install-select
label install-select label install-select
@ -48,8 +50,8 @@ create_desktop_dir() {
modify_for_single_desktop() { modify_for_single_desktop() {
# Cleanup # Cleanup
rm boot$N/isolinux/dtmenu.cfg rm -f boot$N/isolinux/dtmenu.cfg
rm -r boot$N/isolinux/desktop rm -fr boot$N/isolinux/desktop
# Set default desktop, or remove if not applicable # Set default desktop, or remove if not applicable
if [ "$DESKTOP" ]; then if [ "$DESKTOP" ]; then