From e7236907dfe3e9130d532d5e8a7f2b17af13df1c Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Wed, 28 Oct 2026 23:13:09 +0800 Subject: Refactor Debian container script into modular components with configurable paths and documentation. Signed-off-by: Richard Qin --- debian-container/lib/config.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 debian-container/lib/config.sh (limited to 'debian-container/lib/config.sh') diff --git a/debian-container/lib/config.sh b/debian-container/lib/config.sh new file mode 100644 index 0000000..66b1bfe --- /dev/null +++ b/debian-container/lib/config.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-3.0-or-later +# Copyright (C) 2026 by Richard Qin + +# Keep runtime data in the directory from which the tool is invoked for now. +# These variables can be overridden by the environment without changing the +# command interface. +DC_IMAGE=${DEBIAN_IMAGE:-"$PWD/rootfs.ext4"} +DC_ROOT=${DEBIAN_ROOT:-"$PWD/debian-root"} +DC_LOCK_FILE=${DEBIAN_LOCK_FILE:-/run/lock/debian-container.lock} + -- cgit v1.2.3