diff options
author | V3n3RiX <venerix@rogentos.ro> | 2015-12-09 17:04:41 +0000 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2015-12-09 17:04:41 +0000 |
commit | 4592de0147cf5af533c44644d1f0f8d638e38ba1 (patch) | |
tree | 0cc7f3b5cc36f2068a5b1f1d71bd1e56b25aa87c /iso32 | |
parent | 6ad722e7c4fb9872ad1161405462245e3b309b31 (diff) |
put the kernel and ramfs into place for live environment
Diffstat (limited to 'iso32')
-rwxr-xr-x | iso32 | 21 |
1 files changed, 16 insertions, 5 deletions
@@ -5,16 +5,27 @@ kernelconfig checkroot -export local isoarch="x86" +export local mainarch="x86" export local isoname=""$releasename"-"$releaseversion"-"$isoarch"" -export local tmpiso="/tmp/"$isoname"" +export local coremnt="/tmp/"$isoname"" +export local kernelver="3.14.0-"$releasename"" +export local kernelname="kernel-genkernel-"$mainarch"-"$kernelver"" +export local ramfsname="initramfs-genkernel-"$mainarch"-"$kernelver"" makeisox86 () { + # ISO layout mkdir -p "$tmpiso" mkdir -p ""$isoname"/livecd" - mount -t squashfs "$chrootx86" "$tmpiso" - rsync -aHAXr --progress "$tmpiso/" ""$isoname"/livecd/" - umount "$tmpiso" + mkdir -p ""$isoname"/boot" + # Mount && Sync squashed core (Kogaion stage4) into live environment + mount -t squashfs "$chrootx86" "$coremnt" + rsync -aHAXr --progress "$coremnt/" ""$isoname"/livecd/" + # Put our kernel and initramfs in place + cp -avx ""$isoname"/livecd/boot/"$kernelname"" "$isoname/" + cp -avx ""$isoname"/livecd/boot/"$ramfsname"" "$isoname/" + # Squash live environment + mksquashfs ""$isoname"/livecd" ""$isoname"/livecd.squashfs" -b 1048576 -comp xz -Xdict-size 100% + umount "$coremnt" } main () { |