From 2c7e4864895e4f3e5648958d008c6d82d64d954f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rub=C3=A9n=20Rodr=C3=ADguez?= <ruben@trisquel.info>
Date: Tue, 8 Jul 2014 04:48:06 +0200
Subject: [PATCH] Updated netinst related helpers

---
 helpers/make-apt-setup        |  5 ++++-
 helpers/make-cdebconf         | 32 ++++++++++++++++++++++++++++++++
 helpers/make-debian-installer | 20 +++++---------------
 3 files changed, 41 insertions(+), 16 deletions(-)
 create mode 100644 helpers/make-cdebconf

diff --git a/helpers/make-apt-setup b/helpers/make-apt-setup
index eff230a3..4ac47705 100644
--- a/helpers/make-apt-setup
+++ b/helpers/make-apt-setup
@@ -17,7 +17,7 @@
 #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 #
 
-VERSION=1
+VERSION=2
 NETINST=true
 . ./config
 
@@ -185,6 +185,9 @@ apt-setup-signed-release archive.trisquel.info "$file"
 exit 0
 ' > generators/50mirror.trisquel
 
+sed '/The partner/,/^*/d; s/services-select-ubuntu/services-select-trisquel/' -i debian/apt-setup-udeb.templates
+sed '/EXTRAS_HOST/d' -i ./generators/90services-select
+
 chmod 755 generators/50mirror.trisquel
 
 changelog "Rebranded and adapted for Trisquel"
diff --git a/helpers/make-cdebconf b/helpers/make-cdebconf
new file mode 100644
index 00000000..46ea5ad1
--- /dev/null
+++ b/helpers/make-cdebconf
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+#    Copyright (C) 2014  Rubén Rodríguez <ruben@trisquel.info>
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program; if not, write to the Free Software
+#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+#
+
+VERSION=1
+NETINST=true
+
+. ./config
+
+rm debian/palette.ubuntu
+ln -sf palette.original debian/palette
+sed '/palette.ubuntu/d' -i ./debian/cdebconf-newt-udeb.install
+
+changelog "Color palette set back to default"
+
+compile
+
diff --git a/helpers/make-debian-installer b/helpers/make-debian-installer
index f7ffe753..9aab8d9e 100644
--- a/helpers/make-debian-installer
+++ b/helpers/make-debian-installer
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#    Copyright (C) 2009-2010  Rubén Rodríguez <ruben@gnu.org>
+#    Copyright (C) 2009-2014  Rubén Rodríguez <ruben@gnu.org>
 #
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 #
 
-VERSION=1
+VERSION=2
 NETINST=true
 . ./config
 
@@ -54,8 +54,9 @@ deb $LOCALMIRROR $CODENAME-updates main/debian-installer
 #deb $LOCALMIRROR $CODENAME-security main/debian-installer
 EOF
 
-rpl 2004-2012 2004-2013 . -R
-rpl 2004-2011 2004-2013 . -R
+rpl 2004-2013 2004-2014 . -R
+rpl 2004-2012 2004-2014 . -R
+rpl 2004-2011 2004-2014 . -R
 rpl 2004-2010 2004-2011 . -R
 rpl 2004-2009 2004-2011 . -R
 rpl 2004-2008 2004-2011 . -R
@@ -74,18 +75,7 @@ rpl "Trisquel Ltd, and Rosetta" "Canonical Ltd, and Rosetta" . -R
 rpl ubuntu-keyring trisquel-keyring . -R
 rpl ubuntu-archive-keyring trisquel-archive-keyring . -R
 
-#sed -i 's:^The default installation.*::g' build/boot/x86/boot.txt
-#sed -i 's:^Press.*::g' build/boot/x86/boot.txt
-#sed -i "s:^To install.*:This is the Trisquel GNU/Linux $TVERSION LTS \"$TCODENAME\" network install CD.:g" build/boot/x86/boot.txt
-#sed -i 's:^For the.*:For the default installation, press ENTER, for more help press F1.:g' build/boot/x86/boot.txt
-
-#sed s/tasks=standard/tasks=trisquel-console/ build/boot/x86/syslinux.cfg -i
-
 changelog "Rebranded and adapted for Trisquel"
 compile
 
-if [ $(arch) = i686 ]; then
-cp build/tmp/netboot_non-pae/mini.iso build/tmp/netboot_non-pae/initrd.gz /root/
-else
 cp build/tmp/netboot/mini.iso build/tmp/netboot/initrd.gz /root/
-fi
-- 
GitLab