Skip to content

Commit

Permalink
Added isomd5sum to the process
Browse files Browse the repository at this point in the history
  • Loading branch information
lzap committed Jan 4, 2017
1 parent fdf9084 commit 54ccce0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -84,7 +84,7 @@ Building
Install the required packages:

```
$ sudo yum install livecd-tools pykickstart
$ sudo yum install livecd-tools pykickstart isomd5sum
```

To prepare CentOS 7 kickstart do:
Expand Down
2 changes: 1 addition & 1 deletion aux/vagrant-build/build_image.sh
Expand Up @@ -9,7 +9,7 @@ NAME=foreman-discovery-image
# give the VM some time to finish booting and network configuration
ping -c1 8.8.8.8 2>&1 >/dev/null && echo OK || echo FAIL
yum -y install livecd-tools appliance-tools-minimizer \
hardlink git wget pykickstart
hardlink git wget pykickstart isomd5sum

# build plugin
pushd /root
Expand Down
7 changes: 5 additions & 2 deletions build-livecd-root
Expand Up @@ -19,7 +19,7 @@ if [ $(id -u) != 0 ]; then
exit 1
fi

which livecd-creator isohybrid >/dev/null || ( echo "Command(s) missing, install required tools" && exit 2 )
which livecd-creator isohybrid implantisomd5 >/dev/null || ( echo "Command(s) missing, install required tools" && exit 2 )

trap cleanup EXIT

Expand All @@ -46,10 +46,13 @@ fi
echo "* Filtering ISO with isohybrid"
cp fdi.iso fdi-bootable.iso
isohybrid --partok --uefi fdi-bootable.iso

echo "* Implanting MD5 sum"
implantisomd5 --force fdi-bootable.iso
mv fdi-bootable.iso $srcdir/fdi-bootable-${last_tag#release-}.iso

echo "* Converting to initrd"
$srcdir/aux/livecd-iso-to-pxeboot $tmpdir/fdi.iso
bash -x $srcdir/aux/livecd-iso-to-pxeboot $tmpdir/fdi.iso

if [ $? -ne 0 ]; then
KEEP_TMPDIR=yes
Expand Down

0 comments on commit 54ccce0

Please sign in to comment.