2020-08-10 15:39:03 +00:00
|
|
|
cd $(dirname $0)
|
|
|
|
cp -a 97genesis /usr/lib/dracut/modules.d/
|
|
|
|
cat /usr/lib/dracut/modules.d/97genesis/install-* > /usr/lib/dracut/modules.d/97genesis/install
|
2020-08-10 18:49:30 +00:00
|
|
|
chmod +x /usr/lib/dracut/modules.d/97genesis/install /usr/lib/dracut/modules.d/97genesis/installkernel
|
2020-08-10 15:39:03 +00:00
|
|
|
mkdir -p boot/initramfs
|
|
|
|
mkdir -p boot/efi/boot
|
|
|
|
dracut --xz -N -m "genesis base" -f boot/initramfs/distribution $(uname -r)
|
|
|
|
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
|
2020-08-11 13:54:53 +00:00
|
|
|
tar cf ~/rpmbuild/SOURCES/confluent-genesis.tar boot
|
|
|
|
rpmbuild -bb confluent-genesis.spec
|
2020-08-10 15:39:03 +00:00
|
|
|
rm -rf /usr/lib/dracut/modules.d/97genesis
|
|
|
|
cd -
|
2020-08-11 13:54:53 +00:00
|
|
|
# getting src rpms would be nice, but centos isn't consistent..
|
|
|
|
# skipcpio | xzcat | cpio -dumiv
|
|
|
|
# dnf download --source $(rpm -qf $(find . -type f | sed -e 's/^.//') |sort -u|grep -v 'not owned')
|
|
|
|
|