[Pkg-uml-commit] r188 - trunk/src/rootstrap/modules

Mattia Dongili malattia at costa.debian.org
Thu Aug 31 21:23:17 UTC 2006


Author: malattia
Date: 2006-08-31 21:23:17 +0000 (Thu, 31 Aug 2006)
New Revision: 188

Modified:
   trunk/src/rootstrap/modules/uml
Log:
better chrooting to execute commands for the target fs

Modified: trunk/src/rootstrap/modules/uml
===================================================================
--- trunk/src/rootstrap/modules/uml	2006-08-31 21:22:33 UTC (rev 187)
+++ trunk/src/rootstrap/modules/uml	2006-08-31 21:23:17 UTC (rev 188)
@@ -23,8 +23,8 @@
 [ ! -e $HOST/etc/timezone ] || TARGET_TIMEZONE="$(cat $HOST/etc/timezone)"
 
 if [ -e "$TARGET/usr/share/zoneinfo/$TARGET_TIMEZONE" ] ; then
-	cp $TARGET/usr/share/zoneinfo/$TARGET_TIMEZONE $TARGET/etc/localtime
-	echo $TARGET_TIMEZONE > $TARGET/etc/timezone
+	chroot $TARGET cp /usr/share/zoneinfo/$TARGET_TIMEZONE /etc/localtime
+	chroot $TARGET echo $TARGET_TIMEZONE > /etc/timezone
 fi 
 
 # kernel modules




More information about the Pkg-uml-commit mailing list