commit b9c1a1c5c0fe0ad7145893c22e9ca1b4edaad344
Author: Elan Ruusamäe <[email protected]>
Date:   Sat May 16 01:32:05 2015 +0300

    preserve permissions when copying to initrd
    
    initramfs has permissions and timestamps compared to romfs, so preserve
    original file permissions, instead being affected from umask when
    geninitrd was ran

 geninitrd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/geninitrd b/geninitrd
index 6ad6820..bedd738 100755
--- a/geninitrd
+++ b/geninitrd
@@ -505,7 +505,7 @@ inst() {
                mkdir -p $parentDir
        fi
        verbose "+ cp $* DESTDIR$dest"
-       cp -HR "$@" "$DESTDIR$dest"
+       cp -HRp "$@" "$DESTDIR$dest"
 }
 
 inst_d() {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/geninitrd.git/commitdiff/b9c1a1c5c0fe0ad7145893c22e9ca1b4edaad344

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to