From b494adcb039ec2f9d2787a3e76cd68366a493400 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 26 Sep 2014 21:14:33 +0100 Subject: [PATCH] adapt desktop handling for tasksel/d-i changes tasksel now allows selecting the desktop, and d-i has dropped the boot menu desktop selection, so we no longer need to have desktop boot menus on CDs. CD images for specific desktops (xfce/kde/mate/etc) should still override the default tasksel desktop. --- debian/changelog | 3 + tools/boot/jessie/boot-x86 | 14 +--- tools/boot/jessie/common.sh | 4 +- tools/boot/jessie/x86-desktop.sh | 109 +------------------------------ 4 files changed, 8 insertions(+), 122 deletions(-) diff --git a/debian/changelog b/debian/changelog index feeb781f..c6c82f10 100644 --- a/debian/changelog +++ b/debian/changelog @@ -14,6 +14,9 @@ debian-cd (3.1.16) UNRELEASED; urgency=medium * Fix word-splitting regexp in generate_di_list. Closes: #758512. * Improve correctstatus speed. Closes: #759343 + [ Joey Hess ] + * adapt desktop handling for tasksel/d-i changes. Closes: #762487 + -- Steve McIntyre <93sam@debian.org> Thu, 07 Aug 2014 01:45:01 +0100 debian-cd (3.1.15) unstable; urgency=medium diff --git a/tools/boot/jessie/boot-x86 b/tools/boot/jessie/boot-x86 index df42c963..e42dee05 100644 --- a/tools/boot/jessie/boot-x86 +++ b/tools/boot/jessie/boot-x86 @@ -150,19 +150,16 @@ extra_image () { done } -# If multiple desktops are to be supported, set the default one -ORIG_DESKTOP= case "$DESKTOP" in $UNSPEC_DESKTOP_DEFAULT) # default from tasksel DESKTOP= ;; all) - ORIG_DESKTOP=$DESKTOP + # default from tasksel DESKTOP= ;; light) - ORIG_DESKTOP=$DESKTOP DESKTOP=xfce ;; esac @@ -377,14 +374,7 @@ if [ -n "$KERNEL_PARAMS" ]; then done fi -case "$ORIG_DESKTOP" in - all) - modify_for_all_desktop ;; - light) - modify_for_light_desktop ;; - *) - modify_for_single_desktop ;; -esac +set_default_desktop # Add autorun if [ -f boot$N/setup.exe ]; then diff --git a/tools/boot/jessie/common.sh b/tools/boot/jessie/common.sh index a09c8af7..8a38b095 100644 --- a/tools/boot/jessie/common.sh +++ b/tools/boot/jessie/common.sh @@ -27,8 +27,8 @@ UNSPEC_DESKTOP_DEFAULT="$($BASEDIR/tools/apt-selection cache depends task-deskto exit }')" -# Only i386 and amd64 support desktop selection with the 'light' and 'all' -# desktops; make sure other arches get a working config +# Only i386 and amd64 use DESKTOP to set the default desktop; +# make sure other arches get a working config if [ "$ARCH" != i386 ] && [ "$ARCH" != amd64 ]; then if [ "$DESKTOP" = all ] || [ "$DESKTOP" = "$UNSPEC_DESKTOP_DEFAULT" ] ; then DESKTOP= diff --git a/tools/boot/jessie/x86-desktop.sh b/tools/boot/jessie/x86-desktop.sh index 8560d678..707c0f8b 100644 --- a/tools/boot/jessie/x86-desktop.sh +++ b/tools/boot/jessie/x86-desktop.sh @@ -26,10 +26,6 @@ multiarch_workaround() { boot$N/isolinux/amdtxt.cfg || true sed -i "/^include menu.cfg/ a\include instsel.cfg" \ boot$N/isolinux/prompt.cfg - if [ -e boot$N/isolinux/desktop/prompt.cfg ]; then - sed -i "/^default install/ a\include instsel.cfg" \ - boot$N/isolinux/desktop/prompt.cfg - fi cat >boot$N/isolinux/instsel.cfg <boot$N/isolinux/menu.cfg <