mirror of
https://github.com/xcat2/confluent.git
synced 2026-09-09 22:46:45 +00:00
9dd5802698
- the aarch64 osdeploy spec builds the stateful suse16 addons but its diskless loop was never extended, so the aarch64 rpm shipped suse16 without suse16-diskless and a packed image got a dangling addons.cpio. - imgutil's builddeb keeps its own copy of the directory list that confluent_imgutil.spec.tmpl has, and it had learned about neither suse16 nor el10. - gather_bootloader gained a /usr/share/efi fallback for shim on both architectures but only for x86_64 on grub, so an aarch64 root found a shim and then died copying grub. Finally, rewriting repos.d file by file rather than copying the tree meant a subdirectory or a file that is not valid UTF-8 aborted the build before any package was installed, which also regressed SUSE 15. Pass anything that is not a plain text repo definition through untouched and restore the modes on the ones that are rewritten.
24 lines
1.1 KiB
Bash
Executable File
24 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
export DEBFULLNAME="Lenovo HPC"
|
|
export DEBEMAIL="hpchelp@lenovo.com"
|
|
cd "$(dirname "$0")" || exit 1
|
|
VERSION=`../mkversion --tilde` || exit 1
|
|
mkdir -p /tmp/confluent-imgutil
|
|
cp -a * /tmp/confluent-imgutil
|
|
cp ../LICENSE /tmp/confluent-imgutil
|
|
cd /tmp/confluent-imgutil
|
|
rm -rf deb/confluent_imgutil_$VERSION/
|
|
mkdir -p deb/confluent_imgutil_$VERSION/DEBIAN/
|
|
mkdir -p deb/confluent_imgutil_$VERSION/opt/confluent/lib/imgutil
|
|
mkdir -p deb/confluent_imgutil_$VERSION/opt/confluent/bin
|
|
mv imgutil deb/confluent_imgutil_$VERSION/opt/confluent/bin/
|
|
chmod a+x deb/confluent_imgutil_$VERSION/opt/confluent/bin/imgutil
|
|
mv ubuntu* suse15 suse16 el7 el9 el10 el8 deb/confluent_imgutil_$VERSION/opt/confluent/lib/imgutil/
|
|
mkdir -p deb/confluent_imgutil_$VERSION/opt/confluent/share/licenses/confluent_imgutil
|
|
cp LICENSE deb/confluent_imgutil_$VERSION/opt/confluent/share/licenses/confluent_imgutil
|
|
sed -e 's/#VERSION#/'$VERSION/ control.tmpl > deb/confluent_imgutil_$VERSION/DEBIAN/control
|
|
dpkg-deb --build deb/confluent_imgutil_$VERSION
|
|
if [ ! -z "$1" ]; then
|
|
mv deb/confluent_imgutil_$VERSION.deb $1
|
|
fi
|