Re,

On 04/03/2015 10:24 AM, Martin Steigerwald wrote:
>> (4.20.0-rc6 wins against 4.20.0 which is expected since -rc6 could also
>> be a usual CONFIG_LOCALVERSION string)
> 
> Hmmm, but when I have a 4.20.0 final release compiled needrestart would 
> treat it as older? That doesn´t make much sense for me.
> 
> I think ideally it would use the same ordering as the boot manager. And 
> grub2 definately puts 4.20.0 about 4.20.0-rc6.

thanks for pointing me on grub's regex-hack in
/usr/share/grub/grub-mkconfig_lib. I've ported the regex to needrestart
and the kernel ordering should now be the same:

$VAR1 = [
          '4.20.0',
          '4.20.0-rc6-tp520-btrfs-trim+',
          '4.19.0-foo-tp540-btrfs-trim+',
          '4.19.0-foo-rc6-tp544-btrfs-trim+',
          '4.19.0',
          '4.19.0-rc6-tp520-btrfs-trim+',
          '4.10',
          '4.9',
          '4.4.0-foo',
          '4.4.0',
          '4.0.0',
          '4.0.0-rc6-tp520-btrfs-trim+',
          '4.0',
          '3.19.3-a7-tp521-btrfs-trim+',
          '3.19.3',
          '3.19.3-rc6-tp521-btrfs-trim+',
          '3.19.3-rc6-tp520-btrfs-trim+',
          '3.19.0-rc7-tp520+',
          '3.10',
          '3.9',
          '3.3',
          '2.6',
          ''
        ];


Thanks & HTH
Thomas

-- 

    ::  WWW:                         http://fiasko-nw.net/~thomas/  ::
   :::  Jabber:                   xmpp:tho...@jabber.fiasko-nw.net  :::
    ::  flickr:              http://www.flickr.com/photos/laugufe/  ::


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to