diff options
author | Gui Chen <gui.chen@intel.com> | 2013-06-24 01:57:08 -0400 |
---|---|---|
committer | Gui Chen <gui.chen@intel.com> | 2013-06-24 01:58:08 -0400 |
commit | ec60892b0e8d14a6c6b2d4e493eb673bbabee5b6 (patch) | |
tree | e5403ae430dcd98b50a0fb6a03b9bcbaac912574 /packaging/mic-bootstrap.spec | |
parent | abf0456cea9dc43093f695b00b0b31ec0f97ec6e (diff) | |
download | mic-bootstrap-ec60892b0e8d14a6c6b2d4e493eb673bbabee5b6.tar.gz mic-bootstrap-ec60892b0e8d14a6c6b2d4e493eb673bbabee5b6.tar.bz2 mic-bootstrap-ec60892b0e8d14a6c6b2d4e493eb673bbabee5b6.zip |
copy real binary when symblink /bin and /sbin
when /bin and /sbin is symbolic link of /usr/bin and /usr/sbin,
try to copy the actual binaries from /usr/(s)bin to /(s)bin
Signed-off-by: Gui Chen <gui.chen@intel.com>
Diffstat (limited to 'packaging/mic-bootstrap.spec')
-rw-r--r-- | packaging/mic-bootstrap.spec | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packaging/mic-bootstrap.spec b/packaging/mic-bootstrap.spec index 801b2d7..bb0f167 100644 --- a/packaging/mic-bootstrap.spec +++ b/packaging/mic-bootstrap.spec @@ -74,6 +74,9 @@ sed -f $sedtmp -i filestoinclude1 # tar copy to bootstrap dir under buildroot # prefix /bootstrap will fix conflicts tar -T filestoinclude1 -cpf - | ( cd %buildroot/bootstrap && tar -xpf - ) +# tar copy /usr/bin and /usr/sbin to /bin and /sbin to fix symblic lost in tar +(cd /usr/bin && tar -cpf - *) | (cd %buildroot/bootstrap/bin && tar -xpf -) +(cd /usr/sbin && tar -cpf - *) | (cd %buildroot/bootstrap/sbin && tar -xpf -) rm filestoinclude1 # Todo: refractor |