summaryrefslogtreecommitdiff
path: root/create-boot-floppy
diff options
context:
space:
mode:
authorJon Clausen <jac@nordu.net>2018-08-02 08:52:24 +0200
committerJon Clausen <jac@nordu.net>2018-08-02 08:52:24 +0200
commit02a92a4c737f3f3d7f5e6d18dd7f8f831a469ce6 (patch)
tree019279ef4ed3c8a8e97dfeddd6d8daca26f312ab /create-boot-floppy
parent60f09074b313c94b8b1f2ebdaa4558920e10620b (diff)
record the generator commandline in the generated files
Diffstat (limited to 'create-boot-floppy')
-rwxr-xr-xcreate-boot-floppy8
1 files changed, 8 insertions, 0 deletions
diff --git a/create-boot-floppy b/create-boot-floppy
index 5c32862..6037a11 100755
--- a/create-boot-floppy
+++ b/create-boot-floppy
@@ -107,6 +107,10 @@ function parse_commadline {
InstCmdLineOpt="$(echo ${2} | sed -e 's/;/ /g')"
shift
;;
+ --gen-cmd)
+ GeneratorCommand="$(echo ${2} | sed -e 's/;:;/ /g')"
+ shift
+ ;;
*)
echo "what do you mean \"$1\"?"
exit 1
@@ -212,6 +216,10 @@ EOF"
sudo sh -c "cat >${WorkDir}/mnt/${Host}.ipxe <<EOF
#!ipxe
+#
+# This file generated with this command:
+# ${GeneratorCommand}
+#
echo ${Host}
ifopen net0
###