From 5e4232d389d15d5db6952de7dadab1db427ae8d3 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Sun, 26 Dec 2021 12:36:12 +0100 Subject: util/liveiso: Merge build scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Merge build scripts to `build.sh`. The new one takes the desired NixOS config as an argument. Example: $ build.sh console.nix Change-Id: I49360a5c57954a205c697a4ae07361779db2aa83 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/60372 Reviewed-by: Michael Niewöhner Tested-by: build bot (Jenkins) --- util/liveiso/build.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 util/liveiso/build.sh (limited to 'util/liveiso/build.sh') diff --git a/util/liveiso/build.sh b/util/liveiso/build.sh new file mode 100755 index 0000000000..ee63bc538a --- /dev/null +++ b/util/liveiso/build.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env sh + +config=$1 + +if [ -z "$config" ] || [ ! -f "$config" ]; then + echo "Usage: $0 " + echo "No config given. Exiting." + exit 1 +fi + +nix-build '' \ + -A config.system.build.isoImage \ + -I nixos-config=$config -- cgit v1.2.3