lxc-plamo: keep original uid/gid of files/dirs when installing
lxc-plamo: keep original uid/gid of files/dirs when installing

Regardless of whether "installpkg" command exists or not, install the
command temporarily with static linked tar command into the lxc cache
directory to keep the original uid/gid of files/directories.  Also,
use sed command instead of ed command for simplicity.

Signed-off-by: TAMUKI Shoichi <3c93446879a34d22ef90842b53f301505d448898@linet.gr.jp>
Acked-by: Stéphane Graber <089afc6d81f66f1168a9849e15660feae286e024@ubuntu.com>

JohnPeacockMessageSystems/lxc,major/lxc,terceiro/lxc,regit/lxc,Distrotech/lxc,ysbnim/lxc,Ponce/lxc,DarknessBeforeDawn/lxc,thmo/lxc,ecarrara/lxc,lazy404/lxc,rowhit/lxc,rldleblanc/lxc,akshaykarle/lxc,bmoar/lxc,Pelagicore/lxc,sapun/lxc,caglar10ur/lxc,sapun/lxc,regit/lxc,caglar10ur/lxc,DarknessBeforeDawn/lxc,christiaan/lxc,LynxChaus/lxc,ss1h2a3tw/lxc,cjwatson/lxc,szaszg/lxc,fwilson42/lxc,jirislaby/lxc,thmo/lxc,yubo/lxc,hallyn/lxc,aeris/lxc,ss1h2a3tw/lxc,armcc/lxc,christiaan/lxc,terceiro/lxc,armcc/lxc,ioops/lxc,codebauss/lxc,Distrotech/lxc,GreatFruitOmsk/lxc,LynxChaus/lxc,ksperis/lxc,ss1h2a3tw/lxc,sapun/lxc,szaszg/lxc,weizhenwei/lxc,hfuCN/lxc,tych0/lxc,yubo/lxc,Pelagicore/lxc,virajs/lxc,major/lxc,tych0/lxc,terceiro/lxc,fwilson42/lxc,ecarrara/lxc,aeris/lxc,efiop/lxc,bmoar/lxc,aeris/lxc,ioops/lxc,ksperis/lxc,regit/lxc,hkjolhede/lxc,raspberrypython/lxc,bostjan/lxc,bostjan/lxc,JohnPeacockMessageSystems/lxc,bmoar/lxc,ysbnim/lxc,lazy404/lxc,hkjolhede/lxc,Ponce/lxc,LynxChaus/lxc,lazy404/lxc,federicobriata/lxc,Distrotech/lxc,lisongmin/lxc,szaszg/lxc,ysbnim/lxc,QingweiPeterLan/cs188-lxc,rowhit/lxc,weizhenwei/lxc,ksperis/lxc,hfuCN/lxc,jirislaby/lxc,QingweiPeterLan/cs188-lxc,akshaykarle/lxc,cjwatson/lxc,weizhenwei/lxc,fwilson42/lxc,cjwatson/lxc,GreatFruitOmsk/lxc,rldleblanc/lxc,Pelagicore/lxc,thmo/lxc,armcc/lxc,federicobriata/lxc,GreatFruitOmsk/lxc,virajs/lxc,yubo/lxc,ioops/lxc,virajs/lxc,efiop/lxc,DarknessBeforeDawn/lxc,akshaykarle/lxc,QingweiPeterLan/cs188-lxc,JohnPeacockMessageSystems/lxc,hallyn/lxc,jirislaby/lxc,codebauss/lxc,Ponce/lxc,codebauss/lxc,ecarrara/lxc,raspberrypython/lxc,bostjan/lxc,lisongmin/lxc,tych0/lxc,lisongmin/lxc,major/lxc,rowhit/lxc,christiaan/lxc,rldleblanc/lxc,hkjolhede/lxc,efiop/lxc,caglar10ur/lxc,raspberrypython/lxc,hallyn/lxc,federicobriata/lxc,hfuCN/lxc