git://git.onelab.eu
/
myplc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- fix version number, bump release number, added changelog
[myplc.git]
/
build_devel.sh
diff --git
a/build_devel.sh
b/build_devel.sh
index
ff27981
..
d091ff2
100755
(executable)
--- a/
build_devel.sh
+++ b/
build_devel.sh
@@
-10,11
+10,12
@@
# devel/data/cvs/ (local CVS repository)
# devel/data/build/ (build area)
# devel/data/etc/planetlab/ (configuration)
# devel/data/cvs/ (local CVS repository)
# devel/data/build/ (build area)
# devel/data/etc/planetlab/ (configuration)
+# devel/data/root (root's home dir)
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: build_devel.sh,v 1.
1 2006/07/17 21:31:31 mlhuang
Exp $
+# $Id: build_devel.sh,v 1.
5 2006/08/18 14:35:52 thierry
Exp $
#
. build.functions
#
. build.functions
@@
-40,8
+41,7
@@
for dir in * ; do
else
ignore="-I !"
fi
else
ignore="-I !"
fi
- date=$(date +%Y-%m-%d)
- cvs -d $cvsroot import -m "Initial import" -ko $ignore $dir planetlab planetlab-$date
+ cvs -d $cvsroot import -m "Initial import" -ko $ignore $dir planetlab $IMPORT_TAG
popd
fi
done
popd
fi
done
@@
-57,6
+57,7
@@
echo "* myplc-devel: Installing configuration scripts"
install -D -m 755 plc_config.py devel/root/tmp/plc_config.py
chroot devel/root sh -c 'cd /tmp; python plc_config.py build; python plc_config.py install'
install -D -m 755 plc-config devel/root/usr/bin/plc-config
install -D -m 755 plc_config.py devel/root/tmp/plc_config.py
chroot devel/root sh -c 'cd /tmp; python plc_config.py build; python plc_config.py install'
install -D -m 755 plc-config devel/root/usr/bin/plc-config
+install -D -m 755 plc-config-tty devel/root/usr/bin/plc-config-tty
# Install initscripts
echo "* myplc-devel: Installing initscripts"
# Install initscripts
echo "* myplc-devel: Installing initscripts"
@@
-64,10
+65,19
@@
find plc.d/functions | cpio -p -d -u devel/root/etc/
install -D -m 755 guest.init devel/root/etc/init.d/plc
chroot devel/root sh -c 'chkconfig --add plc; chkconfig plc on'
install -D -m 755 guest.init devel/root/etc/init.d/plc
chroot devel/root sh -c 'chkconfig --add plc; chkconfig plc on'
+# handle root's homedir and tweak root prompt
+echo "* myplc-devel: root's homedir and prompt"
+roothome=devel/data/root
+mkdir -p $roothome
+cat << EOF > $roothome/.profile
+export PS1="<plc-devel> \$PS1"
+EOF
+chmod 644 $roothome/.profile
+
# Move "data" directories out of the installation
echo "* myplc-devel: Moving data directories out of the installation"
move_datadirs devel/root devel/data \
# Move "data" directories out of the installation
echo "* myplc-devel: Moving data directories out of the installation"
move_datadirs devel/root devel/data \
- /etc/planetlab /build /cvs
+ /etc/planetlab /build /cvs
/root
# Make image out of directory
echo "* myplc-devel: Building loopback image"
# Make image out of directory
echo "* myplc-devel: Building loopback image"