The attahced patch (to live-package svn) is a "works for me" fix so
that syslinux and memtest are left installed if that is what you want!
Alex Owen
Index: src/scripts/21image.sh
===================================================================
--- src/scripts/21image.sh (revision 76)
+++ src/scripts/21image.sh (working copy)
@@ -168,6 +168,11 @@
then
# Install syslinux
Patch_network apply
+
+ #Is syslinux already installed - if so don't remove it later
+ KEEP_SYSLINUX=0
+ ( Chroot_exec "/usr/bin/dpkg-query -f\${Status}\n -W syslinux" | grep -q ^install ) && KEEP_SYSLINUX=1
+
Chroot_exec "aptitude install --assume-yes syslinux"
case "${1}" in
@@ -216,7 +221,7 @@
esac
# Remove syslinux
- Chroot_exec "aptitude purge --assume-yes syslinux"
+ [ $KEEP_SYSLINUX = 0 ] && Chroot_exec "aptitude purge --assume-yes syslinux"
Patch_network deapply
fi
}
@@ -260,6 +265,11 @@
then
# Install memtest
Patch_network apply
+
+ #Is memtest already installed - if so don't remove it later
+ KEEP_MEMTEST=0
+ ( Chroot_exec "/usr/bin/dpkg-query -f\${Status}\n -W memtest86+" | grep -q ^install ) && KEEP_MEMTEST=1
+
Chroot_exec "aptitude install --assume-yes memtest86+"
case "$1" in
@@ -275,7 +285,7 @@
esac
# Remove memtest
- Chroot_exec "aptitude purge --assume-yes memtest86+"
+ [ $KEEP_MEMTEST = 0 ] && Chroot_exec "aptitude purge --assume-yes memtest86+"
Patch_network deapply
fi
}
_______________________________________________
Debian-live-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel