Re: [gentoo-user] can genkernel install files with different names?

2019-10-23 Thread Peter Humphrey
On Wednesday, 23 October 2019 17:21:50 BST Neil Bothwick wrote:
> On Wed, 23 Oct 2019 15:18:45 +0100, Peter Humphrey wrote:
> > > Yes. It also updates symlinks to all three if you are already using
> > > symlinks.
> > 
> > Make install doesn't use symlinks here. This is a UEFI box with /boot
> > formatted FAT32, so the three files are copied, not linked to.
> 
> "if you are already using symlinks". It only updates the symlinks if
> they already exist, it won't try to create them from scratch, even if the
> filesystem supports it.

Ah. I missed that. These have been a long four days of wrestling, once again, 
with UEFI booting. A topic for another day.

-- 
Regards,
Peter.






Re: [gentoo-user] can genkernel install files with different names?

2019-10-23 Thread Neil Bothwick
On Wed, 23 Oct 2019 15:18:45 +0100, Peter Humphrey wrote:

> > Yes. It also updates symlinks to all three if you are already using
> > symlinks.  
> 
> Make install doesn't use symlinks here. This is a UEFI box with /boot 
> formatted FAT32, so the three files are copied, not linked to.

"if you are already using symlinks". It only updates the symlinks if
they already exist, it won't try to create them from scratch, even if the
filesystem supports it.


-- 
Neil Bothwick

Adolescence, n.: The stage between puberty and adultery.


pgpq51lmLN7Vp.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] can genkernel install files with different names?

2019-10-23 Thread Peter Humphrey
On Tuesday, 22 October 2019 21:34:53 BST Neil Bothwick wrote:
> On Tue, 22 Oct 2019 20:35:27 +0100, Mick wrote:
> > > If I trust the makefile to build the entire operating system kernel,
> > > build all the modules it needs and copy all those modules to the
> > > correct locations, I don't see why I can't let it copy one more file
> > > to /boot.
> > 
> > I've forgotten, does 'make ... install' also copy the .config and
> > System.map files to boot, too?
> 
> Yes. It also updates symlinks to all three if you are already using
> symlinks.

Make install doesn't use symlinks here. This is a UEFI box with /boot 
formatted FAT32, so the three files are copied, not linked to.

-- 
Regards,
Peter.






Re: [gentoo-user] can genkernel install files with different names?

2019-10-22 Thread Mick
On Tuesday, 22 October 2019 21:34:53 BST Neil Bothwick wrote:
> On Tue, 22 Oct 2019 20:35:27 +0100, Mick wrote:
> > > If I trust the makefile to build the entire operating system kernel,
> > > build all the modules it needs and copy all those modules to the
> > > correct locations, I don't see why I can't let it copy one more file
> > > to /boot.
> > 
> > I've forgotten, does 'make ... install' also copy the .config and
> > System.map files to boot, too?
> 
> Yes. It also updates symlinks to all three if you are already using
> symlinks.

Thanks Hartmut and Neil, I might give it another go on an old system running 
GRUB to see if it grows on me.  :-)

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] can genkernel install files with different names?

2019-10-22 Thread Neil Bothwick
On Tue, 22 Oct 2019 20:35:27 +0100, Mick wrote:

> > If I trust the makefile to build the entire operating system kernel,
> > build all the modules it needs and copy all those modules to the
> > correct locations, I don't see why I can't let it copy one more file
> > to /boot.  
> 
> I've forgotten, does 'make ... install' also copy the .config and
> System.map files to boot, too?

Yes. It also updates symlinks to all three if you are already using
symlinks.


-- 
Neil Bothwick

God is real, unless specifically declared integer.


pgppYC_eQ_wfy.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] can genkernel install files with different names?

2019-10-22 Thread Mick
On Tuesday, 22 October 2019 14:42:44 BST Neil Bothwick wrote:
> On Tue, 22 Oct 2019 03:33:24 -0500, Dale wrote:
> > If one of those should stop working or I buy something new and need to
> > add support for it, the new kernel will have a -2 on the end instead of
> > -1.  I'm not sure on the -gentoo one.  Thing is, I can boot the old
> > kernel of that version or even boot a older kernel if needed.  It gives
> > me a lot of booting options.  Maybe someone can figure out a way to make
> > those scripts name kernels that way?? 
> > 
> > I plan to clean older ones out eventually and I use uprecords to pick
> > what kernel are the most stable and pick the latest versions, usually
> > two maybe three, just to be sure I can boot something. I'll also add, I
> > name my config files the same as kernels and also those init thingys I
> > hate so much.  The grub thingy requires the init thingy to have the same
> > names but the configs just make sense.  ;-)
> > 
> > If a script could do it that way, I might even use it.  I've yet to hear
> > of one that does it tho. 
> 
> make install does that, except the kernels are named vmlinuz-* rather
> then kernel-*. The LOCALVERSION settings in the kernel config help. I do
> the whole job with a script that boils down to
> 
> [ -f .config ] || make oldconfig
> make all modules_install install || exit 1
> dracut --some-opts
> grub-mkconfig -o /boot/grub/grub.cfg
> 
> If I trust the makefile to build the entire operating system kernel,
> build all the modules it needs and copy all those modules to the correct
> locations, I don't see why I can't let it copy one more file to /boot.

I've forgotten, does 'make ... install' also copy the .config and System.map 
files to boot, too?
-- 
Regards,

Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] can genkernel install files with different names?

2019-10-22 Thread Dale
Neil Bothwick wrote:
> On Tue, 22 Oct 2019 09:29:01 -0500, Dale wrote:
>
>>> If I trust the makefile to build the entire operating system kernel,
>>> build all the modules it needs and copy all those modules to the
>>> correct locations, I don't see why I can't let it copy one more file
>>> to /boot.
>> Thing is, I already trust what I'm doing to work, as far as the copy
>> process etc.  ;-)  Plus, it's not something I do very often either.  It
>> would be my luck that I'd run that script and it screw up not only the
>> new kernel but my old setup as well. 
> It would be a pretty sad state of affairs if you couldn't trust yourself
> to be able to copy one file to /boot ;-)
>  

Well, giving it the correct name and all can be interesting at times.  I
try to be consistent but I have to also take into account what Grub will
allow.  I think the old Grub would allow you to name the kernel anything
as long as it was the same in the config file. 


>> I have to add, I still like the old grub since I could also add the
>> kernel entry myself, just to know it is done and will work.  This new
>> thing still worries me.
> You can hand-configure GRUB2 too, there are even example files included.
> The main benefit of grub-mkconfig is to binary distros so they can
> automate the process when installing the distro or updating the kernel. 
>

I've tried to figure out Grub2 and find it to be a beast of confusion
and just a beast in general.  Even the config file is complicated.  The
old one, it was simple and I rarely had any issues with it.  I only
switched because it is no longer maintained and I was concerned that it
might stop working for some reason.  If it was maintained, I'd still be
using it. 

>> Don't get me started on that init thingy
> Don't worry, I know better than that! I won't mention HAL either :-)
>
>

Yea, not sure which I hate most.  They both rub me the wrong way. 

Dale

:-)  :-) 



Re: [gentoo-user] can genkernel install files with different names?

2019-10-22 Thread Neil Bothwick
On Tue, 22 Oct 2019 09:29:01 -0500, Dale wrote:

> > If I trust the makefile to build the entire operating system kernel,
> > build all the modules it needs and copy all those modules to the
> > correct locations, I don't see why I can't let it copy one more file
> > to /boot.

> Thing is, I already trust what I'm doing to work, as far as the copy
> process etc.  ;-)  Plus, it's not something I do very often either.  It
> would be my luck that I'd run that script and it screw up not only the
> new kernel but my old setup as well. 

It would be a pretty sad state of affairs if you couldn't trust yourself
to be able to copy one file to /boot ;-)
 
> I have to add, I still like the old grub since I could also add the
> kernel entry myself, just to know it is done and will work.  This new
> thing still worries me.

You can hand-configure GRUB2 too, there are even example files included.
The main benefit of grub-mkconfig is to binary distros so they can
automate the process when installing the distro or updating the kernel. 

> Don't get me started on that init thingy

Don't worry, I know better than that! I won't mention HAL either :-)


-- 
Neil Bothwick

On the other hand, you have different fingers.


pgpROn54QmStc.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] can genkernel install files with different names?

2019-10-22 Thread Dale
Neil Bothwick wrote:
> On Tue, 22 Oct 2019 03:33:24 -0500, Dale wrote:
>
>> If one of those should stop working or I buy something new and need to
>> add support for it, the new kernel will have a -2 on the end instead of
>> -1.  I'm not sure on the -gentoo one.  Thing is, I can boot the old
>> kernel of that version or even boot a older kernel if needed.  It gives
>> me a lot of booting options.  Maybe someone can figure out a way to make
>> those scripts name kernels that way?? 
>>
>> I plan to clean older ones out eventually and I use uprecords to pick
>> what kernel are the most stable and pick the latest versions, usually
>> two maybe three, just to be sure I can boot something. I'll also add, I
>> name my config files the same as kernels and also those init thingys I
>> hate so much.  The grub thingy requires the init thingy to have the same
>> names but the configs just make sense.  ;-)
>>
>> If a script could do it that way, I might even use it.  I've yet to hear
>> of one that does it tho. 
> make install does that, except the kernels are named vmlinuz-* rather
> then kernel-*. The LOCALVERSION settings in the kernel config help. I do
> the whole job with a script that boils down to
>
> [ -f .config ] || make oldconfig
> make all modules_install install || exit 1
> dracut --some-opts
> grub-mkconfig -o /boot/grub/grub.cfg
>
> If I trust the makefile to build the entire operating system kernel,
> build all the modules it needs and copy all those modules to the correct
> locations, I don't see why I can't let it copy one more file to /boot.
>
>


Thing is, I already trust what I'm doing to work, as far as the copy
process etc.  ;-)  Plus, it's not something I do very often either.  It
would be my luck that I'd run that script and it screw up not only the
new kernel but my old setup as well. 

I have to add, I still like the old grub since I could also add the
kernel entry myself, just to know it is done and will work.  This new
thing still worries me.  Don't get me started on that init thingy
either.  I've already had a couple of those to fail somehow.  I still
don't trust those things one bit, not even a tiny bit. 

Dale

:-)  :-) 



Re: [gentoo-user] can genkernel install files with different names?

2019-10-22 Thread Neil Bothwick
On Tue, 22 Oct 2019 03:33:24 -0500, Dale wrote:

> If one of those should stop working or I buy something new and need to
> add support for it, the new kernel will have a -2 on the end instead of
> -1.  I'm not sure on the -gentoo one.  Thing is, I can boot the old
> kernel of that version or even boot a older kernel if needed.  It gives
> me a lot of booting options.  Maybe someone can figure out a way to make
> those scripts name kernels that way?? 
> 
> I plan to clean older ones out eventually and I use uprecords to pick
> what kernel are the most stable and pick the latest versions, usually
> two maybe three, just to be sure I can boot something. I'll also add, I
> name my config files the same as kernels and also those init thingys I
> hate so much.  The grub thingy requires the init thingy to have the same
> names but the configs just make sense.  ;-)
> 
> If a script could do it that way, I might even use it.  I've yet to hear
> of one that does it tho. 

make install does that, except the kernels are named vmlinuz-* rather
then kernel-*. The LOCALVERSION settings in the kernel config help. I do
the whole job with a script that boils down to

[ -f .config ] || make oldconfig
make all modules_install install || exit 1
dracut --some-opts
grub-mkconfig -o /boot/grub/grub.cfg

If I trust the makefile to build the entire operating system kernel,
build all the modules it needs and copy all those modules to the correct
locations, I don't see why I can't let it copy one more file to /boot.


-- 
Neil Bothwick

But there, everything has its drawbacks, as the man said when his
mother-in-law died, and they came down upon him for the funeral expenses.
-- Jerome K. Jerome


pgprZn8Z5KLGR.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] can genkernel install files with different names?

2019-10-22 Thread Neil Bothwick
On Tue, 22 Oct 2019 10:42:14 +0100, Mick wrote:

> > I haven't used the symlink approach for some time. I use a script to
> > generate the entries for GRUB or systemd-boot. As I use a script to
> > build and install the kernel in the first place, there are no extra
> > steps as one script calls the other.  
> 
> I think I'll carry on with my manual kernel copying and naming
> approach.  On modern UEFI machines I run efibootmgr to add/delete
> kernels and do not use a separate boot manager, or initrd images.  So,
> it's not as if I have to automate what is already a rather simpler
> approach to upgrading kernels.

That makes sense for UEFI if you don't use an initrd or want to boot with
different kernel options.


-- 
Neil Bothwick

Windows '96 artificial intelligence: Unable to FORMAT A: Having a go at C:


pgpBlOV05b0hk.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] can genkernel install files with different names?

2019-10-22 Thread Mick
On Tuesday, 22 October 2019 10:09:53 BST Neil Bothwick wrote:
> On 22 October 2019 08:58:01 BST, Mick  wrote:

> >With manual copying/naming of kernels I can overwrite any non-booting
> >kernels
> >with the latest compiled example, without moving links around.  What is
> >the
> >recommended solution to the above problem?
> 
> Be more careful when configuring your kernels ;}

Yes, that would be advisable.  :-)

TBH I have not had a non-booting kernel for some time now, but you never know 
what might bite you at the next turn.  On new machines it could take a few 
kernel rebuilds before I end up with an optimal configuration, but once the 
kernel recipe for a particular system settles I do not as a rule experience 
any major problems.


> I haven't used the symlink approach for some time. I use a script to
> generate the entries for GRUB or systemd-boot. As I use a script to build
> and install the kernel in the first place, there are no extra steps as one
> script calls the other.

I think I'll carry on with my manual kernel copying and naming approach.  On 
modern UEFI machines I run efibootmgr to add/delete kernels and do not use a 
separate boot manager, or initrd images.  So, it's not as if I have to 
automate what is already a rather simpler approach to upgrading kernels.
-- 
Regards,

Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] can genkernel install files with different names?

2019-10-22 Thread Neil Bothwick
On 22 October 2019 08:58:01 BST, Mick  wrote:
>On Tuesday, 22 October 2019 00:44:00 BST Neil Bothwick wrote:
>> On Tue, 22 Oct 2019 00:42:25 +0100, Neil Bothwick wrote:
>> > make install will create symlinks for vmlinuz and vmlinuz.old to
>the
>> > latest and previous kernel, doing much of what you need. You need
>/boot
>> > to be on a filesystem that supports symlinks and ISTR that it only
>> > updates the symlinks if already present but doesn't create them
>from
>> > scratch.
>> 
>> I think you need sys-apps/debianutils installed too.
>
>Last time I used this symlink-ing approach to vmlinuz I came across a
>problem, 
>which I didn't have time to resolve and went back to my manual approach
>of 
>copying kernels into /boot:
>
>I eagerly compile a new kernel.  It is installed/copied into vmlinuz
>and its 
>predecessor which worked fine is copied into vmlimuz.old.  I try to
>boot it 
>and discover I didn't configure it as carefully as I should have done -
>it 
>won't boot.  I boot into vmlinuz.old and reconfigure the kernel, which
>is now 
>installed into vmlinuz and the recently configured and non-booting
>kernel is 
>copied into vmlinuz.old.  Disaster strikes as the newly reconfigured
>kernel 
>won't boot either!  I now have two recently configured and non-booting
>kernels 
>vmlinuz and vmlinuz.old and no other working kernel to boot with.
>
>With manual copying/naming of kernels I can overwrite any non-booting
>kernels 
>with the latest compiled example, without moving links around.  What is
>the 
>recommended solution to the above problem? 

Be more careful when configuring your kernels ;}

I haven't used the symlink approach for some time. I use a script to generate 
the entries for GRUB or systemd-boot. As I use a script to build and install 
the kernel in the first place, there are no extra steps as one script calls the 
other.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] can genkernel install files with different names?

2019-10-22 Thread Dale
Mick wrote:
> On Tuesday, 22 October 2019 00:44:00 BST Neil Bothwick wrote:
>> On Tue, 22 Oct 2019 00:42:25 +0100, Neil Bothwick wrote:
>>> make install will create symlinks for vmlinuz and vmlinuz.old to the
>>> latest and previous kernel, doing much of what you need. You need /boot
>>> to be on a filesystem that supports symlinks and ISTR that it only
>>> updates the symlinks if already present but doesn't create them from
>>> scratch.
>> I think you need sys-apps/debianutils installed too.
> Last time I used this symlink-ing approach to vmlinuz I came across a 
> problem, 
> which I didn't have time to resolve and went back to my manual approach of 
> copying kernels into /boot:
>
> I eagerly compile a new kernel.  It is installed/copied into vmlinuz and its 
> predecessor which worked fine is copied into vmlimuz.old.  I try to boot it 
> and discover I didn't configure it as carefully as I should have done - it 
> won't boot.  I boot into vmlinuz.old and reconfigure the kernel, which is now 
> installed into vmlinuz and the recently configured and non-booting kernel is 
> copied into vmlinuz.old.  Disaster strikes as the newly reconfigured kernel 
> won't boot either!  I now have two recently configured and non-booting 
> kernels 
> vmlinuz and vmlinuz.old and no other working kernel to boot with.
>
> With manual copying/naming of kernels I can overwrite any non-booting kernels 
> with the latest compiled example, without moving links around.  What is the 
> recommended solution to the above problem? 


I'm like you, I copy mine manually.  This is what my kernel names looks
like:


root@fireball / # ls -al /boot/kernel-*
-rw-r--r-- 1 root root 5387680 Feb 27  2015 /boot/kernel-3.18.7-1
-rw-r--r-- 1 root root 6848464 Feb 16  2018 /boot/kernel-4.14.19-gentoo
-rw-r--r-- 1 root root 7061552 Oct 14  2018 /boot/kernel-4.18.12-1
-rw-r--r-- 1 root root 7082032 May 15 05:59 /boot/kernel-4.19.40-1
-rw-r--r-- 1 root root 7110704 Dec 21  2018 /boot/kernel-4.19.8-1
-rw-r--r-- 1 root root 5858496 Jun 17  2016 /boot/kernel-4.5.2-1
-rw-r--r-- 1 root root 6983664 Aug 21  2017 /boot/kernel-4.9.34-1
root@fireball / #


If one of those should stop working or I buy something new and need to
add support for it, the new kernel will have a -2 on the end instead of
-1.  I'm not sure on the -gentoo one.  Thing is, I can boot the old
kernel of that version or even boot a older kernel if needed.  It gives
me a lot of booting options.  Maybe someone can figure out a way to make
those scripts name kernels that way?? 

I plan to clean older ones out eventually and I use uprecords to pick
what kernel are the most stable and pick the latest versions, usually
two maybe three, just to be sure I can boot something. I'll also add, I
name my config files the same as kernels and also those init thingys I
hate so much.  The grub thingy requires the init thingy to have the same
names but the configs just make sense.  ;-)

If a script could do it that way, I might even use it.  I've yet to hear
of one that does it tho. 

Dale

:-)  :-) 



Re: [gentoo-user] can genkernel install files with different names?

2019-10-22 Thread Mick
On Tuesday, 22 October 2019 00:44:00 BST Neil Bothwick wrote:
> On Tue, 22 Oct 2019 00:42:25 +0100, Neil Bothwick wrote:
> > make install will create symlinks for vmlinuz and vmlinuz.old to the
> > latest and previous kernel, doing much of what you need. You need /boot
> > to be on a filesystem that supports symlinks and ISTR that it only
> > updates the symlinks if already present but doesn't create them from
> > scratch.
> 
> I think you need sys-apps/debianutils installed too.

Last time I used this symlink-ing approach to vmlinuz I came across a problem, 
which I didn't have time to resolve and went back to my manual approach of 
copying kernels into /boot:

I eagerly compile a new kernel.  It is installed/copied into vmlinuz and its 
predecessor which worked fine is copied into vmlimuz.old.  I try to boot it 
and discover I didn't configure it as carefully as I should have done - it 
won't boot.  I boot into vmlinuz.old and reconfigure the kernel, which is now 
installed into vmlinuz and the recently configured and non-booting kernel is 
copied into vmlinuz.old.  Disaster strikes as the newly reconfigured kernel 
won't boot either!  I now have two recently configured and non-booting kernels 
vmlinuz and vmlinuz.old and no other working kernel to boot with.

With manual copying/naming of kernels I can overwrite any non-booting kernels 
with the latest compiled example, without moving links around.  What is the 
recommended solution to the above problem? 
-- 
Regards,

Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] can genkernel install files with different names?

2019-10-21 Thread Neil Bothwick
On Tue, 22 Oct 2019 00:42:25 +0100, Neil Bothwick wrote:

> make install will create symlinks for vmlinuz and vmlinuz.old to the
> latest and previous kernel, doing much of what you need. You need /boot
> to be on a filesystem that supports symlinks and ISTR that it only
> updates the symlinks if already present but doesn't create them from
> scratch.

I think you need sys-apps/debianutils installed too.


-- 
Neil Bothwick

Too many clicks spoil the browse.


pgpFYkL0kkMlP.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] can genkernel install files with different names?

2019-10-21 Thread Neil Bothwick
On Mon, 21 Oct 2019 22:54:26 +, Caveman Al Toraboran wrote:

> you are just wrongly assuming that they are mutually
> exclusive...
> 
> seriously, one could have kernels named,
> without versions, as:
> 
> vmlinuz
> vmlinuz-older
> vmlinuz-older2
> .
> .
> .
> vmlinuz-olderN
> 
> this way, new kernel installation, and rotation,
> will be decoupled from the boot loader's configs,
> effectively removing any housekeeping for the
> boot loader.

make install will create symlinks for vmlinuz and vmlinuz.old to the
latest and previous kernel, doing much of what you need. You need /boot
to be on a filesystem that supports symlinks and ISTR that it only
updates the symlinks if already present but doesn't create them from
scratch.


-- 
Neil Bothwick

A journey of a thousand miles begins with a cash advance from Mom.


pgpJ3eM2zE3RO.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] can genkernel install files with different names?

2019-10-21 Thread Caveman Al Toraboran
you are just wrongly assuming that they are mutually
exclusive...

seriously, one could have kernels named,
without versions, as:

vmlinuz
vmlinuz-older
vmlinuz-older2
.
.
.
vmlinuz-olderN

this way, new kernel installation, and rotation,
will be decoupled from the boot loader's configs,
effectively removing any housekeeping for the
boot loader.


rgrds,
cm.

‐‐‐ Original Message ‐‐‐
On Monday, October 21, 2019 7:07 PM, Wols Lists  
wrote:
>
> You just want a nasty recovery job if the update screws up ...
>
> Seriously, I always just add new kernels as the new default option,
> precisely so as I can go back to a working one if things go wrogn ...
>
> Cheers,
> Wol





Re: [gentoo-user] can genkernel install files with different names?

2019-10-21 Thread Wols Lists
On 18/10/19 10:26, Caveman Al Toraboran wrote:
> specifically, i want to install kernel + initramfs without version
> numbers.  this way, i will not need to update my boot loader every time
> i update the kernel.
> 
You just want a nasty recovery job if the update screws up ...

Seriously, I always just add new kernels as the new default option,
precisely so as I can go back to a working one if things go wrogn ...

Cheers,
Wol




Re: [gentoo-user] can genkernel install files with different names?

2019-10-18 Thread Peter Humphrey
On Friday, 18 October 2019 14:02:58 BST Caveman Al Toraboran wrote:
> what one doesn't use grub?

I don't, for one. Oh, except for grub-legacy on an old 32-bit, single-core 
atom box. I won't touch grub-2 for love nor money.

-- 
Regards,
Peter.






Re: [gentoo-user] can genkernel install files with different names?

2019-10-18 Thread Rich Freeman
On Fri, Oct 18, 2019 at 9:02 AM Caveman Al Toraboran
 wrote:
>
> what one doesn't use grub?
>

None that I'm aware of, but I use grub so I haven't gone looking.

Like I said, I used to do it this way and get why, but since doing it
the new grub way has made my life easier than fighting it with some
side benefits, I'm doing it that way.

Now, if you're using a tool that requires manually editing config
files every time make install dumps a version number into the various
filenames, I completely sympathize with wanting to avoid this.

Oh, one thing you might consider is symlinks assuming your bootloader
supports them.  Then genkernel/make/whatever can create fancy
filenames as much as they want, and you can just symlink /boot/vmlinuz
to whatever you want to start up and so on.  I have no idea what
bootloaders support symlinks on what filesystems - I know they tend to
be really simple tools so I wouldn't take this for granted.  It would
be trivial to test - just create a symlink of a kernel in your
existing /boot and copy/paste your existing menu option to add a new
one that references the symlink instead of the existing kernel, and
see if it boots...

-- 
Rich



Re: [gentoo-user] can genkernel install files with different names?

2019-10-18 Thread Caveman Al Toraboran
what one doesn't use grub?

rgrds,
cm.

‐‐‐ Original Message ‐‐‐
On Friday, October 18, 2019 3:36 PM, Rich Freeman  wrote:

> On Fri, Oct 18, 2019 at 6:51 AM Alexander Openkowski
> opn...@googlemail.com wrote:
>
> > I struggle with the naming of genkernel generated kernels for quite a while 
> > now and have written a small wapper script for this purpose...
>
> Somebody else shared the same problem and wrote a fairly complex
> wrapper, and it is installed on most reader's systems already. It is
> called grub-mkconfig. :)
>
> Hey, I get it. I used to do it exactly they way you do. However, the
> kernel's make install, and the default behavior of both dracut and
> genkernel, all use a consistent naming convention that is compatible
> with grub-mkconfig, and I found that it was way easier to join them
> then to try to beat them. As a bonus it is easier to keep a library
> of past kernel versions in my boot menu.
>
> Now, what I could use is a script/tool that will clean up those
> versions using some kind of rotation strategy like:
>
> 1.  Keep the last 5 versions of the current series.
> 2.  Keep the last version of each of the last two longterm series.
> 3.  Keep one version of every stable series between the current and
> the last longterm series.
>
> And this would apply to everything in /boot except config files, and
> to modules as well. Config files outside this range would get moved
> into some archive directory of old configs.
>
> --
> Rich
>





Re: [gentoo-user] can genkernel install files with different names?

2019-10-18 Thread Rich Freeman
On Fri, Oct 18, 2019 at 6:51 AM Alexander Openkowski
 wrote:
>
> I struggle with the naming of genkernel generated kernels for quite a while 
> now and have written a small wapper script for this purpose...
>

Somebody else shared the same problem and wrote a fairly complex
wrapper, and it is installed on most reader's systems already.  It is
called grub-mkconfig.  :)

Hey, I get it.  I used to do it exactly they way you do.  However, the
kernel's make install, and the default behavior of both dracut and
genkernel, all use a consistent naming convention that is compatible
with grub-mkconfig, and I found that it was way easier to join them
then to try to beat them.  As a bonus it is easier to keep a library
of past kernel versions in my boot menu.

Now, what I could use is a script/tool that will clean up those
versions using some kind of rotation strategy like:
1.  Keep the last 5 versions of the current series.
2.  Keep the last version of each of the last two longterm series.
2.  Keep one version of every stable series between the current and
the last longterm series.

And this would apply to everything in /boot except config files, and
to modules as well.  Config files outside this range would get moved
into some archive directory of old configs.

-- 
Rich



Re: [gentoo-user] can genkernel install files with different names?

2019-10-18 Thread Alexander Openkowski
I struggle with the naming of genkernel generated kernels for quite a while
now and have written a small wapper script for this purpose...

On Fri, Oct 18, 2019 at 11:27 AM Caveman Al Toraboran <
toraboracave...@protonmail.com> wrote:

> specifically, i want to install kernel + initramfs without version
> numbers.  this way, i will not need to update my boot loader every time i
> update the kernel.
>
> rgrds,
> cm.
>
>


[gentoo-user] can genkernel install files with different names?

2019-10-18 Thread Caveman Al Toraboran
specifically, i want to install kernel + initramfs without version numbers.  
this way, i will not need to update my boot loader every time i update the 
kernel.

rgrds,
cm.