SHARE
TWEET

Untitled

a guest Jun 25th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # rpm -qp --scripts ./kernel-4.9.135-1.x86_64.rpm
  2. postinstall scriptlet (using /bin/sh):
  3. if [ -x /sbin/installkernel -a -r /boot/vmlinuz-4.9.135 -a -r /boot/System.map-4.9.135 ]; then
  4. cp /boot/vmlinuz-4.9.135 /boot/.vmlinuz-4.9.135-rpm
  5. cp /boot/System.map-4.9.135 /boot/.System.map-4.9.135-rpm
  6. rm -f /boot/vmlinuz-4.9.135 /boot/System.map-4.9.135
  7. /sbin/installkernel 4.9.135 /boot/.vmlinuz-4.9.135-rpm /boot/.System.map-4.9.135-rpm
  8. rm -f /boot/.vmlinuz-4.9.135-rpm /boot/.System.map-4.9.135-rpm
  9. fi
  10. ...
  11.      
  12. if [ -n "$cfgLoader" ] && [ -x /sbin/new-kernel-pkg ]; then
  13. if [ -n "$(which dracut 2>/dev/null)" ]; then
  14.     new-kernel-pkg --mkinitrd --dracut --host-only --depmod --install --kernel-name $KERNEL_NAME $KERNEL_VERSION
  15. else
  16.     new-kernel-pkg --mkinitrd --depmod --install --kernel-name $KERNEL_NAME $KERNEL_VERSION
  17. fi
  18. new-kernel-pkg --rpmposttrans --kernel-name $KERNEL_NAME $KERNEL_VERSION
  19. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top