mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 01:22:00 +00:00
13 lines
534 B
Bash
13 lines
534 B
Bash
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
|
|
chmod +x /usr/lib/dracut/modules.d/97genesis/install
|
|
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
|
|
rm -rf /usr/lib/dracut/modules.d/97genesis
|
|
cd -
|