So I thought that there might be some automatism like this:
If the currently used kernel and initramfs have been in use
already N times and if the boot time has been lower then M
minutes each time (and if some other conditions are fulfilled),
then consider that kernel and initramfs good and save them away
where they will not be overwritten by regular kernel/initramfs
maintenance.
On Debian testing I've been bitten by the systemd upgrade and the
systemd package split recently, rendering my dracut-LUKS-based
system unbootable. I know that my warranty is void since I'm on
testing, but both these issues would have been much easier to cope
with if there had been some good backup of my initramfs and kernel
below /boot.
So I thought that there might be some automatism like this:
If the currently used kernel and initramfs have been in use
already N times and if the boot time has been lower then M
minutes each time (and if some other conditions are fulfilled),
then consider that kernel and initramfs good and save them away
where they will not be overwritten by regular kernel/initramfs
maintenance.
Scripting something like that shouldn't be too hard, but I wonder
if there already is a package implementing that? A cursory search
hasn't brought up anything. There is package dracut-config-rescue,
but that only configures a variable that does not seem to be used
by dracut itself.
On Debian testing I've been bitten by the systemd upgrade and the
systemd package split recently, rendering my dracut-LUKS-based
system unbootable. I know that my warranty is void since I'm on
testing, but both these issues would have been much easier to cope
with if there had been some good backup of my initramfs and kernel
below /boot.
So I thought that there might be some automatism like this:
If the currently used kernel and initramfs have been in use
already N times and if the boot time has been lower then M
minutes each time (and if some other conditions are fulfilled),
then consider that kernel and initramfs good and save them away
where they will not be overwritten by regular kernel/initramfs
maintenance.
Jens Schmidt wrote:
On Debian testing I've been bitten by the systemd upgrade and the
systemd package split recently, rendering my dracut-LUKS-based
system unbootable. I know that my warranty is void since I'm on
testing, but both these issues would have been much easier to cope
with if there had been some good backup of my initramfs and kernel
below /boot.
So I thought that there might be some automatism like this:
If the currently used kernel and initramfs have been in use
already N times and if the boot time has been lower then M
minutes each time (and if some other conditions are fulfilled),
then consider that kernel and initramfs good and save them away
where they will not be overwritten by regular kernel/initramfs
maintenance.
Are you using grub as your bootloader? Normally apt upgrade
leaves the last N (N=5?) kernels and initramfs in /boot, and
configures grub to make them available. apt dist-upgrade, on the
other hand, tries to remove the oldest unused kernel and
initramfs each time.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 153:14:38 |
Calls: | 10,383 |
Files: | 14,054 |
Messages: | 6,417,839 |