Commit 92cbfdaf by KATOH Yasufumi Committed by Stéphane Graber

template: Improved lxc-plamo template

lxc-plamo now work with any distribution other than Plamo Linux. Signed-off-by: 's avatarKATOH Yasufumi <karma@jazz.email.ne.jp> Signed-off-by: 's avatarTAMUKI Shoichi <tamuki@linet.gr.jp> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent cab79123
......@@ -123,6 +123,13 @@ install_plamo() {
return 1
fi
fi
if [ ! -x /sbin/installpkg ] ; then
echo "'installpkg' command is missing."
echo "Installing 'installpkg' command into $dlcache/sbin..."
( cd $dlcache ; tar xpJf hdsetup-*.txz ; rm -rf tmp usr var )
sed -i "/ldconfig/!s@/sbin@$dlcache&@g" $dlcache/sbin/installpkg*
PATH=$dlcache/sbin:$PATH
fi
echo "Installing packages to $rtcache..."
if [ ! -d $rtcache ] ; then
mkdir -p $rtcache
......@@ -339,10 +346,6 @@ if [ $hostarch == "x86" -a $arch == "x86_64" ] ; then
echo "Can't create x86_64 container on x86."
exit 1
fi
if ! type installpkg ; then
echo "'installpkg' command is missing."
exit 1
fi
if [ -z "$path" ] ; then
echo "'path' parameter is required."
exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment