LUKS encrypted HD and kernel updates
I have a laptop that has the whole disk encrypted (work requirement) and therefore makes upgrading the kernel a major pain in the a**. I am not using LVM I have everything in just one partition (just to make it easier). The only unencrypted partition is /boot which needs to be like that. So my question is if I want to install the newest kernel (right now I have the stock 14.1 kernel) what would the process be to get this done? The reason that I ask is because I am certain that if I just run
# slackpkg upgrade-all my old kernel will go bye-bye and therefore the initrd file will no longer be valid and the system will not boot. I am sure I can boot it from CD/chroot and go from there, but i want to safe myself the headache if I can. TIA for any help/pointers. |
After you upgrade the packages, you'll need to create a new initrd valid for your new kernel.
If you upgrade using "slackpkg upgrade-all", just don't run lilo when prompted by the script. To create a new initrd file (after the slackpkg command), run the following command: Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh --run /boot/vmlinuz-generic-4.4.10 The above command will display the appropriate "mkinitrd" command that you need to run to create a new initrd file consistent with your upgraded system (you should see a "-C" option as you're using an encrypted filesystem). If you are using a non-english keyboard, you will need to add a "-l fr" option to the "mkinitrd" command (replace fr by your own keyboard layout). Run the "mkinitrd" command. Then run: Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh --lilo /boot/vmlinuz-generic-4.4.10 After editing /etc/lilo.conf (don't forget to remove any invalid entry like the entry for the previous version of the kernel), run lilo and you should have a functioning kernel upon reboot. |
Quote:
|
All times are GMT -5. The time now is 06:46 AM. |