Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Remove the mkinitcpio presets when uninstalling a kernel #1056

Open
BillFleming opened this issue Dec 27, 2024 · 0 comments

Comments

@BillFleming
Copy link

Describe the bug
At least in Arch when installing the pkg* files then uninstalling them later it leaves behind preset files in the mkinicpio directory that you then have to remove manually. If you don't remove them it will try to run mkinicpio on the uninstalled kernels, which piles over time. Not sure yet if this happens on Debian but will check.

[bill@bill-X670E ~]$ cd /etc/mkinitcpio.d
[bill@bill-X670E mkinitcpio.d]$ ls
linux612-tkg-bore.preset         linux66-tkg-bore.preset.pacsave
linux62-tkg-bore.preset          linux67-tkg-bore.preset.pacsave
linux63-tkg-bore.preset.pacsave  linux68-tkg-bore.preset
linux63-tkg-pds.preset.pacsave   linux.preset.pacsave
linux64-tkg-bore.preset          linux-zen.preset
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux612-tkg-bore.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux612-tkg-bore -g /boot/initramfs-linux612-tkg-bore-fallback.img -S autodetect
==> Starting build: '6.12.5-273-tkg-bore'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [kms]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux612-tkg-bore-fallback.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux62-tkg-bore.preset: 'default'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux62-tkg-bore -c /etc/mkinitcpio.conf -g /boot/initramfs-linux62-tkg-bore.img
==> ERROR: specified kernel image does not exist: '/boot/vmlinuz-linux62-tkg-bore'
==> Building image from preset: /etc/mkinitcpio.d/linux62-tkg-bore.preset: 'fallback'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux62-tkg-bore -c /etc/mkinitcpio.conf -g /boot/initramfs-linux62-tkg-bore-fallback.img -S autodetect
==> ERROR: specified kernel image does not exist: '/boot/vmlinuz-linux62-tkg-bore'
==> Building image from preset: /etc/mkinitcpio.d/linux64-tkg-bore.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
==> WARNING: Deprecated option 'ALL_microcode' found. Update '/etc/mkinitcpio.d/linux64-tkg-bore.preset' to use the 'microcode' hook instead.
  -> -k /boot/vmlinuz-linux64-tkg-bore -g /boot/initramfs-linux64-tkg-bore.img
==> ERROR: specified kernel image does not exist: '/boot/vmlinuz-linux64-tkg-bore'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant