scripts/gen_image_generic.sh: generate reproducible EFI filesystem
[openwrt/staging/dedeckeh.git] / scripts / ipkg-build
index c112270a2bc6b2b18eeca9f7659db7b218a2b946..19df621048a62c554b691508747983b917529c8e 100755 (executable)
@@ -58,7 +58,8 @@ pkg_appears_sane() {
 
                rm "$CONTROL"/conffiles
                if [ -f "$CONTROL"/conffiles.resolved ]; then
-                       mv "$CONTROL"/conffiles.resolved "$CONTROL"/conffiles
+                       LC_ALL=C sort -o "$CONTROL"/conffiles "$CONTROL"/conffiles.resolved
+                       rm "$CONTROL"/conffiles.resolved
                        chmod 0644 "$CONTROL"/conffiles
                fi
        fi