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"):
"""TODO."""
......@@ -23,8 +23,19 @@ def make_suqash(directory="chakra"):
subprocess.check_call(command)
def prepare_iso():
"""Copies the required syslinux files"""
# for more information see http://www.syslinux.org/wiki/index.php/ISOLINUX
"""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/")
os.makedirs(image_dir)
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 <http://www.chakra-project.org>',
application='Chakra GNU/Linux Live/Rescue CD',
......@@ -56,4 +67,6 @@ def make_iso(publisher='Chakra GNU/Linux <http://www.chakra-project.org>',
subprocess.check_call(["isohybrird", imgname])
if __name__ == "__main__":
make_suqash()
#make_suqash()
prepare_iso()
pass
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