Commit c6aae744 authored by Fabian Kosmale's avatar Fabian Kosmale
Browse files

copy kernel and initramfs

parent f50aa858
......@@ -7,7 +7,7 @@ import datetime
import shutil
inform = print # TODO
iso_root = iso_root
iso_root = "iso_root"
def make_suqash(directory="chakra"):
......@@ -23,8 +23,19 @@ def make_suqash(directory="chakra"):
def prepare_iso():
"""Copies the required syslinux files"""
# for more information see
"""Copies the required files"""
# copy all isolinux files to iso_root/isolinux
isolinux_dir = os.path.join(iso_root, "isolinux")
# this will create isolinux_dir and copy everything from config/isolinux
shutil.copytree("./config/isolinux", isolinux_dir)
shutil.copy("/usr/lib/syslinux/bios/isolinux.bin", iso_root)
# create the directory where the image will reside
image_dir = os.path.join(iso_root, "chakra/boot/x86_64/")
shutil.copy("./chakra/boot/initramfs-linux.img", image_dir)
shutil.copy("./chakra/boot/vmlinuz-linux", os.path.join(image_dir, "chakraiso"))
def make_iso(publisher='Chakra GNU/Linux <>',
application='Chakra GNU/Linux Live/Rescue CD',
......@@ -56,4 +67,6 @@ def make_iso(publisher='Chakra GNU/Linux <>',
subprocess.check_call(["isohybrird", imgname])
if __name__ == "__main__":
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment