3 RDIR="/vservers/$1/rootfs"
7 # User does not have his own distro, check if he has a default custom distro set
8 VREF_FILE="/etc/planetlab/vsys-attributes/$1/vsys_vref"
12 VREF_DIR="/vservers/.vref/$VREF"
15 echo "Copying in reference image $VREF..."
17 cp -aRp $VREF_DIR/* $RDIR
19 echo "Reference directory $VREF not found."
23 echo "Please set up a custom distribution in /rootfs or set a vsys_vref tag for your slice"
28 echo "Restarting your slice. Please reconnect and login in a few minutes."
30 mv /vservers/$1 /vservers/_$1
31 mv /vservers/_$1/rootfs /vservers/$1
32 mkdir -p /vservers/$1/var/run
33 mkdir -p /vservers/$1/proc
34 mkdir -p /vservers/$1/var/lock
35 grep $1 /vservers/_$1/etc/passwd >> /vservers/$1/etc/passwd
38 tar cf - /vservers/pl_netflow/dev/* | tar xvf - --strip=3