kumquat-buildroot/fs
Mathieu Mirmont 38c4f6b807 fs/common.mk: use find instead of shell glob patterns
Different shells can have different behaviours when it comes to globbing
patterns. The dash shell (/bin/sh) on Debian testing switched to a
different fnmatch/glob implementation that results in this new behaviour:

Using bash:
    $ mkdir /tmp/foo
    $ echo /tmp/foo/.[^.]*
    /tmp/foo/.[^.]*

Using dash:
    $ mkdir /tmp/foo
    $ echo /tmp/foo/.[^.]*
    /tmp/foo/..

The current FAKEROOT script uses this shell glob pattern which now fails
on recent Debian testing systems:

    rm: refusing to remove '.' or '..' directory: skipping '/build/buildroot-fs/cpio/target/run/..'
    rm: refusing to remove '.' or '..' directory: skipping '/build/buildroot-fs/cpio/target/tmp/..'

Additionally, the glob will miss files which have at least two leading
dots, like ..foo ...bar or ......buz  (highly improbable, but still).

It seems safer to use `find | xargs rm` here instead of relying on shell
globbing patterns.

Signed-off-by: Mathieu Mirmont <mat@parad0x.org>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2022-03-12 17:45:21 +01:00
..
axfs
btrfs
cloop
cpio fs/cpio: add zstd as compression option 2021-01-16 22:45:34 +01:00
cramfs
erofs fs/erofs: add big pcluster support 2021-07-19 22:34:21 +02:00
ext2 fs/ext2: fir (again) namespace for variables 2021-10-13 18:01:34 +02:00
f2fs
initramfs
iso9660 fs/iso9660: add support for hybrid image using Grub2 on BIOS and EFI 2021-09-29 22:58:57 +02:00
jffs2 fs/jffs2: copy xattrs 2020-10-08 21:48:03 +02:00
oci fs: new OCI filesystem type 2021-09-11 14:52:41 +02:00
romfs
squashfs fs: squashfs: Add config option to pass nopad parameter to mksquashfs 2020-06-17 23:01:23 +02:00
tar
ubi fs/ubi: expose BINARIES_DIR to ubinize.cfg 2020-06-06 13:43:43 +02:00
ubifs
yaffs2
common.mk fs/common.mk: use find instead of shell glob patterns 2022-03-12 17:45:21 +01:00
Config.in fs: new OCI filesystem type 2021-09-11 14:52:41 +02:00