diff --git a/genesis/buildgenesis.sh b/genesis/buildgenesis.sh index 1d5998a8..014c4f25 100644 --- a/genesis/buildgenesis.sh +++ b/genesis/buildgenesis.sh @@ -5,11 +5,21 @@ chmod +x /usr/lib/dracut/modules.d/97genesis/install /usr/lib/dracut/modules.d/9 mkdir -p boot/initramfs mkdir -p boot/efi/boot dracut --no-early-microcode --xz -N -m "genesis base" -f boot/initramfs/distribution $(uname -r) +tdir=$(mktemp -d) +tfile=$(mktemp) +cp boot/initramfs/distribution $tdir +cd $tdir +xzcat distribution|cpio -dumi +rm distribution +find . -type f -exec rpm -qf /{} \; 2> /dev/null | grep -v 'not owned' | sort -u > $tfile +cd - +rm -rf $tdir +cp $tfile rpmlist cp -f /boot/vmlinuz-$(uname -r) boot/kernel cp /boot/efi/EFI/BOOT/BOOTX64.EFI boot/efi/boot cp /boot/efi/EFI/centos/grubx64.efi boot/efi/boot/grubx64.efi mkdir -p ~/rpmbuild/SOURCES/ -tar cf ~/rpmbuild/SOURCES/confluent-genesis.tar boot +tar cf ~/rpmbuild/SOURCES/confluent-genesis.tar boot rpmlist rpmbuild -bb confluent-genesis.spec rm -rf /usr/lib/dracut/modules.d/97genesis cd - diff --git a/genesis/confluent-genesis.spec b/genesis/confluent-genesis.spec index b1a24a6d..30111120 100644 --- a/genesis/confluent-genesis.spec +++ b/genesis/confluent-genesis.spec @@ -28,6 +28,7 @@ find . -type f -exec chmod o+r {} + find . -type f -exec chmod -x {} + %files +/opt/confluent/genesis/%{arch}/rpmlist /opt/confluent/genesis/%{arch}/boot/efi/boot/BOOTX64.EFI /opt/confluent/genesis/%{arch}/boot/efi/boot/grubx64.efi /opt/confluent/genesis/%{arch}/boot/initramfs/distribution