Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # rpm -qp --scripts ./kernel-4.9.135-1.x86_64.rpm
- postinstall scriptlet (using /bin/sh):
- if [ -x /sbin/installkernel -a -r /boot/vmlinuz-4.9.135 -a -r /boot/System.map-4.9.135 ]; then
- cp /boot/vmlinuz-4.9.135 /boot/.vmlinuz-4.9.135-rpm
- cp /boot/System.map-4.9.135 /boot/.System.map-4.9.135-rpm
- rm -f /boot/vmlinuz-4.9.135 /boot/System.map-4.9.135
- /sbin/installkernel 4.9.135 /boot/.vmlinuz-4.9.135-rpm /boot/.System.map-4.9.135-rpm
- rm -f /boot/.vmlinuz-4.9.135-rpm /boot/.System.map-4.9.135-rpm
- fi
- ...
- if [ -n "$cfgLoader" ] && [ -x /sbin/new-kernel-pkg ]; then
- if [ -n "$(which dracut 2>/dev/null)" ]; then
- new-kernel-pkg --mkinitrd --dracut --host-only --depmod --install --kernel-name $KERNEL_NAME $KERNEL_VERSION
- else
- new-kernel-pkg --mkinitrd --depmod --install --kernel-name $KERNEL_NAME $KERNEL_VERSION
- fi
- new-kernel-pkg --rpmposttrans --kernel-name $KERNEL_NAME $KERNEL_VERSION
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement