No raspberry-kernel in /etc/apt/apt.conf.d/01autoremove-kernels
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Raspbian |
New
|
Undecided
|
Unassigned |
Bug Description
Upgrading package raspberry-kernel removes kernel modules, leading to corrupted (before next reboot) system.
Steps to reproduce:
1) Boot raspberry with old kernel. For me, it was raspberrypi-kernel 1.20170303-1
2) Upgrade raspberrypi-kernel package (I upgraded to 1.20170703-1).
3) Try to load some module. For me it was dm-mod, needed to work with luks-encrypted storage
$ modprobe dm_mod
modprobe: ERROR: ../libkmod/
Workaround:
Just reboot system with new kernel.
Desired solution:
Add raspberrypi-kernel into /etc/apt/
File /etc/apt/
list="$(${DPKG} -l | awk '/^ii[ ]+(linux|
Seems that adding raspberry-kernel to theese two regexps may fix the problem.
May be problem is more complex because it's impossible to keep simultaneously installed different versions of raspberry-kernel.