summaryrefslogtreecommitdiff
path: root/iso64
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-12-09 17:42:55 +0000
committerV3n3RiX <venerix@rogentos.ro>2015-12-09 17:42:55 +0000
commit5822c72c901d4af7e2752f7285e6e928a73efaec (patch)
tree1e5845fa225c27d0d85414a6ed0c8523efe03767 /iso64
parentd40f055803c2b41f81485f2e7822bd59c53ae8c6 (diff)
put checksums in place
Diffstat (limited to 'iso64')
-rwxr-xr-xiso648
1 files changed, 7 insertions, 1 deletions
diff --git a/iso64 b/iso64
index ff786d5..90c8e8e 100755
--- a/iso64
+++ b/iso64
@@ -17,14 +17,20 @@ makeisox64 () {
mkdir -p "$coremnt"
mkdir -p ""$isoname"/livecd"
mkdir -p ""$isoname"/boot"
+ mkdir -p ""$isoname"/boot/grub"
# Mount && Sync squashed core (Kogaion stage4) into live environment
mount -t squashfs "$chrootx64" "$coremnt"
rsync -aHAXr --progress "$coremnt/" ""$isoname"/livecd/"
# Put our kernel and initramfs in place
cp -avx ""$isoname"/livecd/boot/"$kernelname"" ""$isoname"/boot/"$releasename""
- cp -avx ""$isoname"/livecd/boot/"$ramfsname"" ""$isoname"/boot/"$releasename.igz""
+ cp -avx ""$isoname"/livecd/boot/"$ramfsname"" ""$isoname"/boot/"$releasename".igz"
+ # Checksum the kernel && initramfs
+ sha256sum ""$isoname"/boot/"$releasename"" | tee ""$isoname"/boot/"$releasename".sha256"
+ sha256sum ""$isoname"/boot/"$releasename.igz"" | tee ""$isoname"/boot/"$releasename".igz.sha256"
# Squash live environment
mksquashfs ""$isoname"/livecd" ""$isoname"/livecd.squashfs" -b 1048576 -comp xz -Xdict-size 100%
+ # Checksum the live environment
+ sha256sum ""$isoname"/livecd.squashfs" | tee ""$isoname"/livecd.squashfs.sha256"
umount "$coremnt"
}