]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Drop 5.11 check
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 13 Feb 2025 20:37:30 +0000 (21:37 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 14 Feb 2025 13:45:27 +0000 (14:45 +0100)
We already depend on 5.12 for mount_setattr(), so let's drop this
check for 5.11 now.

mkosi/config.py

index 120292d4af3ff4b9a6d42d91ae5a348098b0469f..50b4b1bdcc92933c598f48aec577061bdd3f05e8 100644 (file)
@@ -4774,15 +4774,6 @@ def load_config(config: argparse.Namespace) -> Config:
     if config.incremental and not config.cache_dir:
         die("A cache directory must be configured in order to use --incremental")
 
-    # For unprivileged builds we need the userxattr OverlayFS mount option, which is only available
-    # in Linux v5.11 and later.
-    if (
-        (config.build_scripts or config.base_trees)
-        and GenericVersion(platform.release()) < GenericVersion("5.11")
-        and os.geteuid() != 0
-    ):
-        die("This unprivileged build configuration requires at least Linux v5.11")
-
     return Config.from_namespace(config)