Advertisement
Guest User

Untitled

a guest
Jan 12th, 2017
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. # zfs-native 0.6.5.7 - Kernel Downgrade to 4.4.0-57
  2. # Does not build with 4.4.0-59
  3.  
  4. # Install previous good kernel
  5. apt-get install linux-image-4.4.0-57-generic linux-image-extra-4.4.0-57-generic
  6.  
  7. # Replace primary boot kernel (vmlinuz and initrd.img) in grub.cfg
  8. sed -E "s/\/(vmlinuz|initrd\.img)-4\.4\.0-59-generic/\/\1-4.4.0-57-generic/g" /boot/grub/grub.cfg > /tmp/grub-modified-4.4.0-57.cfg
  9.  
  10. # CHECK THE GENERATED FILE. Then update grub.cfg
  11.  
  12. cp -v /boot/grub/grub.cfg /tmp/grub.$(date +%Y-%m-%d-%H-%M-%S)-.bak
  13. cp -v /tmp/grub-modified-4.4.0-57.cfg /boot/grub/grub.cfg
  14.  
  15. # Reboot
  16. shutdown -r now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement