From 8f4139987eb2122f661f905c1d9f02c1ca916a02 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 10 Sep 2010 15:47:06 +0000 Subject: [PATCH] * Regex listing the system generations was selecting the number from only the first generation in the list. (From Karn Kallio.) svn path=/nixos/trunk/; revision=23728 --- modules/installer/grub/grub-menu-builder.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/installer/grub/grub-menu-builder.sh b/modules/installer/grub/grub-menu-builder.sh index 1b6c6ce5f5d..27ad6860403 100644 --- a/modules/installer/grub/grub-menu-builder.sh +++ b/modules/installer/grub/grub-menu-builder.sh @@ -244,7 +244,7 @@ done for generation in $( (cd /nix/var/nix/profiles && echo system-*-link) \ - | sed 's/system-\([0-9]\+\)-link/\1/' \ + | sed 's/system-\([0-9]\+\)-link/\1/g' \ | sort -n -r); do link=/nix/var/nix/profiles/system-$generation-link date=$(stat --printf="%y\n" $link | sed 's/\..*//')