diff options
author | Jon Clausen <jac@nordu.net> | 2018-08-02 08:52:24 +0200 |
---|---|---|
committer | Jon Clausen <jac@nordu.net> | 2018-08-02 08:52:24 +0200 |
commit | 02a92a4c737f3f3d7f5e6d18dd7f8f831a469ce6 (patch) | |
tree | 019279ef4ed3c8a8e97dfeddd6d8daca26f312ab /create-boot-floppy | |
parent | 60f09074b313c94b8b1f2ebdaa4558920e10620b (diff) |
record the generator commandline in the generated files
Diffstat (limited to 'create-boot-floppy')
-rwxr-xr-x | create-boot-floppy | 8 |
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 ### |