mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 23:21:17 +02:00
build_torcx_store: Package /usr/share in the image
This commit is contained in:
parent
daea3434c8
commit
1060d9cf3b
@ -167,8 +167,13 @@ function torcx_package() {
|
||||
: # Set $? to 0 or the pipeline fails and -e quits.
|
||||
done
|
||||
|
||||
# Move anything we plan to package to its root
|
||||
# Move anything we plan to package to its root.
|
||||
sudo mv "${tmproot}"/{.torcx,bin,lib} "${tmppkgroot}"
|
||||
if [ -e "${tmproot}/usr/share" ]
|
||||
then
|
||||
sudo mkdir "${tmppkgroot}/usr"
|
||||
sudo mv "${tmproot}/usr/share" "${tmppkgroot}/usr/"
|
||||
fi
|
||||
|
||||
tmpfile="${BUILD_DIR}/${name}:${version}.torcx.tgz"
|
||||
tar --force-local -C "${tmppkgroot}" -czf "${tmpfile}" .
|
||||
|
Loading…
x
Reference in New Issue
Block a user