Generation name in boot screen contains twice NixOS and kernel version #99

Closed
opened 2023-02-08 01:46:27 +00:00 by SuperSandro2000 · 1 comment
SuperSandro2000 commented 2023-02-08 01:46:27 +00:00 (Migrated from github.com)

An systemd boot entry looks like: NixOS (Generation 85 NixOS 23.05, Linux Kernel 6.1.9, Built on 2023-02-08)
a lanzaboote one is a bit longer and contains redundant information: NixOS Stoat 23.05 (Linux 6.1.9) (Generation 85 NixOS 23.05), Linux Kernel 6.1.9, Built on 1970-01-01)

I don't mind the release name (Stoat), that is a nice feature we should maybe add to systemd-boot in nixos, too but the first Linux version can go. Maybe the first release number but not sure on that one.

An systemd boot entry looks like: ``NixOS (Generation 85 NixOS 23.05, Linux Kernel 6.1.9, Built on 2023-02-08)`` a lanzaboote one is a bit longer and contains redundant information: ``NixOS Stoat 23.05 (Linux 6.1.9) (Generation 85 NixOS 23.05), Linux Kernel 6.1.9, Built on 1970-01-01)`` I don't mind the release name (Stoat), that is a nice feature we should maybe add to systemd-boot in nixos, too but the first Linux version can go. Maybe the first release number but not sure on that one.
nikstur commented 2023-02-08 15:22:11 +00:00 (Migrated from github.com)

This is because the first part of the name (NixOS Stoat 23.05 (Linux 6.1.9)) comes from the bootspec label. I guess we can simplify the version part ((Generation 85 NixOS 23.05), Linux Kernel 6.1.9, Built on 1970-01-01))---which we fully control---to only display the actual generation number. However, this might mess up the ordering of the entries.

Alternatively we can adjust the upstream bootspec label field or just ignore it for now and go back to just the NixOS label.

That Built on currently always displays UNIX epoch 0 is because we currently read the timestamp of the derivation and not of the link. See #95

This is because the first part of the name (`NixOS Stoat 23.05 (Linux 6.1.9)`) comes from the bootspec label. I guess we can simplify the version part (`(Generation 85 NixOS 23.05), Linux Kernel 6.1.9, Built on 1970-01-01)`)---which we fully control---to only display the actual generation number. However, this might mess up the ordering of the entries. Alternatively we can adjust the upstream bootspec label field or just ignore it for now and go back to just the `NixOS` label. That `Built on` currently always displays UNIX epoch 0 is because we currently read the timestamp of the derivation and not of the link. See #95
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: raito/lanzaboote#99
No description provided.