Skip to content

Commit

Permalink
buildcore_checkinstall: overlayfs whiteout files are charachter devic…
Browse files Browse the repository at this point in the history
…e files with permissions of 000. Exclude them from the packages that get built, as file deletions should not be packaged like that. File deletions in checkinstall may be workarounds to avoid overwrites, so the answer is for the file to be missing from the built package. Especially since dpkg doesn''t understand overlayfs whiteout files

git-svn-id: https://svn.code.sf.net/p/rebeccablackos/code@7856 b52b6941-3400-464c-9f42-43200397181c
  • Loading branch information
nerdopolis committed Dec 12, 2022
1 parent e4ed608 commit 274412c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rebeccablackos_files/usr/libexec/build_core/checkinstall
Original file line number Diff line number Diff line change
Expand Up @@ -2173,6 +2173,11 @@ if [ $INSTALL_FAILED -gt 0 ]; then
then
#Run the autogenerated script that copies the files out of the upperdirs to the TRANSLROOT so the TRANSLROOT files end up in the package
"${TMP_DIR}/TRANSLFOLDERLIST"
#Remove any files that might be an overlayfs whiteout file. They have permissions of 000, and are character files
find "${TRANSLROOT}" -type c -perm 0000 | while read OVERLAYWHITEOUT
do
rm "$OVERLAYWHITEOUT"
done
rsync -a "${TRANSLROOT}"/* "${BUILD_DIR}"
else
( cat /${TMP_DIR}/newfiles | while read -r i; do
Expand Down

0 comments on commit 274412c

Please sign in to comment.