Commit 24e04b642aa183c1e30d196e9f4524268feb422b

Authored by Silvan Calarco
1 parent 191cf6394d
Exists in master

Release 'cp -a' occurencies with 'cp -a --no-preserve=ownership' to prevent file…

… owners from being passed from build platform to target

Showing 4 changed files with 10 additions and 10 deletions Side-by-side Diff

... ... @@ -154,15 +154,15 @@
154 154  
155 155 # copy static files for target
156 156 [ -e $TARGETDIR/root ] &&
157   - cp -a $TARGETDIR/root/* $MOUNTDIR/
  157 + cp -a --no-preserve=ownership $TARGETDIR/root/* $MOUNTDIR/
158 158  
159 159 # copy static files for specific platform
160 160 [ -e $TARGETDIR/platforms/$PLATFORM/root -a "`ls $TARGETDIR/platforms/$PLATFORM/root/* 2>/dev/null`" ] &&
161   - cp -a $TARGETDIR/platforms/$PLATFORM/root/* $MOUNTDIR/
  161 + cp -a --no-preserve=ownership $TARGETDIR/platforms/$PLATFORM/root/* $MOUNTDIR/
162 162  
163 163 # copy localized static files for specific platform
164 164 [ "$LANGUAGE" -a -e $TARGETDIR/platforms/$PLATFORM/root-$LANGUAGE ] &&
165   - cp -a $TARGETDIR/platforms/$PLATFORM/root-$LANGUAGE/* $MOUNTDIR/
  165 + cp -a --no-preserve=ownership $TARGETDIR/platforms/$PLATFORM/root-$LANGUAGE/* $MOUNTDIR/
166 166  
167 167 produce_media
platforms/bootusb/post.inc.sh
... ... @@ -76,18 +76,18 @@
76 76 mv $MOUNTDIR/boot/memtest.bin $MOUNTDIR/boot/memtest
77 77  
78 78 # copy /boot directory to final root
79   -cp -a $MOUNTDIR/boot $MOUNTDIR2
  79 +cp -a --no-preserve=ownership $MOUNTDIR/boot $MOUNTDIR2
80 80  
81 81 # copy syslinux addons to final root /boot dir
82 82 cp $MOUNTDIR/usr/share/syslinux/vesamenu.c32 $MOUNTDIR2/boot/
83 83  
84 84 # copy static files for specific platform
85 85 [ -e $TARGETDIR/platforms/$PLATFORM/root ] &&
86   - cp -a $TARGETDIR/platforms/$PLATFORM/root/* $MOUNTDIR2/
  86 + cp -a --no-preserve=ownership $TARGETDIR/platforms/$PLATFORM/root/* $MOUNTDIR2/
87 87  
88 88 # copy localized static files for specific platform
89 89 [ "$LANGUAGE" -a -e $TARGETDIR/platforms/$PLATFORM/root-$LANGUAGE ] &&
90   - cp -a $TARGETDIR/platforms/$PLATFORM/root-$LANGUAGE/* $MOUNTDIR2/
  90 + cp -a --no-preserve=ownership $TARGETDIR/platforms/$PLATFORM/root-$LANGUAGE/* $MOUNTDIR2/
91 91  
92 92 ## add buildinfo
93 93 #buildinfo="`cat $MOUNTDIR/etc/openmamba-release` [$PRODUCT_NAME build:`date +%c`]"
platforms/livecd/post.inc.sh
... ... @@ -112,11 +112,11 @@
112 112  
113 113 # copy static files for specific platform
114 114 [ -e $TARGETDIR/platforms/$PLATFORM/root ] &&
115   - cp -a $TARGETDIR/platforms/$PLATFORM/root/* $MOUNTDIR2/
  115 + cp -a --no-preserve=ownership $TARGETDIR/platforms/$PLATFORM/root/* $MOUNTDIR2/
116 116  
117 117 # copy localized static files for specific platform
118 118 [ "$LANGUAGE" -a -e $TARGETDIR/platforms/$PLATFORM/root-$LANGUAGE ] &&
119   - cp -a $TARGETDIR/platforms/$PLATFORM/root-$LANGUAGE/* $MOUNTDIR2/
  119 + cp -a --no-preserve=ownership $TARGETDIR/platforms/$PLATFORM/root-$LANGUAGE/* $MOUNTDIR2/
120 120  
121 121 # add buildinfo
122 122 buildinfo="`cat $MOUNTDIR/etc/openmamba-release` [$PRODUCT_NAME build:`date +%c`]"
platforms/livedvd/post.inc.sh
... ... @@ -112,11 +112,11 @@
112 112  
113 113 # copy static files for specific platform
114 114 [ -e $TARGETDIR/platforms/$PLATFORM/root ] &&
115   - cp -a $TARGETDIR/platforms/$PLATFORM/root/* $MOUNTDIR2/
  115 + cp -a --no-preserve=ownership $TARGETDIR/platforms/$PLATFORM/root/* $MOUNTDIR2/
116 116  
117 117 # copy localized static files for specific platform
118 118 [ "$LANGUAGE" -a -e $TARGETDIR/platforms/$PLATFORM/root-$LANGUAGE ] &&
119   - cp -a $TARGETDIR/platforms/$PLATFORM/root-$LANGUAGE/* $MOUNTDIR2/
  119 + cp -a --no-preserve=ownership $TARGETDIR/platforms/$PLATFORM/root-$LANGUAGE/* $MOUNTDIR2/
120 120  
121 121 # add buildinfo
122 122 buildinfo="`cat $MOUNTDIR/etc/openmamba-release` [$PRODUCT_NAME build:`date +%c`]"