On Wed, Dec 2, 2015 at 12:21 PM, Reindl Harald <[email protected]> wrote:
>
>
> Am 02.12.2015 um 21:16 schrieb Andrew Lutomirski:
>>
>> On Wed, Dec 2, 2015 at 11:54 AM, Josh Boyer <[email protected]>
>> wrote:
>>>
>>> That's a matter of preference. If I have a newer kernel version
>>> installed that doesn't actually work, I want the older kernel I _just_
>>> installed to be the default and top entry so my machine boots to
>>> something I can use. This happens often when people try rawhide -rcX
>>> kernels to test something.
>>>
>>> Fixing this might be better served by filing an RFE for grubby to
>>> change the preference order.
>>
>>
>> Or file an RFE for grub2 to have an option to use the file timestamps
>> instead of the version for the sort order
>
>
> breaking news: file timestamps of packages are independent of the install
> time so this can't work - any attributes like timestamp, owner, permision
> are part of the package for good reasons (rkhunter as example compares them
> with the rpm database)
Can you please try to reduce your level of sarcasm on the list?
It's especially irritating when you're simultaneously sarcastic and
factually incorrect:
$ stat /boot/vmlinuz-4.2.6-301.fc23.x86_64
File: ‘/boot/vmlinuz-4.2.6-301.fc23.x86_64’
Size: 5980440 Blocks: 11688 IO Block: 4096 regular file
Device: 10302h/66306d Inode: 13 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Context: system_u:object_r:modules_object_t:s0
Access: 2015-11-20 14:35:27.000000000 -0800
Modify: 2015-11-20 14:35:27.000000000 -0800
Change: 2015-11-29 13:02:59.410471082 -0800
^^^^^^^^^^^^^^^^^^^^^^
Note the ctime
Birth: -
For something more reliable, grub2-mkconfig for similar could do something like:
$ rpm -qf /boot/vmlinuz-4.2.6-301.fc2-queryformat '%{installtime}\n'
with some appropriate provision for packages that don't come from RPM
in the first place.
For human readability:
$ rpm -qf /boot/vmlinuz-4.2.6-301.fc23.x86_64 --queryformat
'%{installtime:date}\n'
Sun 29 Nov 2015 01:01:52 PM PST
Note that this is suspiciously similar to ctime above.
--Andy
--
devel mailing list
[email protected]
http://lists.fedoraproject.org/admin/lists/[email protected]