From: Zbigniew Jędrzejewski-Szmek Date: Sun, 8 Sep 2024 11:02:03 +0000 (+0200) Subject: Add bin/mkosi-initrd and bin/mkosi-sandbox X-Git-Tag: v25~301^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c5b7998a0e6335a527dafc403dfe723e81cb75d;p=thirdparty%2Fmkosi.git Add bin/mkosi-initrd and bin/mkosi-sandbox It is convenient to be able to invoke those two during development too, just like mkosi itself. --- diff --git a/bin/mkosi b/bin/mkosi index a7ab30618..bd43ca820 100755 --- a/bin/mkosi +++ b/bin/mkosi @@ -3,6 +3,7 @@ set -e PYTHONPATH="$(dirname "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")")" export PYTHONPATH +command="$(basename "${BASH_SOURCE[0]//-/.}")" if [ -z "$MKOSI_INTERPRETER" ]; then # Note the check seems to be inverted here because the if branch is executed when the exit status is 0 @@ -17,4 +18,4 @@ if [ -z "$MKOSI_INTERPRETER" ]; then fi fi -exec "$MKOSI_INTERPRETER" -B -m mkosi "$@" +exec "$MKOSI_INTERPRETER" -B -m "$command" "$@" diff --git a/bin/mkosi-initrd b/bin/mkosi-initrd new file mode 120000 index 000000000..b5f44fa8e --- /dev/null +++ b/bin/mkosi-initrd @@ -0,0 +1 @@ +mkosi \ No newline at end of file diff --git a/bin/mkosi-sandbox b/bin/mkosi-sandbox new file mode 120000 index 000000000..b5f44fa8e --- /dev/null +++ b/bin/mkosi-sandbox @@ -0,0 +1 @@ +mkosi \ No newline at end of file