summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2010-03-02 23:39:33 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2010-03-02 23:39:33 +0100
commite478d001f43a61ba27650e1229baf0e8850a0835 (patch)
tree83c6e2844a2cb615beb4b92f4f86c5ae2f0c9408
parent435814e98d6a5bbc47fca36cf9b912139b5bd8e0 (diff)
fix sort order
Since recently - http://www.archlinux.org/news/476/ - we have to set LC_COLLATE ourself. without this setting, sorting order was inconsistent. One of the symptons of this was filesystems getting mounted in the wrong order ( first /home, /boot and then /), causing obvious breakages and weird output in df. With this fix, first / gets mounted, then /boot and /home. We use sorting at multiple places within AIF and i believe they all expect LC_COLLATE=C
-rwxr-xr-xsrc/aif.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/aif.sh b/src/aif.sh
index 8920b37..45399ae 100755
--- a/src/aif.sh
+++ b/src/aif.sh
@@ -11,6 +11,7 @@ LOG_DIR=/var/log/aif
LOGFILE=$LOG_DIR/aif.log
DISCLAIMER="Note that despite our careful coding and proper testing there may still be bugs in this software.\n
When you are doing this installation on a system where some data must be preserved, we suggest you make a backup first"
+export LC_COLLATE=C # for consistent sorting behavior
###### Early bootstrap ######