salam
this is my customization of the remaster script to support the Sabily
installer
i hope that it will work
=== modified file 'remaster-scripts/customization-scripts/customize'
--- remaster-scripts/customization-scripts/customize	2009-07-08 13:15:38 +0000
+++ remaster-scripts/customization-scripts/customize	2009-08-19 18:51:02 +0000
@@ -250,7 +250,11 @@
 install_packages gnote gthumb
 
 echo --------- remove old linux kernels
-remove_packages linux-image-2.6.28-11-generic linux-restricted-modules-2.6.28-11-generic
+CURKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g')
+LINUXPKG="linux-(image|headers|ubuntu-modules|restricted-modules)"
+METALINUXPKG="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)"
+OLDKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $LINUXPKG |grep -vE $METALINUXPKG|grep -v $CURKERNEL)
+remove_packages $OLDKERNELS
 
 echo --------- CLEAN UP ---------
 apt-get autoremove

=== modified file 'remaster-scripts/customization-scripts/customize_iso'
--- remaster-scripts/customization-scripts/customize_iso	2009-07-08 12:36:15 +0000
+++ remaster-scripts/customization-scripts/customize_iso	2009-08-19 19:08:22 +0000
@@ -92,6 +92,12 @@
 # Live CD menu
 cp -f ./resources/text.cfg "$ISO_REMASTER_DIR/isolinux/text.cfg"
 
+# Sabily-wininstaller and Sabily-winmenu
+cp -f ../resources/exe/* $REMASTER_HOME/remaster-iso/
+
+# the cd information 
+cp -f cp -f ../resources/info $REMASTER_HOME/remaster-iso/.disk
+
 # lock firefox by default
 #sed -i "s|pref(\"general.config.obscure_value\", 13)|pref(\"general.config.obscure_value\", 0)|" "$REMASTER_DIR"/usr/lib/xulrunner-1.9b5/greprefs/all.js
 #cp -f ./resources/firefox.js "$REMASTER_DIR"/etc/firefox-3.0/pref/firefox.js

=== added directory 'remaster-scripts/exe'
=== added file 'remaster-scripts/exe/Sabily-wininstaller.exe'
=== added file 'remaster-scripts/exe/Sabily-winmenu.exe'
=== added file 'remaster-scripts/exe/autorun.inf'
--- remaster-scripts/exe/autorun.inf	1970-01-01 00:00:00 +0000
+++ remaster-scripts/exe/autorun.inf	2009-08-19 18:57:07 +0000
@@ -0,0 +1,3 @@
+[autorun]
+open=Sabily-winmenu.exe
+icon=Sabily-winmenu.exe

=== added file 'remaster-scripts/info'
--- remaster-scripts/info	1970-01-01 00:00:00 +0000
+++ remaster-scripts/info	2009-08-19 19:04:44 +0000
@@ -0,0 +1,1 @@
+Sabily 9.10 "gaza" - Release i386 (20091105)

_______________________________________________
Mailing list: https://launchpad.net/~sabily.team
Post to     : sabily.team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sabily.team
More help   : https://help.launchpad.net/ListHelp

رد على