1
0
Fork 0
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:
David Oberhollenzer 2018-04-20 13:12:57 +02:00
parent 2df0ef2945
commit b7de7a0ccb

View file

@ -30,6 +30,10 @@ build() {
echo $OS_RELEASE > $PKGBUILDDIR/etc/$fname 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 # setup root home directory
mkdir -p "$PKGBUILDDIR/cfg/preserve/usr" mkdir -p "$PKGBUILDDIR/cfg/preserve/usr"
@ -50,4 +54,8 @@ deploy() {
mksquashfs "$PKGBUILDDIR" "$DEPLOY/rootfs.img" -comp xz \ mksquashfs "$PKGBUILDDIR" "$DEPLOY/rootfs.img" -comp xz \
-all-root -no-progress -no-xattrs -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 {} \;
} }