From 00e39e13d079574a31c9c003f4daba8a94c2c518 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Mon, 14 Jul 2025 11:57:04 +1000 Subject: [PATCH] Force people to include a mirror --- rootfs.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootfs.py b/rootfs.py index a9802a92..48ede4a4 100755 --- a/rootfs.py +++ b/rootfs.py @@ -177,6 +177,10 @@ def main(): else: args.swap = 0 + # Validate mirrors + if not args.mirrors: + raise ValueError("At least one mirror must be provided.") + # Set constant umask os.umask(0o022)