SOURCES: vserver-new_drop-defaulttar.patch (NEW), vserver-new_dev-...

glen glen at pld-linux.org
Tue Oct 11 19:56:11 CEST 2005


Author: glen                         Date: Tue Oct 11 17:56:10 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- added

---- Files affected:
SOURCES:
   vserver-new_drop-defaulttar.patch (NONE -> 1.1)  (NEW), vserver-new_dev-fix.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/vserver-new_drop-defaulttar.patch
diff -u /dev/null SOURCES/vserver-new_drop-defaulttar.patch:1.1
--- /dev/null	Tue Oct 11 19:56:10 2005
+++ SOURCES/vserver-new_drop-defaulttar.patch	Tue Oct 11 19:56:05 2005
@@ -0,0 +1,27 @@
+--- tools/vserver-new.old	2005-10-04 16:34:08.818098750 +0200
++++ tools/vserver-new	2005-10-04 16:26:13.416388000 +0200
+@@ -186,9 +186,6 @@
+ # Target: stage3                                                               #
+ #------------------------------------------------------------------------------#
+ 
+-STAGE3_DEFAULTTAR="stage3-i686-latest.tar.bz2"
+-STAGE3_DEFAULTURL="http://dev.gentoo.org/~hollow/vserver/stages/${STAGE3_DEFAULTTAR}"
+-
+ stage3_usage() {
+ 	echo "Usage: vserver-new <name> <globalopts> stage3 [<tar>]"
+ 	echo
+@@ -205,10 +202,10 @@
+ 		exit 0
+ 	fi
+ 	
+-	if [ -n "$1" ]; then
+-		tarball=$1
+-		[ "${tarball#/}" == "${tarball}" ] && tarball="`pwd`/${tarball}"
+-	fi
++	[ -z "$1" ] && die "Missing required argument <tar>"
++	
++	tarball=$1
++	[ "${tarball#/}" == "${tarball}" ] && tarball="`pwd`/${tarball}"
+ 	
+ 	stage3_build
+ }

================================================================
Index: SOURCES/vserver-new_dev-fix.patch
diff -u /dev/null SOURCES/vserver-new_dev-fix.patch:1.1
--- /dev/null	Tue Oct 11 19:56:10 2005
+++ SOURCES/vserver-new_dev-fix.patch	Tue Oct 11 19:56:05 2005
@@ -0,0 +1,10 @@
+--- tools/vserver-new.old	2005-10-01 18:58:31.580500000 +0200
++++ tools/vserver-new	2005-10-01 18:57:19.179975250 +0200
+@@ -244,6 +244,7 @@
+ 	cp -L /etc/resolv.conf etc/resolv.conf || die "failed to copy DNS information"
+ 	
+ 	mount -t proc none proc/ || die "failed to mount procfs"
++	mount --bind /dev dev/ || die "failed to mount dev"
+ 	
+ 	cat <<EOF > tmp/vserver-new-stage3.sh
+ #!/bin/bash
================================================================



More information about the pld-cvs-commit mailing list