* Put the date of each configuration in the Grub menu.

svn path=/nixu/trunk/; revision=7106
This commit is contained in:
Eelco Dolstra 2006-11-24 00:00:32 +00:00
parent 34acdf1f22
commit 1fb01e46c5
1 changed files with 4 additions and 2 deletions

View File

@ -42,8 +42,10 @@ for generation in $(
| sed 's/system-\([0-9]\+\)-link/\1/' \
| sort -n -r); do
echo $generation
addEntry "NixOS - Configuration $generation" \
/nix/var/nix/profiles/system-$generation-link
link=/nix/var/nix/profiles/system-$generation-link
date=$(stat --printf="%y\n" $link | sed 's/\..*//')
addEntry "NixOS - Configuration $generation ($date)" $link
done