[Lunar-commits] r23233 - lunar-iso/trunk/lunar-install/sbin

Auke Kok sofar at lunar-linux.org
Mon Feb 12 00:39:18 CET 2007


Author: sofar
Date: 2007-02-12 00:39:17 +0100 (Mon, 12 Feb 2007)
New Revision: 23233

Modified:
   lunar-iso/trunk/lunar-install/sbin/lunar-install
Log:
Major bugfixes... I'm finally getting near testing this code.


Modified: lunar-iso/trunk/lunar-install/sbin/lunar-install
===================================================================
--- lunar-iso/trunk/lunar-install/sbin/lunar-install	2007-02-11 19:40:43 UTC (rev 23232)
+++ lunar-iso/trunk/lunar-install/sbin/lunar-install	2007-02-11 23:39:17 UTC (rev 23233)
@@ -1068,22 +1068,6 @@
 				tar j --list -f /var/lib/lunar/moonbase.tar.bz2 | sed 's:^:/var/lib/lunar/:g' > $TARGET/var/log/lunar/install/moonbase-%DATE%
 			)
 
-			# unpack a kernel source and preconfigure ir
-			percent_msg "Extracting kernel sources..."
-			(
-				if is_26 ; then
-					echo ". /etc/lunar/config ; run_details linux-2.6 ; run_pre_build"
-				else
-					echo ". /etc/lunar/config ; run_details linux-2.4 ; run_pre_build"
-				fi > $ISO_TARGET/tmp/unpack_kernel.sh
-				chroot_run /bin/bash /tmp/unpack_kernel.sh
-				rm -f $ISO_TARGET/tmp/unpack_kernel.sh
-				is_26 && zcat /proc/config.gz > $TARGET/usr/src/linux-$VERSION/.config
-				chroot_run make -C /usr/src/linux oldconfig
-				chroot_run make -C /usr/src/linux prepare
-				chroot_run make -C /usr/src/linux _modinst_
-			) > /dev/null
-
 			# transfer sources
 			percent_msg "Copying sources"
 			cp /var/spool/lunar/* $TARGET/var/spool/lunar/
@@ -1100,6 +1084,22 @@
 			percent_msg "Updating moonbase plugins"
 			chroot_run lsh update_plugins
 
+			# unpack a kernel source and preconfigure ir
+			percent_msg "Extracting kernel sources..."
+			(
+				if is_26 ; then
+					echo ". /etc/lunar/config ; SILENT=y ; run_details linux-2.6 ; run_pre_build"
+				else
+					echo ". /etc/lunar/config ; SILENT=y ; run_details linux-2.4 ; run_pre_build"
+				fi > $TARGET/tmp/unpack_kernel.sh
+				chroot_run /bin/bash /tmp/unpack_kernel.sh
+				rm -f $TARGET/tmp/unpack_kernel.sh
+				is_26 && zcat /proc/config.gz > $TARGET/usr/src/linux/.config
+				chroot_run make -C /usr/src/linux oldconfig
+				chroot_run make -C /usr/src/linux prepare
+				chroot_run make -C /usr/src/linux _modinst_
+			) > /dev/null
+
 			# pass through some of the configuration at this point:
 			percent_msg "Finishing up installation"
 			[ -z "$KEYMAP" ] || echo "$KEYMAP" > $TARGET/etc/keymap



More information about the Lunar-commits mailing list