summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkinitcpio2
1 files changed, 2 insertions, 0 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 159e135..31c435e 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -271,6 +271,8 @@ fi
status=0
if [ -n "$GENIMG" ]; then
echo -n ":: Generating image '${GENIMG}'..."
+ sort -u ${FILELIST} > ${FILELIST}.sorted
+ mv ${FILELIST}.sorted ${FILELIST}
if ! /sbin/gen_init_cpio ${FILELIST} | gzip -9 > "${GENIMG}"; then
echo "FAILED"
status=1