Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Merge pull request #39 from daniel-pittman/feature/master/better-iso-…


Better iso file metadata
  • Loading branch information...
commit c0630d037f375fa3ef810dd6845b8abeeec82cb4 2 parents 19a11aa + 2a4b7b1
@daniel-pittman daniel-pittman authored
3 
@@ -456,6 +456,9 @@ cd tmp-build-dir
echo "creating razor microkernel overlay tarball"
tar zc${TAR_V}f build_dir/dependencies/razor-microkernel-overlay.tar.gz usr etc opt tmp root
+# ensure the copyright and license content is added to the image
+cp COPYING LICENSE tmp-build-dir/build_dir/
# and create a gzipped tarfile containing the dependencies folder and the set
# of scripts that are used to build the ISO (so that all the user has to do is
# copy over this one file to a directory somewhere and unpack it and they will
3  iso-build-files/
@@ -58,3 +58,6 @@ cd ..
mkdir newiso
cp -rp original-iso-files/boot newiso
sed -i "s/timeout 300/timeout 100/" newiso/boot/isolinux/isolinux.cfg
+# Install the copyright and license files in the new ISO image
21 iso-build-files/
@@ -89,9 +89,22 @@ cp -p core.gz newiso/boot/
# build the YAML file needed for use in Razor, place it into the root of the
# ISO filesystem
./build_iso_yaml.rb newiso ${ISO_VERSION} boot/vmlinuz boot/core.gz
+# since this is multi-line, easier to build it here
+Puppet Labs <>
+Built on [$(uname -a)]
+Built at [$(date +'%Y-%m-%d %H:%M:%S')]
+Built by [$(whoami)@$(hostname -f)]
# finally, build the ISO itself from the newiso directory
-"${GENISO}" -quiet -l -J -R -V TC-custom \
- -no-emul-boot -boot-load-size 4 -boot-info-table \
- -b boot/isolinux/isolinux.bin \
- -c boot/isolinux/ \
+"${GENISO}" -quiet -l -J -R \
+ -no-emul-boot -boot-load-size 4 -boot-info-table \
+ -b boot/isolinux/isolinux.bin \
+ -c boot/isolinux/ \
+ -A 'Razor Microkernel' -sysid 'LINUX' \
+ -p "${preparer:0:128}" \
+ -V "Razor MK ${ISO_VERSION:0:22}" \
+ -copyright 'LICENSE' \
-o "${ISO_NAME}" newiso

0 comments on commit c0630d0

Please sign in to comment.
Something went wrong with that request. Please try again.