mirror of
https://github.com/xcat2/confluent.git
synced 2026-09-09 22:46:45 +00:00
5645fb5cfd
SuseHandler refused anything but 15.x. What 16 needed beyond widening it:
- its repo urls are written in terms of ${releasever}, which zypper
resolves from the target root's os-release, a file that does not exist
yet when the first packages go in
- its repos name a zypper service backed by a package-provided directory
the target root does not have, so zypper discarded every one of them
as an orphan
- there is no mkinitrd to work out which kernel to build for, and bare
dracut would build for the build host's running kernel
- the efi payloads moved out of /usr/lib64/efi, arping out of /usr/sbin,
nsswitch.conf and protocols under /usr/etc, and the presets enable
sshd already
- the module list predated virtio, so an image built for a KVM guest had
no network at all, and dm-crypt could not allocate a transform for the
encrypted image without the aes-xts modules
- urlmount still links libpthread, an empty stub since glibc 2.34 that
nothing else in the initramfs pulls in
48 lines
1.0 KiB
Cheetah
48 lines
1.0 KiB
Cheetah
Name: confluent_imgutil
|
|
Version: #VERSION#
|
|
Release: 1
|
|
Summary: Confluent OS imaging utility
|
|
License: Apache-2.0
|
|
URL: https://hpc.lenovo.com/
|
|
Source: confluent_imgutil.tar.xz
|
|
BuildArch: noarch
|
|
BuildRoot: /tmp/
|
|
%if "%{dist}" == ".el8"
|
|
Requires: squashfs-tools cpio
|
|
%else
|
|
%if "%{dist}" == ".el9"
|
|
Requires: squashfs-tools cpio
|
|
%else
|
|
%if "%{dist}" == ".el10"
|
|
Requires: squashfs-tools cpio
|
|
%else
|
|
Requires: squashfs
|
|
%endif
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%description
|
|
Utility for generating, modifying, and packing confluent deployment
|
|
images for diskless boot.
|
|
|
|
%prep
|
|
%setup -n imgutil
|
|
|
|
%build
|
|
mkdir -p opt/confluent/lib/imgutil
|
|
mkdir -p opt/confluent/bin
|
|
mv imgutil opt/confluent/bin/
|
|
chmod a+x opt/confluent/bin/imgutil
|
|
mv ubuntu* suse15 suse16 el7 el9 el10 el8 opt/confluent/lib/imgutil/
|
|
mkdir -p opt/confluent/share/licenses/confluent_imgutil
|
|
cp LICENSE opt/confluent/share/licenses/confluent_imgutil
|
|
|
|
%install
|
|
cp -a opt %{buildroot}/
|
|
|
|
%files
|
|
/opt/confluent/bin/imgutil
|
|
/opt/confluent/lib/imgutil
|
|
%license /opt/confluent/share/licenses/confluent_imgutil/LICENSE
|