summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2008-03-15 23:27:58 +0100
committerThomas Bächler <thomas@archlinux.org>2008-03-15 23:27:58 +0100
commit26ac10c5a63494aa939e8113e9d54c102acde5bd (patch)
tree34f5a66c31a854b0618765b69e9cd48e9a6c2a49
parent3add4c0cf67f48eea2138739528586f358aad567 (diff)
downloadmkinitcpio-26ac10c5a63494aa939e8113e9d54c102acde5bd.tar.gz
mkinitcpio-26ac10c5a63494aa939e8113e9d54c102acde5bd.tar.xz
Remove duplicate files from the filelist, gen_init_cpio actually adds them to the image twice0.5.18pre1
-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