summaryrefslogtreecommitdiffstats
path: root/recipes/product-name.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/product-name.sh')
-rwxr-xr-xrecipes/product-name.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes/product-name.sh b/recipes/product-name.sh
new file mode 100755
index 00000000..7dcc7da1
--- /dev/null
+++ b/recipes/product-name.sh
@@ -0,0 +1,6 @@
+#!/bin/sh -
+
+eval "$(guestfish --ro -a "$1" --i --listen)"
+root="$(guestfish --remote inspect-get-roots)"
+guestfish --remote inspect-get-product-name "$root"
+guestfish --remote exit