diff --git a/src/shifter_core.c b/src/shifter_core.c index 364daf64..594ccd06 100644 --- a/src/shifter_core.c +++ b/src/shifter_core.c @@ -40,6 +40,7 @@ #include #include #include +#include #include #include @@ -1428,7 +1429,11 @@ int loopMount(const char *imagePath, const char *loopMountPath, ImageFormat form fprintf(stderr, "ERROR: no apparent support for squashfs!"); goto _loopMount_unclean; } +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0) + useAutoclear = 0; +#else useAutoclear = 1; +#endif ready = 1; imgType = "squashfs"; } else if (format == FORMAT_XFS) {