Commit 51a0084f authored by Fabian Kosmale's avatar Fabian Kosmale
Browse files

fix mkisofs call

parent 0a3a240a
...@@ -70,7 +70,7 @@ def make_iso(publisher='Chakra GNU/Linux <http://www.chakra-project.org>', ...@@ -70,7 +70,7 @@ def make_iso(publisher='Chakra GNU/Linux <http://www.chakra-project.org>',
application='Chakra GNU/Linux Live/Rescue CD', application='Chakra GNU/Linux Live/Rescue CD',
label='CHAKRA_{}'.format( label='CHAKRA_{}'.format(
datetime.datetime.now().strftime("%Y-%m-%d")), datetime.datetime.now().strftime("%Y-%m-%d")),
imgname='' imgname='output.iso'
): ):
inform("Building ISO") inform("Building ISO")
# check if we really need the one below # check if we really need the one below
...@@ -93,15 +93,32 @@ def make_iso(publisher='Chakra GNU/Linux <http://www.chakra-project.org>', ...@@ -93,15 +93,32 @@ def make_iso(publisher='Chakra GNU/Linux <http://www.chakra-project.org>',
"label": label, "label": label,
"imgname": imgname, "imgname": imgname,
}) })
command = """ command = """mkisofs
mkisofs -o output.iso \ [18:44:15] -output
-b isolinux/isolinux.bin -c isolinux/boot.cat \ output.iso
-no-emul-boot -boot-load-size 4 -boot-info-table \ -b
-l -V CHAKRA_2014-03-21 -udf \ isolinux/isolinux.bin
-c
isolinux/boot.cat
-uid
0
-gid
0
--iso-level
3
-no-emul-boot
-boot-load-size
4
-boot-info-table
-l
-V
CHAKRA_2014-03-21
-udf
iso_root iso_root
""" """
subprocess.check_call(command.strip().split("\n")) with open("log", "w") as log:
subprocess.check_call(["isohybrird", imgname]) subprocess.check_call(command.strip().split("\n"), shell=False, stderr=log)
subprocess.check_call(["isohybrid", imgname], stderr=log)
if __name__ == "__main__": if __name__ == "__main__":
make_suqash(os.path.abspath("chakra"), "root-image.sqfs") make_suqash(os.path.abspath("chakra"), "root-image.sqfs")
......
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