3
0
Fork 0
forked from mirrors/nixpkgs

* Include the kernel version in the description for

each Grub menu entry.  (Ideally, we would show
  what changed between each entry, e.g. "KDE upgraded to 4.1",
  but that would be hard to do generically.)

svn path=/nixos/trunk/; revision=13146
This commit is contained in:
Eelco Dolstra 2008-10-29 13:24:00 +00:00
parent d146d9945b
commit 3a9700b226

View file

@ -142,7 +142,8 @@ for generation in $(
echo $generation
link=/nix/var/nix/profiles/system-$generation-link
date=$(stat --printf="%y\n" $link | sed 's/\..*//')
addEntry "NixOS - Configuration $generation ($date)" $link "$generation ($date)"
kernelVersion=$(cd $(dirname $(readlink -f $link/kernel))/lib/modules && echo *)
addEntry "NixOS - Configuration $generation ($date - $kernelVersion)" $link "$generation ($date)"
done