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