View previous topic :: View next topic |
Author |
Message |
urcindalo l33t
Joined: 08 Feb 2005 Posts: 623 Location: Almeria, Spain
|
Posted: Tue Mar 12, 2024 12:27 pm Post subject: [SOLVED] How to get a backup of a kernel config in /boot? |
|
|
Hi and thanks for reading this!
I use gentoo-sources. Up until the recent change in the installkernel procedure I used to get an automatic backup of the newly-installed-kernel config in /boot. For instance, /boot/config-5.15.19-gentoo or /boot/config-6.6.13-gentoo
However, I just upgraded to gentoo-sources-6.6.21, which in turn installed /boot/kernel-6.6.21-gentoo after "make modules_install && make install" but NOT the /boot/config-6.6.21-gentoo backup file.
How can I get the old behavior back?
Thanks in advance.
Last edited by urcindalo on Wed Mar 13, 2024 8:50 am; edited 1 time in total |
|
Back to top |
|
|
eeckwrk99 Apprentice
Joined: 14 Mar 2021 Posts: 172 Location: Gentoo forums
|
Posted: Tue Mar 12, 2024 1:39 pm Post subject: |
|
|
While I don't have an answer, I'm wondering why you're seeing this behavior. I'm also using sys-kernel/gentoo-sources and updated to newly stabilized 6.1.81 and 6.6.21 kernels yesterday. Nothing changed regarding naming and config backup:
Code: | % ls -lh /boot
total 78M
drwxr-xr-x 3 root root 4.0K Jun 19 2021 EFI
-rwxr-xr-x 1 root root 4.4M Mar 11 18:04 System.map-6.1.81-gentoo-custom
-rwxr-xr-x 1 root root 6.8M Mar 11 18:16 System.map-6.6.21-gentoo-custom
-rwxr-xr-x 1 root root 163K Mar 11 18:04 config-6.1.81-gentoo-custom
-rwxr-xr-x 1 root root 168K Mar 11 18:16 config-6.6.21-gentoo-custom
drwxr-xr-x 6 root root 4.0K Mar 11 18:26 grub
-rwxr-xr-x 1 root root 16M Mar 11 18:04 initramfs-6.1.81-gentoo-custom.img
-rwxr-xr-x 1 root root 16M Mar 11 18:17 initramfs-6.6.21-gentoo-custom.img
-rwxr-xr-x 1 root root 14M Nov 15 10:08 intel-uc.img
-rwxr-xr-x 1 root root 11M Mar 11 18:04 vmlinuz-6.1.81-gentoo-custom
-rwxr-xr-x 1 root root 12M Mar 11 18:16 vmlinuz-6.6.21-gentoo-custom |
Kernels are still named "vmlinux-X.Y.Z-gentoo-CONFIG_LOCALVERSION" (in my case, "custom"), not "kernel-X.Y.Z". Plus, I still have the config files following the same naming scheme.
Code: | % equery u installkernel
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for sys-kernel/installkernel-25:
U I
- - dracut : Generate an initrd or UKI on each kernel installation
- - grub : Re-generate grub.cfg on each kernel installation, used grub.cfg is overridable with GRUB_CFG env var
- - refind : Install a Gentoo icon for rEFInd alongside the (unified) kernel image, used icon is overridable with REFIND_ICON env var
- - systemd : Use systemd's kernel-install to install kernels, overridable with SYSTEMD_KERNEL_INSTALL env var
- - systemd-boot : Use systemd-boot's native layout by default
- - uki : Install UKIs to ESP/EFI/Linux for EFI stub booting and/or bootloaders with support for auto-discovering UKIs
- - ukify : Build an UKI with systemd's ukify on each kernel installation |
|
|
Back to top |
|
|
urcindalo l33t
Joined: 08 Feb 2005 Posts: 623 Location: Almeria, Spain
|
Posted: Tue Mar 12, 2024 7:09 pm Post subject: |
|
|
Thanks for answering.
I was getting vmlinuz- names until recently, as well as backups for my config files. This issue is happening on my two boxes and I haven't been tinkering with grub on them.
So, I think a related question is: where do the kernel- names come from, instead of vmlinuz- ones? Anybody knows?
Am I the first one in histroy to experience this? I don't think so
Some info:
Code: | $ equery u installkernel
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for sys-kernel/installkernel-25:
U I
- - dracut : Generate an initrd or UKI on each kernel installation
+ + grub : Re-generate grub.cfg on each kernel installation, used grub.cfg is overridable with GRUB_CFG env var
- - refind : Install a Gentoo icon for rEFInd alongside the (unified) kernel image, used icon is overridable with REFIND_ICON env var
+ + systemd : Use systemd's kernel-install to install kernels, overridable with SYSTEMD_KERNEL_INSTALL env var
- - systemd-boot : Use systemd-boot's native layout by default
- - uki : Install UKIs to ESP/EFI/Linux for EFI stub booting and/or bootloaders with support for auto-discovering UKIs
- - ukify : Build an UKI with systemd's ukify on each kernel installation
$ eix -I sys-boot/grub
[I] sys-boot/grub
Available versions: (2) 2.06-r9(2/2.06-r9)^t 2.12-r2(2/2.12-r2)^tu **9999(2/9999)*l^tu
{device-mapper doc efiemu +fonts libzfs mount nls sdl test +themes truetype verify-sig GRUB_PLATFORMS="coreboot efi-32 efi-64 emu ieee1275 loongson multiboot pc qemu qemu-mips uboot xen xen-32 xen-pvh"}
Installed versions: 2.12-r2(2/2.12-r2)^t(12:48:53 12/03/24)(fonts mount nls sdl themes truetype -device-mapper -doc -efiemu -libzfs -test -verify-sig GRUB_PLATFORMS="efi-64 pc -coreboot -efi-32 -emu -ieee1275 -loongson -multiboot -qemu -qemu-mips -uboot -xen -xen-32 -xen-pvh")
Homepage: https://www.gnu.org/software/grub/
Description: GNU GRUB boot loader |
|
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1569 Location: South America
|
Posted: Tue Mar 12, 2024 9:39 pm Post subject: |
|
|
urcindalo wrote: | Code: | $ equery u installkernel
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for sys-kernel/installkernel-25:
U I
...
+ + systemd : Use systemd's kernel-install to install kernels, overridable with SYSTEMD_KERNEL_INSTALL env var
...
|
|
You are using (without knowing) systemd's kernel-install. Presumably because you are on a systemd profile. If you want the old behaviour you have to tell installkernel:
Code: | # make SYSTEMD_KERNEL_INSTALL=0 install |
Or set SYSTEMD_KERNEL_INSTALL=0 in the environment using your login shell's startup files.
Or reinstall sys-kernel/installkernel with the systemd USE flag unset. _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
urcindalo l33t
Joined: 08 Feb 2005 Posts: 623 Location: Almeria, Spain
|
Posted: Wed Mar 13, 2024 8:49 am Post subject: |
|
|
GDH-gentoo wrote: |
You are using (without knowing) systemd's kernel-install. Presumably because you are on a systemd profile. If you want the old behaviour you have to tell installkernel:
Code: | # make SYSTEMD_KERNEL_INSTALL=0 install |
Or set SYSTEMD_KERNEL_INSTALL=0 in the environment using your login shell's startup files.
Or reinstall sys-kernel/installkernel with the systemd USE flag unset. |
Yes, I'm using the "default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr (stable)" profile.
Your suggestion did the trick. I just tried the first option and it worked like a charm.
Thanks very much! |
|
Back to top |
|
|
|