diff --git a/master.inc b/master.inc index a599016..d08465f 100644 --- a/master.inc +++ b/master.inc @@ -118,7 +118,6 @@ mkdir -p %{buildroot} mkdir -p %{buildroot}/boot cp $(%{make} -s image_name) %{buildroot}/boot/vmlinuz-%{KVERREL} chmod 755 %{buildroot}/boot/vmlinuz-%{KVERREL} -echo "%{KVERREL}" > %{buildroot}/boot/.uname-%{KVERREL} # install DTBs %ifarch aarch64 || riscv64 @@ -174,8 +173,7 @@ fi # and not # vmlinuz -> /boot/vmlinuz-6.6.0-20231004.6.el9.aarch64 pushd /boot -rm -vf .uname dtb initramfs.img System.map vmlinuz -ln -s .uname-%{KVERREL} .uname +rm -rvf dtb initramfs.img System.map vmlinuz ln -s dtb-%{KVERREL} dtb ln -s initramfs-%{KVERREL}.img initramfs.img ln -s System.map-%{KVERREL} System.map @@ -184,7 +182,6 @@ popd %preun # remove symlinks -rm -vf /boot/.uname /boot/.uname-%{KVERREL} rm -vf /boot/initramfs.img rm -vf /boot/System.map rm -vf /boot/vmlinuz @@ -216,5 +213,4 @@ fi %exclude /lib/modules/%{KVERREL}/build %exclude /lib/modules/%{KVERREL}/source /lib/modules/%{KVERREL} -/boot/.uname-%{KVERREL} /boot/*