mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
cleanup: remove w flag from all read only files
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
2df0ef2945
commit
b7de7a0ccb
1 changed files with 8 additions and 0 deletions
|
@ -30,6 +30,10 @@ build() {
|
|||
|
||||
echo $OS_RELEASE > $PKGBUILDDIR/etc/$fname
|
||||
|
||||
# remove write flag from all static files/directories
|
||||
find $PKGBUILDDIR/{bin,lib,share} -type f -exec chmod a-w {} \;
|
||||
find $PKGBUILDDIR/{bin,lib,share} -type d -exec chmod a-w {} \;
|
||||
|
||||
# setup root home directory
|
||||
mkdir -p "$PKGBUILDDIR/cfg/preserve/usr"
|
||||
|
||||
|
@ -50,4 +54,8 @@ deploy() {
|
|||
|
||||
mksquashfs "$PKGBUILDDIR" "$DEPLOY/rootfs.img" -comp xz \
|
||||
-all-root -no-progress -no-xattrs
|
||||
|
||||
# add write flag again, so we can remove the build directory
|
||||
find $PKGBUILDDIR/{bin,lib,share} -type d -exec chmod u+w {} \;
|
||||
find $PKGBUILDDIR/{bin,lib,share} -type f -exec chmod u+w {} \;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue