[
  {
    "path": ".gitignore",
    "content": "isofiles\n\n"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    {one line to give the program's name and a brief idea of what it does.}\n    Copyright (C) {year}  {name of author}\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    {project}  Copyright (C) {year}  {fullname}\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<http://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<http://www.gnu.org/philosophy/why-not-lgpl.html>.\n"
  },
  {
    "path": "README.md",
    "content": "# liveusb-builder\n\nliveusb-builder is a script suite to create multiboot USB stick for GNU/Linux distributions. It's lightweight with few dependencies, and it's extensible and hackable.\n\nThe source code is hosted on both [git.wehack.space](https://git.wehack.space/liveusb-builder/) and GitHub.\n\nA presentation in Chinese is at https://wehack.space/vimacs/liveusb-builder.odp.\n\n## Features\n\n- Multiboot support with syslinux and GRUB\n- Support legacy BIOS, UEFI, and various firmware payloads (e.g. GRUB, petitboot) that reads GRUB or syslinux config files\n- Support placing kernel files (kernel and initramfs) and other data files (squashfs, CD image) in separate partitions\n- Download an up-to-date CD image and verify it\n- A GNU/Linux command line tool\n\n## Install\n\nYou need these packages on your GNU/Linux system to use liveusb-builder.\n\n- libarchive: for ISO image extraction\n- udisks2 (optional,recommended): for mounting USB disk partitions without being root\n- udevil (optional): for mounting USB disk partitions and ISO images without being root\n- wget: for downloading\n- syslinux (recommended): bootloader for legacy BIOS\n- GRUB: bootloader for legacy BIOS if there's no syslinux, and bootloader for UEFI\n\nFor Arch Linux users, just install [liveusb-builder-git](https://aur.archlinux.org/packages/liveusb-builder-git/) from AUR.\n\n## Will my boot image support liveusb-builder?\n\nliveusb-builder needs a kernel image, an initramfs image, and a proper kernel command line to support a boot image. However, not every CD/DVD image supports booting this way. There are some other ways to boot these images, but they will break our philosophy to support various firmware and bootloaders.\n\nIf you want to use a disk image to install an operating system, I suggest using the virtual machine method as follows. Boot an AMD64 machine with enough memory and VMX feature with a Live USB with QEMU GUI (e.g. Grml 2020.06, also see [my ticket](https://github.com/grml/grml-live/issues/71) for Grml) after attaching the hard disk you want to install the OS on, then run the following (assume the hard disk attached is /dev/sda):\n\n```bash\nsudo qemu-system-x86_64 -enable-kvm -m 4G -cdrom your-install-cd.iso -drive /dev/sda,format=raw -boot order=d -no-reboot\n```\n\nDo the system installation in the QEMU window. After QEMU exits, put the hard disk on the target machine to continue installing.\n\nI've already used this method to successfully install Windows 7, OpenBSD 6.7, and various GNU/Linux systems.\n\n## Usage\n\nFirst, you need to have a partitioned USB drive. For the best legacy BIOS compatibility, it's recommended to use MSDOS (MBR) partition table. Because most UEFI firmware only supports FAT32 partitions, you need a FAT32 partition on the USB drive, and put the boot files into this partition.\n\n### The easier way: one FAT32 partition\n\nSuppose your USB stick device is /dev/sdb and the partition on the device is /dev/sdb1.\n\n```bash\n# install Arch, Mint (x86_64 with MATE Desktop) and Fedora 32 to USB\n./buildlive --root=/dev/sdb1 arch mint/mate fedora/32\n```\n\nThe other way is to mount your USB drive partition first. I recommend using udevil so that you can write files without as root.\nThen run buildlive script as follows, suppose /dev/sdb1 is mount to /media/sdb1:\n\n```bash\n# install Arch, Mint (x86_64 with MATE Desktop) and Fedora 32 to USB\n./buildlive --root=/media/sdb1 arch mint/mate fedora/32\n```\n\n### The more customizable way: using a FAT32 boot partition and an ext2 data partition\n\nPartition your disk as follows to create a 500MB FAT32 boot partition, and an ext2 partition using the remaining space, suppose your USB is /dev/sdb.\n\n```\n$ sudo fdisk /dev/sdb\n\nCommand (m for help): o\nCreated a new DOS disklabel with disk identifier 0x24c5dd70.\n\nCommand (m for help): n\nPartition type\n   p   primary (0 primary, 0 extended, 4 free)\n   e   extended (container for logical partitions)\nSelect (default p):\n\nUsing default response p.\nPartition number (1-4, default 1):\nFirst sector (2048-30463999, default 2048):\nLast sector, +sectors or +size{K,M,G,T,P} (2048-30463999, default 30463999): +500M\n\nCreated a new partition 1 of type 'Linux' and of size 500 MiB.\n\nCommand (m for help): t\nSelected partition 1\nHex code (type L to list all codes): b\nChanged type of partition 'Linux' to 'W95 FAT32'.\n\nCommand (m for help): a\nSelected partition 1\nThe bootable flag on partition 1 is enabled now.\n\nCommand (m for help): n\nPartition type\n   p   primary (1 primary, 0 extended, 3 free)\n   e   extended (container for logical partitions)\nSelect (default p):\n\nUsing default response p.\nPartition number (2-4, default 2):\nFirst sector (1026048-30463999, default 1026048):\nLast sector, +sectors or +size{K,M,G,T,P} (1026048-30463999, default 30463999):\n\nCreated a new partition 2 of type 'Linux' and of size 14 GiB.\n\nCommand (m for help): w\nThe partition table has been altered.\nCalling ioctl() to re-read partition table.\nSyncing disks.\n```\n\nFormat the partitions:\n\n```\nsudo mkfs.msdos -F 32 /dev/sdb1\nsudo mkfs.ext2 /dev/sdb2\n```\n\nMount them and create the directory, and we need to make the directory ``liveusb-data`` writable by the current user.\n\n```\nudevil mount /dev/sdb1 /media/boot\nudevil mount /dev/sdb2 /media/root\nsudo install -d /media/root/liveusb-data\nsudo chown $(whoami) /media/root/liveusb-data/\n```\n\nAt last, make the Live USB (we install Arch and Fedora 32 in it):\n\n```\n$ ./buildlive --boot /media/boot --root /media/root arch fedora/32\n```\n\n## Experimental features\n\nI've made some experimental features that are not yet merged to the main source tree.\n\n- [ia32efi-test](https://github.com/mytbk/liveusb-builder/commits/ia32efi-test): support IA32 EFI\n\n## Status\n\nThe resulting USB stick works on QEMU with PC BIOS (SeaBIOS), UEFI (OVMF), libreboot (i440fx, GRUB txtmode) as firmware.\n\nThe script ``testusb.sh`` can be used to test a USB stick with QEMU.\n\n## Related work\n\nYou can search keyword ``multiboot`` on GitHub and find some related projects. Listed below is some related work I know or find.\n\n- [Yumi](https://www.pendrivelinux.com/yumi-multiboot-usb-creator/): a Windows GUI multiboot USB builder, I need a similar tool that runs on GNU/Linux, so I created this project\n- [aguslr/multibootusb](https://github.com/aguslr/multibootusb): provides grub.cfg files for many CD images, I used some of the kernel command line of distros in this project, but some grub.cfg files use features provided by GRUB and thus not portable for loaders like syslinux\n- [Ventoy](https://www.ventoy.net): a new multiboot USB project that supports making a live USB with most of the CD images. It has its own boot loader so doesn't rely on GRUB or syslinux config files.\n- [MultiBootLiveUSB](https://github.com/moontide/MultiBootLiveUSB)\n- [Multiboot USB drive - ArchWiki](https://wiki.archlinux.org/index.php/Multiboot_USB_drive)\n- [cbodden/multiboot](https://github.com/cbodden/multiboot)\n- [mbusb/multibootusb](https://github.com/mbusb/multibootusb)\n\n"
  },
  {
    "path": "buildlive",
    "content": "#!/bin/bash\n# Copyright (C)  2016-2018 Iru Cai <mytbk920423@gmail.com>\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nset -e\n\nDISTROLIST=()\nISOLIST=()\nBOOTPATH=\nROOTPATH=\nDEVNAME=\nKERNELDIR=\nDATADIR=\nINSTALL_GRUB=1\nGRUBCFG_ONLY=0\nDOWNLOAD_ONLY=0\nUMOUNT_BOOT=0\nUMOUNT_ROOT=0\nCLEAN_USB=0\nBOOTLOADER_ONLY=0\n\n. functions.sh\n\nusage() {\n\t>&2 cat << EOF\n$0 [--root <path>] [options] [--distro=<metadist> <isofile>] [distro] ...\nuse $0 -L to list available distros\noptions:\n  --root <path>\n  --root=<path>: set the path to put the live USB data files\n  --boot <path>\n  --boot=<path>: set the path to put the kernel and loader files\n  --clean: clean the old live USB files before installing\n  --bootloader-only: only install the boot loader\n  --no-grub: do not install GRUB loader (still generate grub.cfg)\n  --grubcfg: do not do real install, only generate grub.cfg file\n  --downloadonly: only download the ISO files\n  --dev=<diskdev>: write boot sector to <diskdev> (default <diskdev> is autodetected from <rootpath>)\nEOF\n}\n\ntry_mount() {\n\tlocal mnt\n\tif [[ \"$1\" =~ ^/dev ]]\n\tthen\n\t\tif ! findmnt \"$1\" > /dev/null\n\t\tthen\n\t\t\tmount_block \"$1\" > /dev/null\n\t\t\tmnt=$(findmnt -n -o TARGET \"$1\")\n\t\telse\n\t\t\tmnt=$(findmnt -n -o TARGET \"$1\")\n\t\tfi\n\telse\n\t\tmnt=\"$1\"\n\tfi\n\techo \"$mnt\"\n}\n\ndetect_block_mount_tool 2>/dev/null\ndetect_iso_mount_tool 2>/dev/null\n\nunset ISOPATH\nCFGFILE=\"$HOME/.liveusb-builder\"\ntest -f \"$CFGFILE\" && source \"$CFGFILE\" || true\nISOPATH=${ISOPATH:-\"$HOME/isofiles\"}\n\nwhile [[ -n \"$1\" ]]\ndo\n\tcase \"$1\" in\n\t\t-L)\n\t\t\texec ./listisos.sh\n\t\t\t;;\n\t\t--boot=*)\n\t\t\tBOOTPATH=\"${1/--boot=}\"\n\t\t\t;;\n\t\t--boot)\n\t\t\tshift\n\t\t\tBOOTPATH=\"$1\"\n\t\t\t;;\n\t\t--root=*)\n\t\t\tROOTPATH=\"${1/--root=}\"\n\t\t\t;;\n\t\t--root)\n\t\t\tshift\n\t\t\tROOTPATH=\"$1\"\n\t\t\t;;\n\t\t--dev=*)\n\t\t\tDEVNAME=${1/--dev=}\n\t\t\t;;\n\t\t--bootloader-only)\n\t\t\tBOOTLOADER_ONLY=1\n\t\t\t;;\n\t\t--no-grub)\n\t\t\tINSTALL_GRUB=0\n\t\t\t;;\n\t\t--grubcfg)\n\t\t\tGRUBCFG_ONLY=1\n\t\t\t;;\n\t\t--downloadonly)\n\t\t\tDOWNLOAD_ONLY=1\n\t\t\t;;\n\t\t--clean)\n\t\t\tCLEAN_USB=1\n\t\t\t;;\n\t\t--distro=*)\n\t\t\tmetadist=\"${1/--distro=}\"\n\t\t\tif [ ! -f \"distro/$metadist/meta\" ]\n\t\t\tthen\n\t\t\t\tfatalerror \"distro/$metadist/meta not found\"\n\t\t\tfi\n\t\t\tshift\n\t\t\tisofn=\"$1\"\n\t\t\tif [ ! -f \"$isofn\" ]\n\t\t\tthen\n\t\t\t\tfatalerror \"File $isofn not found\"\n\t\t\tfi\n\t\t\tDISTROLIST=(${DISTROLIST[@]} \"/meta@$metadist@$isofn\")\n\t\t\t;;\n\t\t*=*|-*)\n\t\t\tusage\n\t\t\texit 1\n\t\t\t;;\n\t\t*)\n\t\t\tif [ -f \"distro/$1/isoinfo\" ]\n\t\t\tthen\n\t\t\t\tDISTROLIST=(${DISTROLIST[@]} \"$1\")\n\t\t\telse\n\t\t\t\tfatalerror \"directory distro/$1/isoinfo not found\"\n\t\t\tfi\n\t\t\t;;\n\tesac\n\tshift\ndone\n\nif [[ -z \"$ROOTPATH\" && \"$DOWNLOAD_ONLY\" == 0 ]]; then\n\tusage\n\texit 1\nfi\n\n_mnt=\"$(try_mount \"$ROOTPATH\")\"\nif [ \"${_mnt}\" != \"$ROOTPATH\" ]; then\n\tROOTPATH=\"${_mnt}\"\n\tUMOUNT_ROOT=1\nfi\n\nif [[ -z \"$BOOTPATH\" ]]; then\n\tBOOTPATH=\"$ROOTPATH\"\nelse\n\t_mnt=\"$(try_mount \"$BOOTPATH\")\"\n\tif [ \"${_mnt}\" != \"$BOOTPATH\" ]; then\n\t\tBOOTPATH=\"${_mnt}\"\n\t\tUMOUNT_BOOT=1\n\tfi\nfi\n\nif [[ \"$DOWNLOAD_ONLY\" == 0 ]]; then\n\tUUID=\"$(findmnt -o UUID --raw --noheadings $ROOTPATH \\\n\t\t|| fatalerror \"UUID of $ROOTPATH not found, not a mountpoint?\")\"\n\tBOOTPART=\"$(findmnt -o SOURCE --raw --noheadings $BOOTPATH \\\n\t\t|| fatalerror \"$BOOTPATH seems not a mountpoint!\")\"\n\t# liveusb kernel and data should be placed on one disk\n\t# so get DEVNAME by the mountpoint of ROOTPATH is ok\n\tDEVNAME=\"/dev/$(getdiskbypart \"/dev/disk/by-uuid/$UUID\")\"\n\n\tKERNELDIR=\"$BOOTPATH/liveusb-kernel\"\n\tDATADIR=\"$ROOTPATH/liveusb-data\"\n\tGRUBCFG=\"$BOOTPATH/grub/grub.cfg\"\n\tSYSLINUXCFG=\"$BOOTPATH/syslinux/syslinux.cfg\"\n\tinstall -d \"$BOOTPATH/grub\" \"$BOOTPATH/syslinux\"\n\tinstall -d \"$KERNELDIR\" \"$DATADIR\"\n\tmsg \"Files will be copy to $ROOTPATH\"\nfi\n\nif [[ \"$BOOTLOADER_ONLY\" == 0 && \"${#DISTROLIST[@]}\" == 0 ]]; then\n\tusage\n\texit 1\nfi\n\nif [ ! -z \"$DEVNAME\" ]; then\n\tmsg \"Boot sector will be written to $DEVNAME\"\nfi\n\nif [[ \"$CLEAN_USB\" = 1 ]]; then\n\tmsg \"Cleaning old live USB files.\"\n\trm -rf \"$KERNELDIR\"/* \"$DATADIR\"/*\nfi\n\nfor i in ${DISTROLIST[@]}\ndo\n\tif [[ \"$i\" == /meta@* ]]\n\tthen\n\t\t# FIXME: we assume the meta file path and the iso file name\n\t\t#\t does not have '@' character\n\t\tISOFILE=\"$(echo \"$i\" | cut -d@ -f3)\"\n\t\tISOLIST=(\"${ISOLIST[@]}\" \"$ISOFILE\")\n\t\t# TODO: we just use the file name as the ISO name\n\t\t# \tcan we do it better?\n\t\tISONAMELIST=(\"${ISONAMELIST[@]}\" \"$(basename \"$ISOFILE\")\")\n\t\tcontinue\n\tfi\n\tprocess_isoinfo \"$i\"\n\tISOLIST=(\"${ISOLIST[@]}\" \"$ISOFILE\")\n\tISONAMELIST=(\"${ISONAMELIST[@]}\" \"$ISONAME\")\n\n\tif [ -f \"$ISOPATH/$ISOFILE\" ] && checksum_verify; then\n\t\ttrue\n\telse\n\t\tdownload_iso\n\tfi\ndone\n\nif [[ \"$DOWNLOAD_ONLY\" == 1 ]]; then\n\texit 0\nfi\n\ngrubcfg_header > \"$GRUBCFG\"\nsyslinux_header > \"$SYSLINUXCFG\"\n\nfor i in `seq 1 ${#DISTROLIST[@]}`\ndo\n\tISOFILE=\"${ISOLIST[$i-1]}\"\n\tISONAME=\"${ISONAMELIST[$i-1]}\"\n\tDISTRO=\"${DISTROLIST[$i-1]}\"\n\tISO_FILEPATH=\"$ISOPATH/$ISOFILE\"\n\n\tif [[ \"$DISTRO\" == /meta@* ]]\n\tthen\n\t\tmetadir=\"$(echo \"$DISTRO\" | cut -d@ -f2)\"\n\t\t_meta=meta_\n\t\tISO_FILEPATH=\"$ISOFILE\"\n\t\tDISTRO=\"$metadir\"\n\t\tset_distro \"$metadir\"\n\t\tKEYWORD=\"$ISONAME\"\n\t\tsource \"distro/$metadir/meta\"\n\telse\n\t\t_meta=\n\t\tISO_FILEPATH=\"$ISOPATH/$ISOFILE\"\n\t\tset_distro \"$DISTRO\"\n\t\texport DISTRONAME KEYWORD # for grub and syslinux generation\n\t\tprocess_distro \"$DISTRO\"\n\tfi\n\n\tif [ \"$GRUBCFG_ONLY\" == 0 ]; then\n\t\tinstall_live\n\tfi\n\t${_meta}gen_grubcfg \"$DISTRO\" >> \"$GRUBCFG\"\n\t${_meta}gen_syslinux \"$DISTRO\" >> \"$SYSLINUXCFG\"\ndone\n\nif [ \"$GRUBCFG_ONLY\" == 1 ]; then\n\tmsg 'Only generate grub.cfg and syslinux.cfg, will not install bootloader.'\nelif [ \"$INSTALL_GRUB\" == 1 ]; then\n\tread -p 'Answer Y to install bootloader.[Y/n] '\n\tif [[ \"$REPLY\" =~ ^[Yy]|^$ ]]; then\n\t\tif ! as-root ./install_syslinux \"$DEVNAME\" \"$BOOTPART\" \"$BOOTPATH\"; then\n\t\t\tmsg 'Failed to install syslinux, try to install GRUB as legacy BIOS bootloader.'\n\t\t\tas-root grub-install --force --boot-directory=\"$BOOTPATH\" --target=i386-pc \"$DEVNAME\"\n\t\tfi\n\t\tas-root grub-install --boot-directory=\"$BOOTPATH\" --efi-directory=\"$BOOTPATH\" --bootloader-id=grub --target=x86_64-efi --removable --no-nvram \"$DEVNAME\"\n\tfi\nfi\n\nif [ \"$UMOUNT_BOOT\" == 1 ]; then\n\tmsg 'Trying to umount the boot mountpoint, you may need to wait for sync() to complete.'\n\tunmount_block \"$BOOTPATH\"\nfi\nif [ \"$UMOUNT_ROOT\" == 1 -a \"$ROOTPATH\" != \"$BOOTPATH\" ]; then\n\tmsg 'Trying to umount the root mountpoint, you may need to wait for sync() to complete.'\n\tunmount_block \"$ROOTPATH\"\nfi\n"
  },
  {
    "path": "distro/antix/32/entry",
    "content": "TITLE='antiX 17 i386'\nKERNEL=/liveusb-kernel/antix/32/vmlinuz\nINITRD=/liveusb-kernel/antix/32/initrd.gz\nOPTION=\"iso iso=liveusb-data/antix/$ISOFILE\"\nX64=n\n"
  },
  {
    "path": "distro/antix/32/install.sh",
    "content": "install_live() {\n\tinstall -d \"$KERNELDIR/antix/32\" \"$DATADIR/antix\"\n\tcp \"${ISO_FILEPATH}\" \"$DATADIR/antix/\"\n\tmount_iso\n\tcp \"$ISOMNT/antiX/vmlinuz\" \"$ISOMNT/antiX/initrd.gz\" \"$KERNELDIR/antix/32/\"\n\tumount_iso\n}\n\n"
  },
  {
    "path": "distro/antix/32/isoinfo",
    "content": "_isover=17.4.1\nISONAME=\"$DISTRONAME $_isover i386\"\nISOURL=\"antiX-17.4/antiX-${_isover}_386-full.iso\"\nSHA256=40ac8371b9692a66a6a29909ae984665a0891d1ee5cefde9fab6ddae1a8ad348\n\nmirrorlist=(\nhttps://mirrors.tuna.tsinghua.edu.cn/mxlinux-isos/ANTIX/Final\nhttp://iso.mxrepo.com/Final\nhttp://it.mxrepo.com/Final\n)\n"
  },
  {
    "path": "distro/antix/distroinfo",
    "content": "DISTRONAME='antiX'\nKEYWORD='antix'\n"
  },
  {
    "path": "distro/arch/distroinfo",
    "content": "DISTRONAME='Arch Linux'\nKEYWORD='arch'\n"
  },
  {
    "path": "distro/arch/entry1",
    "content": "TITLE='Arch Linux x86_64'\nprefix=\"/liveusb-kernel/$KEYWORD/arch/boot\"\nKERNEL=\"$prefix/x86_64/vmlinuz-linux\"\nINITRD=(\"$prefix/x86_64/initramfs-linux.img\")\nOPTION=\"img_dev=/dev/disk/by-uuid/$UUID img_loop=liveusb-data/$KEYWORD/$ISOFILE\"\nX64=y\n"
  },
  {
    "path": "distro/arch/install.sh",
    "content": "install_live() {\n\tinstall -d \"$DATADIR/$KEYWORD\" \"$KERNELDIR/$KEYWORD\"\n\tiso_extract \"${ISO_FILEPATH}\" arch/boot/x86_64 'arch/boot/*.img' \"$KERNELDIR/$KEYWORD/\"\n\tcp \"${ISO_FILEPATH}\" \"$DATADIR/$KEYWORD/\"\n}\n\n"
  },
  {
    "path": "distro/arch/isoinfo",
    "content": "_isodate=2025.08.01\nISONAME=\"$DISTRONAME $_isodate\"\nISOURL=iso/$_isodate/archlinux-$_isodate-x86_64.iso\nSHA256=4b1af44dbeed97acec0204a95f6393818bb8fd903b423a20b7ea141f80b27e59\n\nmirrorlist=(\nhttp://mirrors.nju.edu.cn/archlinux\nhttps://mirrors.163.com/archlinux\nhttps://mirrors.tuna.tsinghua.edu.cn/archlinux\nhttps://mirrors.ustc.edu.cn/archlinux\nhttps://mirror.aur.rocks\nhttp://archlinux.de-labrusse.fr\nhttp://mirror.cedille.club/archlinux\n)\n"
  },
  {
    "path": "distro/arch/meta",
    "content": "# SPDX-License-Identifier: GPL-3.0-or-later\n# TODO: detect kernel, initramfs, and ucode filenames\n\nentry() {\n\tTITLE=\"$ISONAME\"\n\tprefix=\"/liveusb-kernel/$KEYWORD/arch/boot\"\n\tKERNEL=\"$prefix/x86_64/vmlinuz-linux\"\n\tINITRD=(\"$prefix/intel-ucode.img\" \"$prefix/amd-ucode.img\"\n\t\t\"$prefix/x86_64/initramfs-linux.img\")\n\tOPTION=\"img_dev=/dev/disk/by-uuid/$UUID img_loop=liveusb-data/$KEYWORD/$ISONAME\"\n\tX64=y\n}\n\ninstall_live() {\n\tinstall -d \"$DATADIR/$KEYWORD\" \"$KERNELDIR/$KEYWORD\"\n\tiso_extract \"${ISO_FILEPATH}\" arch/boot/x86_64 'arch/boot/*.img' \"$KERNELDIR/$KEYWORD/\"\n\tcp \"${ISO_FILEPATH}\" \"$DATADIR/$KEYWORD/\"\n}\n\nentries=(entry)\n"
  },
  {
    "path": "distro/centos/6.9/entry",
    "content": "version=6.9\nsource distro/centos/entry.common\n"
  },
  {
    "path": "distro/centos/6.9/install.sh",
    "content": "version=6.9\nsource distro/centos/install.sh\n"
  },
  {
    "path": "distro/centos/6.9/isoinfo",
    "content": "ISONAME=\"$DISTRONAME 6.9 Minimal\"\nISOURL=6.9/isos/x86_64/CentOS-6.9-x86_64-minimal.iso\nSHA256=422af57b493b8af49d485885a730c5a1d955f803fac85aa51311c393168b9080\n\nmirrorlist=(\nhttps://mirrors.tuna.tsinghua.edu.cn/centos\n)\n"
  },
  {
    "path": "distro/centos/7/entry",
    "content": "version=7\nsource distro/centos/entry.common\n"
  },
  {
    "path": "distro/centos/7/install.sh",
    "content": "version=7\nsource distro/centos/install.sh\n"
  },
  {
    "path": "distro/centos/7/isoinfo",
    "content": "ISONAME=\"$DISTRONAME 7 Install DVD\"\nISOURL=7/isos/x86_64/CentOS-7-x86_64-DVD-2009.iso\nSHA256=e33d7b1ea7a9e2f38c8f693215dd85254c3a4fe446f93f563279715b68d07987\n\nmirrorlist=(\nhttps://mirrors.ustc.edu.cn/centos/\nhttps://mirrors.pku.edu.cn/centos/\n)\n"
  },
  {
    "path": "distro/centos/8/entry",
    "content": "version=8\nsource distro/centos/entry.common\n"
  },
  {
    "path": "distro/centos/8/install.sh",
    "content": "version=8\nsource distro/centos/install.sh\n"
  },
  {
    "path": "distro/centos/8/isoinfo",
    "content": "VERSION=8.2.2004\nISONAME=\"$DISTRONAME $VERSION DVD\"\nISOURL=\"8/isos/x86_64/CentOS-$VERSION-x86_64-dvd1.iso\"\nSHA256=c87a2d81d67bbaeaf646aea5bedd70990078ec252fc52f5a7d65ff609871e255\n\nmirrorlist=(\nhttps://mirrors.tuna.tsinghua.edu.cn/centos\n)\n"
  },
  {
    "path": "distro/centos/distroinfo",
    "content": "DISTRONAME='CentOS'\nKEYWORD='centos'\n"
  },
  {
    "path": "distro/centos/entry.common",
    "content": "TITLE=\"CentOS $version x86_64\"\nKERNEL=/liveusb-kernel/centos/$version/vmlinuz\nINITRD=/liveusb-kernel/centos/$version/initrd.img\nOPTION=\"noeject inst.stage2=hd:UUID=$UUID:/liveusb-data/centos/$ISOFILE\"\nX64=y\n"
  },
  {
    "path": "distro/centos/install.sh",
    "content": "install_live() {\n\tmount_iso\n\tinstall -d \"$DATADIR/centos/\" \"$KERNELDIR/centos/$version\"\n\tcp \"${ISO_FILEPATH}\" \"$DATADIR/centos/\"\n\tcp \"$ISOMNT/images/pxeboot/vmlinuz\" \"$ISOMNT/images/pxeboot/initrd.img\" \"$KERNELDIR/centos/$version\"\n\tumount_iso\n}\n\n"
  },
  {
    "path": "distro/debian/32/cinnamon/entry",
    "content": "_desktop=Cinnamon\nsource distro/debian/32/entry\n"
  },
  {
    "path": "distro/debian/32/cinnamon/install.sh",
    "content": "source distro/debian/32/install.sh\n\n"
  },
  {
    "path": "distro/debian/32/cinnamon/isoinfo",
    "content": "_desktop=Cinnamon\n_arch=i386\nsource distro/debian/isoinfo.common\n"
  },
  {
    "path": "distro/debian/32/entry",
    "content": "TITLE=\"Debian 10.10.0 i386 ${_desktop}\"\nKERNEL=/liveusb-kernel/debian/32/vmlinuz-4.19.0-9-amd64\nINITRD=/liveusb-kernel/debian/32/initrd.img-4.19.0-9-amd64\nOPTION=\"boot=live findiso=liveusb-data/debian/$ISOFILE\"\nX64=n\n"
  },
  {
    "path": "distro/debian/32/gnome/entry",
    "content": "_desktop=GNOME\nsource distro/debian/32/entry\n"
  },
  {
    "path": "distro/debian/32/gnome/install.sh",
    "content": "source distro/debian/32/install.sh\n\n"
  },
  {
    "path": "distro/debian/32/gnome/isoinfo",
    "content": "_desktop=GNOME\n_arch=i386\nsource distro/debian/isoinfo.common\n"
  },
  {
    "path": "distro/debian/32/install.sh",
    "content": "install_live() {\n\tinstall -d \"$KERNELDIR/debian/32\" \"$DATADIR/debian\"\n\tcp \"${ISO_FILEPATH}\" \"$DATADIR/debian/\"\n\tmount_iso\n\tcp \"$ISOMNT/live/vmlinuz\"* \"$ISOMNT/live/initrd.img\"* \"$KERNELDIR/debian/32/\"\n\tumount_iso\n}\n"
  },
  {
    "path": "distro/debian/32/kde/entry",
    "content": "_desktop=KDE\nsource distro/debian/32/entry\n"
  },
  {
    "path": "distro/debian/32/kde/install.sh",
    "content": "source distro/debian/32/install.sh\n\n"
  },
  {
    "path": "distro/debian/32/kde/isoinfo",
    "content": "_desktop=KDE\n_arch=i386\nsource distro/debian/isoinfo.common\n"
  },
  {
    "path": "distro/debian/32/lxde/entry",
    "content": "_desktop=LXDE\nsource distro/debian/32/entry\n"
  },
  {
    "path": "distro/debian/32/lxde/install.sh",
    "content": "source distro/debian/32/install.sh\n\n"
  },
  {
    "path": "distro/debian/32/lxde/isoinfo",
    "content": "_desktop=LXDE\n_arch=i386\nsource distro/debian/isoinfo.common\n"
  },
  {
    "path": "distro/debian/32/mate/entry",
    "content": "_desktop=MATE\nsource distro/debian/32/entry\n"
  },
  {
    "path": "distro/debian/32/mate/install.sh",
    "content": "source distro/debian/32/install.sh\n\n"
  },
  {
    "path": "distro/debian/32/mate/isoinfo",
    "content": "_desktop=MATE\n_arch=i386\nsource distro/debian/isoinfo.common\n"
  },
  {
    "path": "distro/debian/32/xfce/entry",
    "content": "_desktop=Xfce\nsource distro/debian/32/entry\n"
  },
  {
    "path": "distro/debian/32/xfce/install.sh",
    "content": "source distro/debian/32/install.sh\n\n"
  },
  {
    "path": "distro/debian/32/xfce/isoinfo",
    "content": "_desktop=Xfce\n_arch=i386\nsource distro/debian/isoinfo.common\n"
  },
  {
    "path": "distro/debian/64/cinnamon/entry",
    "content": "_desktop=Cinnamon\nsource distro/debian/64/entry\n"
  },
  {
    "path": "distro/debian/64/cinnamon/install.sh",
    "content": "source distro/debian/64/install.sh\n\n"
  },
  {
    "path": "distro/debian/64/cinnamon/isoinfo",
    "content": "_desktop=Cinnamon\n_arch=amd64\nsource distro/debian/isoinfo.common\n"
  },
  {
    "path": "distro/debian/64/entry",
    "content": "TITLE=\"Debian 10.10.0 AMD64 ${_desktop}\"\nKERNEL=/liveusb-kernel/debian/64/vmlinuz-4.19.0-9-amd64\nINITRD=/liveusb-kernel/debian/64/initrd.img-4.19.0-9-amd64\nOPTION=\"boot=live findiso=liveusb-data/debian/$ISOFILE\"\nX64=y\n"
  },
  {
    "path": "distro/debian/64/gnome/entry",
    "content": "_desktop=GNOME\nsource distro/debian/64/entry\n"
  },
  {
    "path": "distro/debian/64/gnome/install.sh",
    "content": "source distro/debian/64/install.sh\n\n"
  },
  {
    "path": "distro/debian/64/gnome/isoinfo",
    "content": "_desktop=GNOME\n_arch=amd64\nsource distro/debian/isoinfo.common\n"
  },
  {
    "path": "distro/debian/64/install.sh",
    "content": "install_live() {\n\tinstall -d \"$KERNELDIR/debian/64\" \"$DATADIR/debian\"\n\tcp \"${ISO_FILEPATH}\" \"$DATADIR/debian/\"\n\tmount_iso\n\tcp \"$ISOMNT/live/vmlinuz\"* \"$ISOMNT/live/initrd.img\"* \"$KERNELDIR/debian/64/\"\n\tumount_iso\n}\n\n"
  },
  {
    "path": "distro/debian/64/kde/entry",
    "content": "_desktop=KDE\nsource distro/debian/64/entry\n"
  },
  {
    "path": "distro/debian/64/kde/install.sh",
    "content": "source distro/debian/64/install.sh\n\n"
  },
  {
    "path": "distro/debian/64/kde/isoinfo",
    "content": "_desktop=KDE\n_arch=amd64\nsource distro/debian/isoinfo.common\n"
  },
  {
    "path": "distro/debian/64/lxde/entry",
    "content": "_desktop=LXDE\nsource distro/debian/64/entry\n"
  },
  {
    "path": "distro/debian/64/lxde/install.sh",
    "content": "source distro/debian/64/install.sh\n\n"
  },
  {
    "path": "distro/debian/64/lxde/isoinfo",
    "content": "_desktop=LXDE\n_arch=amd64\nsource distro/debian/isoinfo.common\n"
  },
  {
    "path": "distro/debian/64/mate/entry",
    "content": "_desktop=MATE\nsource distro/debian/64/entry\n"
  },
  {
    "path": "distro/debian/64/mate/install.sh",
    "content": "source distro/debian/64/install.sh\n\n"
  },
  {
    "path": "distro/debian/64/mate/isoinfo",
    "content": "_desktop=MATE\n_arch=amd64\nsource distro/debian/isoinfo.common\n"
  },
  {
    "path": "distro/debian/64/xfce/entry",
    "content": "_desktop=Xfce\nsource distro/debian/64/entry\n"
  },
  {
    "path": "distro/debian/64/xfce/install.sh",
    "content": "source distro/debian/64/install.sh\n\n"
  },
  {
    "path": "distro/debian/64/xfce/isoinfo",
    "content": "_desktop=Xfce\n_arch=amd64\nsource distro/debian/isoinfo.common\n"
  },
  {
    "path": "distro/debian/SHA512SUMS",
    "content": "2204cf6700ac1ed1a47318d9e40fffdfd0f589e2e7525f5943a95de4b6bca09ae8d9de5b55de23b045255c1bedfc67b627026e285e7f4e77abf5815998779173  debian-live-10.10.0-amd64-cinnamon.contents\nf3d2933547f7f7731846aed4270d47c88e9700c7c3482fbdc914c7b7ed33f12e07d138d84b6492f41af7d2b520cf49b9cd27c5254de15331f41034ca66c1b4a8  debian-live-10.10.0-amd64-cinnamon.iso\n558ef2d73cb64c449fba948b17d64547b8ae3c7f1aa5b31754cae1d7cfb1a25ff00b5b8152df231a058bf407bc61cf05972691892c1deab84a7ee73aa21a18e1  debian-live-10.10.0-amd64-cinnamon.log\n35f811450b5d7c0b93fae9305d15efe8c9229eeefd43b058d60da14c1c7ba454609e07307c371534c95be1dbbbd8756eb7b63bf938e17c6493e7a8836c1874f6  debian-live-10.10.0-amd64-cinnamon.packages\n2204cf6700ac1ed1a47318d9e40fffdfd0f589e2e7525f5943a95de4b6bca09ae8d9de5b55de23b045255c1bedfc67b627026e285e7f4e77abf5815998779173  debian-live-10.10.0-amd64-gnome.contents\n9be098fcbe7fa7f8f061d9e4497ddd32aa4085d0c7db119a80dc79c9cf7d9783b234839a696da427b70a3817938aa01627ef414ffd3c54ab6a4a750bbea81e5f  debian-live-10.10.0-amd64-gnome.iso\ncc71037d64d7200afaf55a70d48c54ce60d86c6ed9496a338630c50a4f0c9bfe5b27dc6c0db9f196c6933dc4df5683a87c9cd911371defa43486cf63097952e6  debian-live-10.10.0-amd64-gnome.log\n577d5b61d519191999f6f26d28be4cc1ab420a308fa4123d2fdce8e81f644c50a699128c1131269a66d16adec68dbc124286fcfa24ff4b3cd11d28d2ff2592f2  debian-live-10.10.0-amd64-gnome.packages\nf106d2b17e68824a1c429c26f2183077e9992fda0079ce777dd0f55d52787759a6fe07d5d131581c34c17f477c2473c6ce688d7c3f0c1f7bcec103ac7efa16f5  debian-live-10.10.0-amd64-kde.contents\n8e93cfab40af699f08cd81897e1594741214b811f651145ee26994719e205ec9328b15e165f44f39171eb1f25bafdd3f35e9096bec4b61043f9f84c7ec7874be  debian-live-10.10.0-amd64-kde.iso\n41562bcfe92c7d23ff57221ecb423d36f4c6f0d7e2f2ff17b44ca85080f3a7d86c910ae687a660bfdc3ab8f68e99bcca441080d682a238449c65b4c362b1aa29  debian-live-10.10.0-amd64-kde.log\ndf99de35a470f802a7d5ae802eb653054f531d468d88ea49ea7351f2d333cf4616c727f6be2cbeb2e601b66a028ad3b8300bc639415ad4e5d69ad3b94b212346  debian-live-10.10.0-amd64-kde.packages\nefa506e4489646e558156eb1e9c89e37fa75eece651e786b7cbaae3c0c7d02ff9f19ba2a45feef48820a16a4f5fa4d8ae3d0357b0d1dd8a704a491d899ed4a3e  debian-live-10.10.0-amd64-lxde.contents\nb4a9e55e55d32428bf0ec7f81ab36795f94367fddb70363eeb174b45e44fbe77745b739a1c8118682efff234f98c1ee7e22288ff289fc0ebbcbe6a3a6c00be28  debian-live-10.10.0-amd64-lxde.iso\n8dbc6ecc288db5449e7a9d356cbd97835cf0cd227ce4b676e7c3b23ffd6b32edf6c6acfaeede0892d113062f23d20fbc3c8de0efe361b12c80fe8cbf2cda7acd  debian-live-10.10.0-amd64-lxde.log\ne7d74e91348ba8a5e8fa5c78b4c0b07224110175af1fb3b2ecccdd4ae0d59f09bf56f1bb266c78398b79bd05f53749774396567e4b7f3d6608abed1eb1a039d3  debian-live-10.10.0-amd64-lxde.packages\nefa506e4489646e558156eb1e9c89e37fa75eece651e786b7cbaae3c0c7d02ff9f19ba2a45feef48820a16a4f5fa4d8ae3d0357b0d1dd8a704a491d899ed4a3e  debian-live-10.10.0-amd64-lxqt.contents\n2673939a529b85322321c5ac81a169d67e1ce8a216881f4873e4c10263bb70f805373f7ae36930c2039fff6eb3d874f1a6a97ebdd90544902d66bfaa654e7329  debian-live-10.10.0-amd64-lxqt.iso\n340913301da8be3e2332401a10073832504a5a55d5bd786f00644b254ae13a9bb74e975b4063388aa85ac256f341c0b13890f7fc8bfbcd44b3828d30e289669f  debian-live-10.10.0-amd64-lxqt.log\nf24111472bbf84bbda5b4e0aa798d52d25d9bce58cbe2b03ac8691f63c71b55c463efe8c8f6caee959f113906ac64bc89db7def4e418da87e8372daffaeb262f  debian-live-10.10.0-amd64-lxqt.packages\n270bc6d00af345d12a1b69fdcbeff3dbda2f11c4e46dbbef0b425a8b9487c3203fcd164f59b98bd3faa690642463beda72d7cbb23d47299ac3f61d23cbebdfef  debian-live-10.10.0-amd64-mate.contents\n2216654c795d7f0fed75a43ca420e7bec4370b27572f3e87470bf850b90a1e4a7bde30cdd9aaf9fba681a9c3458322d777d5c6a03a464d8a282e68b772533b42  debian-live-10.10.0-amd64-mate.iso\nf0ae601c69b8aae046f59d652deb96bd91bb5fb38d0710c1bf0e75249135832297e7155f4c3aad0afd93a1193480a0ab62b5bf2250c5c296df6fb046ba223714  debian-live-10.10.0-amd64-mate.log\na1c9e4cc2cfdf8417594fd7c334642d7dd01ea102c4bb99b7feeab8aecb86436943562b834d3e3266e01ec12a192aa26bf7048a340b774469e4580941c8b507c  debian-live-10.10.0-amd64-mate.packages\n2cd7bd744635c918064a413aff468423de431a8c083cba4fef6509e8feb9236fb63f0f5a897c65a5060e46d4002f3896c17f1289b9f20b902359765f97648b6a  debian-live-10.10.0-amd64-standard.contents\n860ef69250e3e7f96c58defdb0273ba7bb4e1dc2265e263104650284eb39a7f44c8884339221707965dff628b59e26d0469fd71f3525a34129ee916a2d4b1af8  debian-live-10.10.0-amd64-standard.iso\n7cc5d1e943152d9c8ea9448ba4b0e5b915348bd4aef2b9b13bbb318574e84168ce4af34f25b9ef85d9b4855228654e3bd95e14bb803fa4a7d11236bb7b494427  debian-live-10.10.0-amd64-standard.log\n344928f3a8fc0ad48ab7d56a140137f97e177bf1d87c2923a05a703d3403a793b571d1a4ee98d6057e10457c2c52579818bf6127917d3971c4d325038f17c481  debian-live-10.10.0-amd64-standard.packages\n819461f7d6362b3c19a422bb1721d9fcef767f16d5d366403d7f40b7e8b5e8bab293299f0b9d29c7b67aeb7e244c7a3020dd1792f237379b6927669c2cd3782a  debian-live-10.10.0-amd64-xfce.contents\n1e134422f1a8397efe02fe3608ce0c3a1bc63ca0b3924621c97900d4a380af6dceed61c0079519c0376d31f88921200c8134d2ec8b57e8e821cad8966a3212b8  debian-live-10.10.0-amd64-xfce.iso\n740a341c0b173ff9644363b0089a60531ec6cb369aa1ca328ad9c58d06ce02df592441ae7e7ba67efb3f863a3bd912b0c3e3f0c5ba5f421b9d88bc5b224aa8b5  debian-live-10.10.0-amd64-xfce.log\n12ffd020c077e948c8344a201cee41897a29e9860787713d2d1a4eddb309ad011556eb6193fc0d6ec726495ef090949e6de70e883f36b9c874dff7921198ecb8  debian-live-10.10.0-amd64-xfce.packages\n2c8b98709ea3c823cdf32af79e224b51f826bc2fece0fbd08a8513114905efe13ccab8114228f37bdba5a32abf85d08d63ed5686ca505cdfd1128a3eb2742f83  debian-live-10.10.0-i386-cinnamon.contents\n5b319d91bfbfd85bb90a6319b2930a153da0653456ac33d5a7e97b4fc2e7a9147d0cb0259dbaa182118df2756a4bd5fc80f624f0d193db1e5c2faa2f632df1e2  debian-live-10.10.0-i386-cinnamon.iso\nc86e145b102bb703aaaeb1bdc60b6ac89957137c1df42c0ae4149274860b659710bf32be88c1d129f7740d8e5bedecbd1b01c121cbd3db284ac9688273253d3d  debian-live-10.10.0-i386-cinnamon.log\n5f726aa1db3328234128a6aaeb1fe7c5089233a3bd4a06a0bd4c9c28905a30aadd263fd7faffd717a40bac63c008df0035f374d61ade7239f30800e96e9345a8  debian-live-10.10.0-i386-cinnamon.packages\n2c8b98709ea3c823cdf32af79e224b51f826bc2fece0fbd08a8513114905efe13ccab8114228f37bdba5a32abf85d08d63ed5686ca505cdfd1128a3eb2742f83  debian-live-10.10.0-i386-gnome.contents\n3d2f496d6d9f4c0f5469779b1562fe7f72af49a489cc042dd3f90509e072f2bf394309ec818c6619445da8163d2f361a058244994cef1a36b831d6aa859f47ee  debian-live-10.10.0-i386-gnome.iso\ne55d3fb773c22106f3ba55e01db66c937be544726ec463a999068f16232fe52c188a99dbade7fe3d3c381f938b21015e0926925677cfb1a12d12388c62d9b6e9  debian-live-10.10.0-i386-gnome.log\nf7627ab3dc78a450da368ce3479d3cb6f13b3da726c08e0c4325d6695b13eed32c7d9df7af1230cf27081cbaac5288c9f617a47924122932dcdb1839ee4da166  debian-live-10.10.0-i386-gnome.packages\nc37887308032e78ab9a7e87c070b827964c9d60f9b0866ac9b7309815e57685234dff56a2d51acbf41c606509be57b33b9a3a2eeebf0bf639d00d336624965e6  debian-live-10.10.0-i386-kde.contents\nb0a0dc98892caac6308eb48de1c34f485f886e2254b8286810985a4ac44902ab26e8854f3c1c165bc82c9122bb5ee7dc4dc5a0e74c16edd36f55557a6a7fcabc  debian-live-10.10.0-i386-kde.iso\n1dd09b1e8fdcd83172d0e84246dd2939cfac2ee9e5382c087a40084e516142eb5ee5c7e60d1ae161fa44883fcf01d93dcefab562921519738eb40611507b41a5  debian-live-10.10.0-i386-kde.log\n67f0956404134dd37729d6d0fdab521165eb2f6005aa80319350057c8e87a14c3d8594d523813429e8acfbe38802b86feaaf0c4d7550a5a9abb9e4e6ba87cbb1  debian-live-10.10.0-i386-kde.packages\n4864a98487fc180739d8fd31c81fcd5c4e4d64cb9da230569936236596380bdd99bce6ff171b89855f9de35c2386171f9dc74bc0edb26de00bb250bc04d082dc  debian-live-10.10.0-i386-lxde.contents\n20e109f63dad53525fcf85a4c1df8bd722bb90431857057749f000fb621275436c167acd87089d70d2fd9a4575a824fa83082be27d96033c7edd6cff43c695b4  debian-live-10.10.0-i386-lxde.iso\n41346466d79c10de62b85ab9b29d3f7d7cd58c62a2903ef9d28252ad56ca5289907caf541d47685c274f00d1f4855acf145468a20986fe961a6a1a1a3f0559b5  debian-live-10.10.0-i386-lxde.log\nab4ef075627e9459452fa1f53b0aec0280d2ae08d688835e0ed11e00169f96f4bdd78947b5753e755be0aeafc985501d6714c6de6764dac2b00672ac2c500d5b  debian-live-10.10.0-i386-lxde.packages\n4864a98487fc180739d8fd31c81fcd5c4e4d64cb9da230569936236596380bdd99bce6ff171b89855f9de35c2386171f9dc74bc0edb26de00bb250bc04d082dc  debian-live-10.10.0-i386-lxqt.contents\nad2c8a2d69334735b191b051d412245eac2be883937659742e1305ab00b0741ac9480ab990dcba4300d948277b75a6667888cb840654b4fb61a488c1660e7d93  debian-live-10.10.0-i386-lxqt.iso\n357d979e2af1ae902324911543235a517173e1bb8b77bf92e1ac072a17e26379f7b6932d2ac76537e0ddcfcf0b2bfcee93f7ce06f7fada4ed59c8f3da027b29c  debian-live-10.10.0-i386-lxqt.log\n9da981d3a12810ef96215eef5edf4fc3f089d6fe8f27f7f4434a4fbb92a2e0b5dad5e867ed8a940c6b8b9a82781c3a0effaa3007757e69906f552c907163d89e  debian-live-10.10.0-i386-lxqt.packages\n9ba7b46460592c8a2a7d28c8e6508fb47a6df7de9c6211da01d8e0f1594cee2713401cff8644d163d1dbd0b548b793963f05f450d5765a76778e40547c1e32f9  debian-live-10.10.0-i386-mate.contents\n4af08a762e0f3afebd9e03399a91b1744965515bb00792c8e0d0db1c6985e068b6b1d6395d2d6916893aae12145f3bf4a2535cd25d17ccf8e342a52776a4a96f  debian-live-10.10.0-i386-mate.iso\n828a24bab77e4558207882180f107c48202d9329d26ca256671542c1e72ef27d0f4d1e82ec84ffd8ac4cbd973d8a608367a28503e0cc3034f5ac077e2ed9e428  debian-live-10.10.0-i386-mate.log\n2720124dcb80094805e120d7947617f5835955327f4efc17755a5d6125b5168c3ac864dbd1eae7a6eb0f4a7afc2c6122a7a5f962d02b145e52555263796a1b07  debian-live-10.10.0-i386-mate.packages\n808a32b2d905c47acabbd47c45f5737543f2c8096d0ce9dec184d91bf66922912f716febd82dc1ecbc11e94b4a146aaee86ccb1845195902d63768b561343c27  debian-live-10.10.0-i386-standard.contents\n503133dfddcf4bcc83d957e2c5ca9a806c911ccd4b18281ea3b01d3451ea7e149410156c1ff83de39fdf105a9821a4105352bb46bb132f5505de477ef9e7cd0d  debian-live-10.10.0-i386-standard.iso\nd198fa235780b727b5fc6dc2946d1d63dee633075b26c7e50fb10d202fe86346a4f97bba7b2020efe7597d7cdf57ca1c36488eb51c1e1a070c58d1adc275ebd6  debian-live-10.10.0-i386-standard.log\n1678f2b15c4304f7523465073aaca171a78996146d52072d0dd939681f44b75b9b544f74ceeeb7265f07620a6a4e741817fe409b2c34ec726555844796de44ee  debian-live-10.10.0-i386-standard.packages\n7b4647032dd4969c6ab0e46536c0f7faf5f80a9624ce65e569f25727fb31ace28bdb3ae51dc361033e63750f050371c5c57d92a2ba1fcfd321a8315fb220d355  debian-live-10.10.0-i386-xfce.contents\n35889dda13cdf3304afaf35c1d20c3e4ec77f5f63626a1118c0419a828c84d40572997ca9dd00820accaff927ab48482d6d33b23be5b679b108ec7c001885d65  debian-live-10.10.0-i386-xfce.iso\n900c82bf2c9e394f105fc8826237913145870c8cd2e5b40defc359fc941c15a9605189a7c858aab43d24958d076ab536437ce0df4436824753c71f09a233b3f8  debian-live-10.10.0-i386-xfce.log\n029a9f06abefeca693f8ed11de447123e7aa3f763976805221ad230ee875156afb9526b0fe56ee828702a1fa4242f3398f53d8dd349751cb80618df0bbc11e67  debian-live-10.10.0-i386-xfce.packages\n"
  },
  {
    "path": "distro/debian/distroinfo",
    "content": "DISTRONAME='Debian'\nKEYWORD='debian'\n"
  },
  {
    "path": "distro/debian/isoinfo.common",
    "content": "_isover=10.10.0\n\nISONAME=\"$DISTRONAME ${_isover} ${_arch} ${_desktop}\"\nISOURL=\"${_isover}-live/${_arch}/iso-hybrid/debian-live-${_isover}-${_arch}-${_desktop,,}.iso\"\nHASHTOOL=sha512sum\nHASHFILE=distro/debian/SHA512SUMS\nVERIFY=hashfile\nmirrorlist=(\nhttps://mirrors.tuna.tsinghua.edu.cn/debian-cd\nhttp://mirrors.ustc.edu.cn/debian-cd\n)\n"
  },
  {
    "path": "distro/deepin/distroinfo",
    "content": "DISTRONAME='Deepin'\nKEYWORD='deepin'\n"
  },
  {
    "path": "distro/deepin/entry",
    "content": "# from aguslr/multibootusb\nTITLE='Deepin installer x86_64'\nKERNEL=/liveusb-kernel/$KEYWORD/vmlinuz\nINITRD=(/liveusb-kernel/$KEYWORD/initrd.lz)\nOPTION=\"root=UUID=$UUID fromiso=liveusb-data/$KEYWORD/$ISOFILE boot=live components quiet splash union=overlay livecd-installer\"\nX64=y\n"
  },
  {
    "path": "distro/deepin/install.sh",
    "content": "install_live() {\n\tmount_iso\n\tinstall -d \"$DATADIR/$KEYWORD\" \"$KERNELDIR/$KEYWORD\"\n\tcp \"${ISO_FILEPATH}\" \"$DATADIR/$KEYWORD/\"\n\tcp \"$ISOMNT/live/\"{vmlinuz,initrd.lz} \"$KERNELDIR/$KEYWORD/\"\n\tumount_iso\n}\n"
  },
  {
    "path": "distro/deepin/isoinfo",
    "content": "_isover=20\nISONAME=\"$DISTRONAME ${_isover} amd64\"\nISOURL=\"${_isover}/deepin-desktop-community-1002-amd64.iso\"\nSHA256=7411661c346a010032fbf27345377ab117f76879f17d6dcfdd243072e064d109\n\nmirrorlist=(\nhttps://mirrors.tuna.tsinghua.edu.cn/deepin-cd\nhttp://cdimage.deepin.com/releases\n)\n"
  },
  {
    "path": "distro/fedora/36/entry",
    "content": "version=36\nsource distro/fedora/entry.common\n"
  },
  {
    "path": "distro/fedora/36/install.sh",
    "content": "version=36\nsource distro/fedora/install.sh\n"
  },
  {
    "path": "distro/fedora/36/isoinfo",
    "content": "ISONAME=\"$DISTRONAME 36 Workstation\"\nISOURL=releases/36/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-36-1.5.iso\nSHA256=80169891cb10c679cdc31dc035dab9aae3e874395adc5229f0fe5cfcc111cc8c\n\nmirrorlist=(\nhttps://mirrors.tuna.tsinghua.edu.cn/fedora\nhttp://mirrors.ustc.edu.cn/fedora/linux\n)\n"
  },
  {
    "path": "distro/fedora/distroinfo",
    "content": "DISTRONAME='Fedora'\nKEYWORD='fedora'\n"
  },
  {
    "path": "distro/fedora/entry.common",
    "content": "TITLE=\"Fedora $version x86_64\"\nKERNEL=/liveusb-kernel/fedora/$version/vmlinuz\nINITRD=/liveusb-kernel/fedora/$version/initrd.img\nOPTION=\"root=live:UUID=$UUID ro rd.live.dir=liveusb-data/fedora/$version rd.live.image quiet\"\nX64=y\n"
  },
  {
    "path": "distro/fedora/install.sh",
    "content": "install_live() {\n\tmount_iso\n\tinstall -d \"$DATADIR/fedora/$version\" \"$KERNELDIR/fedora/$version\"\n\tcp \"$ISOMNT/LiveOS\"/* \"$DATADIR/fedora/$version\"\n\tcp \"$ISOMNT/isolinux/vmlinuz\" \"$ISOMNT/isolinux/initrd.img\" \"$KERNELDIR/fedora/$version\"\n\tumount_iso\n}\n\n"
  },
  {
    "path": "distro/grml/64/entry",
    "content": "ver=2022.11\nTITLE=\"Grml $ver 64-bit full\"\nKERNEL=/liveusb-kernel/grml/64/vmlinuz\nINITRD=/liveusb-kernel/grml/64/initrd.img\nOPTION=\"boot=live findiso=liveusb-data/grml/$ISOFILE live-media-path=/live/grml64-full/ ignore_bootid iomem=relaxed\"\nX64=y\n"
  },
  {
    "path": "distro/grml/64/install.sh",
    "content": "install_live() {\n\tinstall -d \"$KERNELDIR/grml/64\" \"$DATADIR/grml\"\n\tcp \"${ISO_FILEPATH}\" \"$DATADIR/grml/\"\n\tmount_iso\n\tcp \"$ISOMNT/boot/grml64full/vmlinuz\" \"$ISOMNT/boot/grml64full/initrd.img\" \"$KERNELDIR/grml/64/\"\n\tumount_iso\n}\n"
  },
  {
    "path": "distro/grml/64/isoinfo",
    "content": "ver=2022.11\nISONAME=\"Grml $ver 64-bit full\"\nISOURL=\"grml64-full_$ver.iso\"\nSHA256=8b8e4a548a7dcdcd8f3e93098e740c012b5427cf5f4bc5730ef428a6feddd877\n\nmirrorlist=(\nhttp://download.grml.org\n)\n"
  },
  {
    "path": "distro/grml/distroinfo",
    "content": "DISTRONAME='Grml'\nKEYWORD='grml'\n"
  },
  {
    "path": "distro/hyperbola/distroinfo",
    "content": "DISTRONAME='Hyperbola'\nKEYWORD='hyperbola'\n"
  },
  {
    "path": "distro/hyperbola/entry1",
    "content": "TITLE='Hyperbola GNU/Linux-libre x86_64'\nKERNEL=/liveusb-kernel/hyperbola/boot/x86_64/vmlinuz\nINITRD=(/liveusb-kernel/hyperbola/boot/x86_64/hyperiso.img)\nOPTION=\"hyperisodevice=/dev/disk/by-uuid/$UUID hyperisobasedir=liveusb-data/hyperbola\"\nX64=y\n"
  },
  {
    "path": "distro/hyperbola/entry2",
    "content": "TITLE='Hyperbola GNU/Linux-libre i686'\nKERNEL=/liveusb-kernel/hyperbola/boot/i686/vmlinuz\nINITRD=(/liveusb-kernel/hyperbola/boot/i686/hyperiso.img)\nOPTION=\"hyperisodevice=/dev/disk/by-uuid/$UUID hyperisobasedir=liveusb-data/hyperbola\"\nX64=n\n"
  },
  {
    "path": "distro/hyperbola/install.sh",
    "content": "install_live() {\n\tmount_iso\n\tinstall -d \"$DATADIR/hyperbola\"\n\tcp -r \"$ISOMNT/hyperbola/\"{aitab,i686,x86_64} \"$DATADIR/hyperbola/\"\n\tinstall -d \"$KERNELDIR/hyperbola\"\n\tcp -r \"$ISOMNT/hyperbola/boot\" \"$KERNELDIR/hyperbola\"\n\tumount_iso\n}\n"
  },
  {
    "path": "distro/hyperbola/isoinfo",
    "content": "_isover=milky-way-v0.3.1\nISONAME='Hyperbola Milky Way v0.3.1'\nISOURL=other/live_images/gnu-plus-linux-libre/hyperbola-${_isover}/hyperbola-${_isover}-dual.iso\nSHA512=9e098157025fecaa313e5a878d993952c88417dfa78c3a9885d2cae54f4a00e1062b75eb9dc38b356f389ec68ccb6d12c40e41a2a31ae563273938889efa498c\n\nmirrorlist=(\nhttps://mirror.fsf.org/hyperbola/sources\nhttps://repo.hyperbola.info:50000\nhttps://mirror.cedia.org.ec/hyperbola/sources\nhttps://ftp.nluug.nl/os/Linux/distr/hyperbola/sources\n)\n"
  },
  {
    "path": "distro/kali/distroinfo",
    "content": "DISTRONAME='Kali Linux'\nKEYWORD='kali'\n"
  },
  {
    "path": "distro/kali/entry",
    "content": "TITLE='Kali Linux'\nKERNEL=/liveusb-kernel/kali/64/vmlinuz\nINITRD=/liveusb-kernel/kali/64/initrd.img\nOPTION=\"boot=live username=root hostname=kali findiso=liveusb-data/kali/$ISOFILE\"\nX64=y\n"
  },
  {
    "path": "distro/kali/install.sh",
    "content": "install_live() {\n\tinstall -d \"$KERNELDIR/kali/64\" \"$DATADIR/kali\"\n\tcp \"${ISO_FILEPATH}\" \"$DATADIR/kali/\"\n\tmount_iso\n\tcp \"$ISOMNT/live/vmlinuz\" \"$ISOMNT/live/initrd.img\" \"$KERNELDIR/kali/64/\"\n\tumount_iso\n}\n\n"
  },
  {
    "path": "distro/kali/isoinfo",
    "content": "_isover=2020.1b\nISONAME=\"$DISTRONAME $_isover amd64\"\nISOURL=\"kali-$_isover/kali-linux-$_isover-live-amd64.iso\"\nSHA256=611476f7d432e737478631857beb2b49c688c776f8da20b8da56c5151722811f\n\nmirrorlist=(\nhttps://mirrors.tuna.tsinghua.edu.cn/kali-images\nhttp://cdimage.kali.org\n)\n"
  },
  {
    "path": "distro/manjaro/architect/entry",
    "content": "_arch=x86_64\n_flavour=ARCHITECT\nsource distro/manjaro/entry\n"
  },
  {
    "path": "distro/manjaro/architect/install.sh",
    "content": "ARCH=x86_64\nsource distro/manjaro/install.sh\n"
  },
  {
    "path": "distro/manjaro/architect/isoinfo",
    "content": "source distro/manjaro/isoinfo.common\n_isodate=18.0.2\n\nISONAME=\"$DISTRONAME x86_64 $_isodate ARCHITECT\"\nISOURL=manjaro-architect-${_isodate}-stable-x86_64.iso\nSHA256=1c2d1500009c87816ead28cbeb29c7838ed46e2a99ffe24c14e0757d73c772f8\n"
  },
  {
    "path": "distro/manjaro/distroinfo",
    "content": "DISTRONAME='Manjaro Linux'\nKEYWORD='manjaro'\n"
  },
  {
    "path": "distro/manjaro/entry",
    "content": "TITLE=\"Manjaro Linux $_arch $_flavour\"\nKERNEL=/liveusb-kernel/manjaro/vmlinuz-${_arch}\nINITRD=(/liveusb-kernel/manjaro/intel_ucode.img\n\t\t/liveusb-kernel/manjaro/initramfs-${_arch}.img)\nOPTION=\"img_dev=/dev/disk/by-uuid/$UUID img_loop=liveusb-data/manjaro/$ISOFILE\"\n[ $_arch == i686 ] && X64=n || X64=y\n\n"
  },
  {
    "path": "distro/manjaro/gnome/entry",
    "content": "_arch=x86_64\n_flavour=GNOME\nsource distro/manjaro/entry\n"
  },
  {
    "path": "distro/manjaro/gnome/install.sh",
    "content": "ARCH=x86_64\nsource distro/manjaro/install.sh\n"
  },
  {
    "path": "distro/manjaro/gnome/isoinfo",
    "content": "source distro/manjaro/isoinfo.common\nISONAME=\"$DISTRONAME x86_64 $_isodate GNOME\"\nISOURL=manjaro-gnome-${_isodate}-stable-x86_64.iso\nSHA256=2508ab505fde630496a868d468007ca46aaca4c2223223512b0e9f3138fdb31f\n"
  },
  {
    "path": "distro/manjaro/install.sh",
    "content": "install_live() {\n\tinstall -d \"$DATADIR/manjaro/\" \"$KERNELDIR/manjaro\"\n\tmount_iso\n\tcp \"$ISOMNT/boot/vmlinuz-$ARCH\" \"$ISOMNT/boot/initramfs-$ARCH.img\" \"$ISOMNT/boot/intel_ucode.img\" \\\n\t       \t\"$KERNELDIR/manjaro\"\n\tumount_iso\n\tcp \"${ISO_FILEPATH}\" \"$DATADIR/manjaro/\"\n}\n\n"
  },
  {
    "path": "distro/manjaro/isoinfo.common",
    "content": "_isodate=18.0.4\n\nmirrorlist=(\nhttps://osdn.net/dl/manjaro\n)\n"
  },
  {
    "path": "distro/manjaro/kde/entry",
    "content": "_arch=x86_64\n_flavour=KDE\nsource distro/manjaro/entry\n"
  },
  {
    "path": "distro/manjaro/kde/install.sh",
    "content": "ARCH=x86_64\nsource distro/manjaro/install.sh\n"
  },
  {
    "path": "distro/manjaro/kde/isoinfo",
    "content": "source distro/manjaro/isoinfo.common\nISONAME=\"$DISTRONAME x86_64 $_isodate KDE\"\nISOURL=manjaro-kde-${_isodate}-stable-x86_64.iso\nSHA256=ab0ab7963ffbba6956906e27f6e9e1e5da823ab25356564208f158b8ba00b1c9\n"
  },
  {
    "path": "distro/manjaro/xfce/entry",
    "content": "_arch=x86_64\n_flavour=Xfce\nsource distro/manjaro/entry\n"
  },
  {
    "path": "distro/manjaro/xfce/install.sh",
    "content": "ARCH=x86_64\nsource distro/manjaro/install.sh\n"
  },
  {
    "path": "distro/manjaro/xfce/isoinfo",
    "content": "source distro/manjaro/isoinfo.common\nISONAME=\"$DISTRONAME x86_64 $_isodate Xfce\"\nISOURL=\"manjaro-xfce-${_isodate}-stable-x86_64.iso\"\nSHA256=ea763ae74d14896568ac2eff74faf0ba5bdbb73e38d77bc12804292096d0056b\n"
  },
  {
    "path": "distro/mint/cinnamon/config",
    "content": "_arch=x86_64\n_ver=21.1\n_de=Cinnamon\n"
  },
  {
    "path": "distro/mint/cinnamon/entry",
    "content": "source distro/mint/cinnamon/config\nsource distro/mint/entry.common\n"
  },
  {
    "path": "distro/mint/cinnamon/install.sh",
    "content": "source distro/mint/cinnamon/config\n_ver=\"${_ver}/${_de}\"\nsource distro/mint/install.sh\n"
  },
  {
    "path": "distro/mint/cinnamon/isoinfo",
    "content": "source distro/mint/cinnamon/config\nsource distro/mint/isoinfo.common\nISONAME=\"$DISTRONAME ${_ver} x86_64 (${_de})\"\nISOURL=stable/${_ver}/linuxmint-${_ver}-cinnamon-64bit.iso\n"
  },
  {
    "path": "distro/mint/distroinfo",
    "content": "DISTRONAME='Linux Mint'\nKEYWORD='mint'\n"
  },
  {
    "path": "distro/mint/entry.common",
    "content": "TITLE=\"Linux Mint $_ver $_arch with $_de Desktop\"\nif [[ \"$_arch\" == x86_64 ]]; then\n   _bit=64\n   X64=y\nelse\n   _bit=32\n   X64=n\nfi\nKERNEL=/liveusb-kernel/mint/$_ver/$_de/$_bit/vmlinuz\nINITRD=/liveusb-kernel/mint/$_ver/$_de/$_bit/initrd.lz\nOPTION=\"file=/cdrom/preseed/linuxmint.seed boot=casper iso-scan/filename=/liveusb-data/mint/$ISOFILE quiet splash --\"\n"
  },
  {
    "path": "distro/mint/install.sh",
    "content": "VMLINUZ=vmlinuz\nINITRD=initrd.lz\nsource distro/ubuntu/install.sh\n"
  },
  {
    "path": "distro/mint/isoinfo.common",
    "content": "HASHTOOL=sha256sum\nHASHFILE=distro/mint/sha256sum.txt\nVERIFY=hashfile\n\nmirrorlist=(\nhttps://mirrors.tuna.tsinghua.edu.cn/linuxmint-cd\nhttp://mirrors.ustc.edu.cn/linuxmint-cd\n)\n"
  },
  {
    "path": "distro/mint/lmde/entry",
    "content": "TITLE=\"Linux Mint Debian Edition x86_64\"\nKERNEL=\"/liveusb-kernel/mint/lmde/64/vmlinuz\"\nINITRD=\"/liveusb-kernel/mint/lmde/64/initrd.lz\"\nOPTION=\"boot=live live-config findiso=liveusb-data/mint/$ISOFILE quiet splash --\"\n"
  },
  {
    "path": "distro/mint/lmde/install.sh",
    "content": "install_live() {\n\tinstall -d \"$KERNELDIR/mint/lmde/64\" \"$DATADIR/mint\"\n\tmount_iso\n\tcp \"$ISOMNT/live/vmlinuz\" \"$ISOMNT/live/initrd.lz\" \"$KERNELDIR/mint/lmde/64/\"\n\tcp \"${ISO_FILEPATH}\" \"$DATADIR/mint/\"\n\tumount_iso\n}\n"
  },
  {
    "path": "distro/mint/lmde/isoinfo",
    "content": "ISONAME=\"$DISTRONAME Debian Edition\"\nISOURL=debian/lmde-4-cinnamon-64bit.iso\nSHA256=fb6fb4f507f1de979a8922f9e503ae0ad8109e87ea1a9a163a6b30f819971256\n\nmirrorlist=(\nhttps://mirrors.tuna.tsinghua.edu.cn/linuxmint-cd\nhttp://mirrors.ustc.edu.cn/linuxmint-cd\n)\n"
  },
  {
    "path": "distro/mint/mate/config",
    "content": "_arch=x86_64\n_ver=21.1\n_de=MATE\n"
  },
  {
    "path": "distro/mint/mate/entry",
    "content": "source distro/mint/mate/config\nsource distro/mint/entry.common\n"
  },
  {
    "path": "distro/mint/mate/install.sh",
    "content": "source distro/mint/mate/config\n_ver=\"${_ver}/${_de}\"\nsource distro/mint/install.sh\n"
  },
  {
    "path": "distro/mint/mate/isoinfo",
    "content": "source distro/mint/mate/config\nsource distro/mint/isoinfo.common\nISONAME=\"$DISTRONAME ${_ver} x86_64 (${_de})\"\nISOURL=stable/${_ver}/linuxmint-${_ver}-mate-64bit.iso\n"
  },
  {
    "path": "distro/mint/sha256sum.txt",
    "content": "2df322f030d8ff4633360930a92d78829d10e515d2f6975b9bdfd1c0de769aca *linuxmint-21.1-cinnamon-64bit.iso\nf7fb9c0500e583c46587402578547ea56125e0a054097f9f464a2500830c8b25 *linuxmint-21.1-mate-64bit.iso\n6fea221b5b0272d55de57f3d31498cdf76682f414e60d28131dc428e719efa8b *linuxmint-21.1-xfce-64bit.iso\n"
  },
  {
    "path": "distro/mint/xfce/config",
    "content": "_arch=x86_64\n_ver=21.1\n_de=Xfce\n"
  },
  {
    "path": "distro/mint/xfce/entry",
    "content": "source distro/mint/xfce/config\nsource distro/mint/entry.common\n"
  },
  {
    "path": "distro/mint/xfce/install.sh",
    "content": "source distro/mint/xfce/config\n_ver=\"${_ver}/${_de}\"\nsource distro/mint/install.sh\n"
  },
  {
    "path": "distro/mint/xfce/isoinfo",
    "content": "source distro/mint/xfce/config\nsource distro/mint/isoinfo.common\nISONAME=\"$DISTRONAME ${_ver} x86_64 (${_de})\"\nISOURL=stable/${_ver}/linuxmint-${_ver}-xfce-64bit.iso\n"
  },
  {
    "path": "distro/mx/32/entry",
    "content": "X64=n\nsource distro/mx/entry\n"
  },
  {
    "path": "distro/mx/32/install.sh",
    "content": "BITS=32\nsource distro/mx/install.sh\n"
  },
  {
    "path": "distro/mx/32/isoinfo",
    "content": "source distro/mx/isoinfo.common\n\nISONAME=\"$DISTRONAME Linux $_isover i386\"\nISOURL=\"MX-${_isover}_386.iso\"\nSHA256=187781c59394d086f347b00afe2f75e38e18a1044624998939c8403b40d4975e\n"
  },
  {
    "path": "distro/mx/64/entry",
    "content": "source distro/mx/entry\n"
  },
  {
    "path": "distro/mx/64/install.sh",
    "content": "BITS=64\nsource distro/mx/install.sh\n"
  },
  {
    "path": "distro/mx/64/isoinfo",
    "content": "source distro/mx/isoinfo.common\n\nISONAME=\"$DISTRONAME Linux $_isover x64\"\nISOURL=\"MX-${_isover}_x64.iso\"\nSHA256=7cf6d7dafe8200e7553f3548121eac077e87f891b5cdb939c0b677b9d7720e4c\n"
  },
  {
    "path": "distro/mx/distroinfo",
    "content": "DISTRONAME='MX'\nKEYWORD='mx'\n"
  },
  {
    "path": "distro/mx/entry",
    "content": "if [ \"$X64\" = n ]; then\n\tBITS=32\n\tARCH_STR=\"i386\"\nelse\n\tBITS=64\n\tARCH_STR=\"x86_64\"\n\tX64=y\nfi\nTITLE=\"MX Linux 19.1 $ARCH_STR\"\nKERNEL=\"/liveusb-kernel/$KEYWORD/$BITS/vmlinuz\"\nINITRD=\"/liveusb-kernel/$KEYWORD/$BITS/initrd.gz\"\n# from aguslr/multibootusb\nOPTION=\"from=hd,usb root=UUID=$UUID fromiso=liveusb-data/$KEYWORD/$ISOFILE\"\n"
  },
  {
    "path": "distro/mx/install.sh",
    "content": "install_live() {\n\tinstall -d \"$KERNELDIR/$KEYWORD/$BITS\" \"$DATADIR/$KEYWORD\"\n\tcp \"${ISO_FILEPATH}\" \"$DATADIR/$KEYWORD/\"\n\tmount_iso\n\tcp \"$ISOMNT/antiX/vmlinuz\" \"$ISOMNT/antiX/initrd.gz\" \\\n\t\t\"$KERNELDIR/$KEYWORD/$BITS/\"\n\tumount_iso\n}\n"
  },
  {
    "path": "distro/mx/isoinfo.common",
    "content": "_isover=19.2\n\nmirrorlist=(\nhttps://mirrors.tuna.tsinghua.edu.cn/mxlinux-isos/MX/Final\nhttp://iso.mxrepo.com/Downloads/Final/MX-${_isover}\nhttp://it.mxrepo.com/Final/MX-${_isover}\n)\n"
  },
  {
    "path": "distro/opensuse/15/entry",
    "content": "version=15\nCDLABEL=openSUSE_Leap_15.0_KDE_Live\nsource distro/opensuse/entry.common\n"
  },
  {
    "path": "distro/opensuse/15/install.sh",
    "content": "version=15\nsource distro/opensuse/install.sh\n"
  },
  {
    "path": "distro/opensuse/15/isoinfo",
    "content": "ISONAME=\"$DISTRONAME 15 KDE Live\"\nISOURL=distribution/leap/15.0/live/openSUSE-Leap-15.0-KDE-Live-x86_64-Snapshot17.9-Media.iso\nSHA256=e5b8c9ae1dd596e8fc5cda89d616cc6e8f5aecccba668d198a8c2d3b19175e9e\n\nmirrorlist=(\nhttps://download.opensuse.org\nhttps://mirrors.tuna.tsinghua.edu.cn/opensuse\n)\n"
  },
  {
    "path": "distro/opensuse/distroinfo",
    "content": "DISTRONAME='OpenSUSE'\nKEYWORD='opensuse'\n"
  },
  {
    "path": "distro/opensuse/entry.common",
    "content": "TITLE=\"OpenSUSE $version x86_64\"\nKERNEL=/liveusb-kernel/opensuse/$version/linux\nINITRD=/liveusb-kernel/opensuse/$version/initrd\nOPTION=\"root=live:CDLABEL=$CDLABEL iso-scan/filename=liveusb-data/opensuse/$ISOFILE\"\nX64=y\n"
  },
  {
    "path": "distro/opensuse/install.sh",
    "content": "install_live() {\n\tmount_iso\n\tinstall -d \"$DATADIR/opensuse/\" \"$KERNELDIR/opensuse/$version\"\n\tcp \"$ISOMNT/boot/x86_64/loader\"/{linux,initrd} \\\n\t\t\"$KERNELDIR/opensuse/$version\"\n\tumount_iso\n\tcp \"${ISO_FILEPATH}\" \"$DATADIR/opensuse/\"\n}\n"
  },
  {
    "path": "distro/opensuse/meta",
    "content": "entry() {\n\tisofn=\"$(basename \"$ISOFILE\")\"\n\tlabel=\"$(get_iso_label \"${ISO_FILEPATH}\")\"\n\tTITLE=\"$label\"\n\tKERNEL=/liveusb-kernel/$KEYWORD/linux\n\tINITRD=/liveusb-kernel/$KEYWORD/initrd\n\tOPTION=\"root=live:CDLABEL=$label iso-scan/filename=liveusb-data/$KEYWORD/$isofn\"\n\tX64=y\n}\n\ninstall_live() {\n\tmount_iso\n\tinstall -d \"$DATADIR/$KEYWORD\" \"$KERNELDIR/$KEYWORD\"\n\tcp \"$ISOMNT/boot/x86_64/loader\"/{linux,initrd} \\\n\t\t\"$KERNELDIR/$KEYWORD\"\n\tumount_iso\n\tcp \"${ISO_FILEPATH}\" \"$DATADIR/$KEYWORD/\"\n}\n\nentries=(entry)\n"
  },
  {
    "path": "distro/opensuse/tumbleweed/entry",
    "content": "# Thank aguslr's multibootusb (https://github.com/aguslr/multibootusb)\n# for the command line\n\nversion=tumbleweed\nTITLE=\"OpenSUSE Tumbleweed x86_64\"\nKERNEL=/liveusb-kernel/opensuse/$version/linux\nINITRD=/liveusb-kernel/opensuse/$version/initrd\nOPTION=\"install=hd:liveusb-data/opensuse/$ISOFILE\"\nX64=y\n"
  },
  {
    "path": "distro/opensuse/tumbleweed/install.sh",
    "content": "version=tumbleweed\nsource distro/opensuse/install.sh\n"
  },
  {
    "path": "distro/opensuse/tumbleweed/isoinfo",
    "content": "# Copyright (C)  2018 Iru Cai <mytbk920423@gmail.com>\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nISONAME=\"$DISTRONAME Tumbleweed\"\nISOURL=tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso\nVERIFY=verify_suse\nVERIFILE=openSUSE-Tumbleweed-DVD-x86_64-Current.iso.sha256\n\nmirrorlist=(\nhttps://download.opensuse.org\n)\n\nverify_suse() {\n\tlocal _hashsum _cksum\n\tif ! test -f \"$ISOPATH/$VERIFILE\"\n\tthen\n\t\twget -O \"$ISOPATH/$VERIFILE\" \"https://download.opensuse.org/tumbleweed/iso/$VERIFILE\"\n\tfi\n\tgpg --verify \"$ISOPATH/$VERIFILE\"\n\t_hashsum=\"$(grep openSUSE-Tumbleweed-DVD-x86_64 \"$ISOPATH/$VERIFILE\" | cut -d' ' -f1)\"\n\t_cksum=$(sha256sum \"$ISOPATH/$ISOFILE\" | cut -d' ' -f1)\n\tif [[ $_cksum == $_hashsum ]]; then\n\t\tmsg \"$ISOFILE ok.\"\n\telse\n\t\tmsg \"$ISOFILE checksum bad!\" && return 1\n\tfi\n}\n"
  },
  {
    "path": "distro/parabola/32/entry",
    "content": "ARCH=i686\nX64=n\nsource distro/parabola/entry\n"
  },
  {
    "path": "distro/parabola/32/install.sh",
    "content": "ARCH=i686\nsource distro/parabola/install.sh\n"
  },
  {
    "path": "distro/parabola/32/isoinfo",
    "content": "_isodate=2018.06.11\n_arch=i686\nSHA512=3c601620913b83d143f876466765841968d36518e5638ceebefd835164f30d4a5b4a282546fe0ac9ba2f2a1186f754e7b1cd29cb31faa0c8cea6a009d2ecc630\n\nsource distro/parabola/isoinfo.common\n"
  },
  {
    "path": "distro/parabola/64/entry",
    "content": "ARCH=x86_64\nX64=y\nsource distro/parabola/entry\n"
  },
  {
    "path": "distro/parabola/64/install.sh",
    "content": "ARCH=x86_64\nsource distro/parabola/install.sh\n"
  },
  {
    "path": "distro/parabola/64/isoinfo",
    "content": "_isodate=2018.06.11\n_arch=x86_64\nSHA512=0af995c407bf27a3ef040681fe1493a626edde7034a2ef4bf14d1da51ec5db5bd6dcfc13670d735affcae00853517b36c9e35fd8fb86535d79afd84807dabe33\n\nsource distro/parabola/isoinfo.common\n"
  },
  {
    "path": "distro/parabola/distroinfo",
    "content": "DISTRONAME='Parabola GNU/Linux-libre'\nKEYWORD='parabola'\n"
  },
  {
    "path": "distro/parabola/entry",
    "content": "TITLE=\"Parabola GNU/Linux-libre $ARCH\"\nKERNEL=\"/liveusb-kernel/parabola/$ARCH/vmlinuz\"\nINITRD=\"/liveusb-kernel/parabola/$ARCH/parabolaiso.img\"\nOPTION=\"parabolaisodevice=/dev/disk/by-uuid/$UUID parabolaisobasedir=liveusb-data/parabola\"\n"
  },
  {
    "path": "distro/parabola/install.sh",
    "content": "install_live() {\n\tmount_iso\n\tinstall -d \"$DATADIR/parabola\"\n\tcp -r \"$ISOMNT/parabola/\"{$ARCH,checksum*,pkglist*,aitab} \"$DATADIR/parabola/\"\n\tinstall -d \"$KERNELDIR/parabola\"\n\tcp -r \"$ISOMNT/parabola/boot/$ARCH\" \"$KERNELDIR/parabola/\"\n\tumount_iso\n}\n\n"
  },
  {
    "path": "distro/parabola/isoinfo.common",
    "content": "ISONAME=\"$DISTRONAME $_isodate\"\nISOURL=\"iso/openrc-cli-${_isodate}/parabola-openrc-cli-${_arch}-netinstall-${_isodate}.iso\"\n\nmirrorlist=(\nhttps://repomirror.parabola.nu\nhttp://mirror.yandex.ru/mirrors/parabola\nhttp://parabolagnulinux.mirrors.linux.ro\n)\n"
  },
  {
    "path": "distro/pureos/TODO",
    "content": "The PureOS installer (calamares) requires filesystem.squashfs located at /casper in your data root partition. You need to work around this if you want to install PureOS via this Live USB.\n"
  },
  {
    "path": "distro/pureos/distroinfo",
    "content": "DISTRONAME='PureOS'\nKEYWORD='pureos'\n"
  },
  {
    "path": "distro/pureos/entry",
    "content": "TITLE='PureOS'\nKERNEL=/liveusb-kernel/pureos/vmlinuz\nINITRD=/liveusb-kernel/pureos/initrd.img\nOPTION=\"boot=casper live-media=/dev/disk/by-uuid/$UUID live-media-path=liveusb-data/pureos quiet splash ---\"\nX64=y\n"
  },
  {
    "path": "distro/pureos/install.sh",
    "content": "install_live() {\n\tinstall -d \"$KERNELDIR/pureos\" \"$DATADIR/pureos\"\n\tmount_iso\n\tcp \"$ISOMNT/casper/vmlinuz\" \"$ISOMNT/casper/initrd.img\" \\\n\t\t\"$KERNELDIR/pureos\"\n\tinstall -m600 \"$ISOMNT/casper/filesystem.squashfs\" \"$DATADIR/pureos\"\n\tumount_iso\n}\n"
  },
  {
    "path": "distro/pureos/isoinfo",
    "content": "ISONAME=\"PureOS GNOME 2020.03.04\"\nISOURL=gnome/2020-03-04/pureos-9.0-gnome-live_20200304-amd64.hybrid.iso\nSHA256=6ced66a33fa22dfdcc4a445b517ef4168ab559009bb834b2b74a64a78473c6ce\n\nmirrorlist=(\nhttps://downloads.puri.sm/amber/live\nhttp://downloads.pureos.net/amber/live\n)\n"
  },
  {
    "path": "distro/systemrescuecd/5.3.2/entry1",
    "content": "TITLE='SystemRescueCd 5.3.2 x86_64'\nKERNEL=/liveusb-kernel/sysrcd/rescue64\nINITRD=/liveusb-kernel/sysrcd/initram.igz\nOPTION=\"subdir=liveusb-data/sysrcd\"\nX64=y\n"
  },
  {
    "path": "distro/systemrescuecd/5.3.2/entry2",
    "content": "TITLE='SystemRescueCd 5.3.2 i686'\nKERNEL=/liveusb-kernel/sysrcd/rescue32\nINITRD=/liveusb-kernel/sysrcd/initram.igz\nOPTION=\"subdir=liveusb-data/sysrcd\"\nX64=n\n"
  },
  {
    "path": "distro/systemrescuecd/5.3.2/install.sh",
    "content": "install_live() {\n\tmount_iso\n\tinstall -d \"$DATADIR/sysrcd\" \"$KERNELDIR/sysrcd\"\n\tcp \"$ISOMNT/\"{sysrcd.dat,sysrcd.md5} \"$DATADIR/sysrcd/\"\n\tcp \"$ISOMNT/isolinux/\"{rescue32,rescue64,initram.igz} \"$KERNELDIR/sysrcd/\"\n\tumount_iso\n}\n"
  },
  {
    "path": "distro/systemrescuecd/5.3.2/isoinfo",
    "content": "_isover=5.3.2\nISONAME=\"$DISTRONAME $_isover\"\nISOURL=sysresccd-x86/$_isover/systemrescuecd-x86-$_isover.iso\nSHA256=0a55c61bf24edd04ce44cdf5c3736f739349652154a7e27c4b1caaeb19276ad1\n\nmirrorlist=(\nhttps://sourceforge.net/projects/systemrescuecd/files\n)\n"
  },
  {
    "path": "distro/systemrescuecd/distroinfo",
    "content": "DISTRONAME='SystemRescueCd'\nKEYWORD='sysrcd'\n"
  },
  {
    "path": "distro/systemrescuecd/latest/entry1",
    "content": "TITLE='SystemRescueCd 6.1.5 x86_64'\nKERNEL=/liveusb-kernel/$KEYWORD/x86_64/vmlinuz\nINITRD=(/liveusb-kernel/$KEYWORD/intel_ucode.img\n\t\t/liveusb-kernel/$KEYWORD/amd_ucode.img\n\t\t/liveusb-kernel/$KEYWORD/x86_64/sysresccd.img)\nOPTION=\"archisodevice=/dev/disk/by-uuid/$UUID archisobasedir=liveusb-data/$KEYWORD iomem=relaxed\"\nX64=y\n"
  },
  {
    "path": "distro/systemrescuecd/latest/install.sh",
    "content": "install_live() {\n\tmount_iso\n\tinstall -d \"$DATADIR/$KEYWORD\" \"$KERNELDIR/$KEYWORD\"\n\tcp -r \"$ISOMNT/sysresccd/x86_64\" \"$DATADIR/$KEYWORD/\"\n\tcp -r \"$ISOMNT/sysresccd/boot/x86_64\" \"$KERNELDIR/$KEYWORD/\"\n\tcp \"$ISOMNT/sysresccd/boot/\"*.img \"$KERNELDIR/$KEYWORD/\"\n\tumount_iso\n}\n"
  },
  {
    "path": "distro/systemrescuecd/latest/isoinfo",
    "content": "_isover=6.1.5\nISONAME=\"$DISTRONAME $_isover\"\nISOURL=$_isover/systemrescuecd-amd64-$_isover.iso\nSHA256=b1b6ae527c4ea3cbf0a6ea86416e8e3ebb3b8edd0bd9df9cecf4d8be2b2fcb59\n\nmirrorlist=(\nhttps://osdn.net/projects/systemrescuecd/storage/releases\n)\n"
  },
  {
    "path": "distro/trisquel/8.0/64/mini/entry",
    "content": "TITLE='Trisquel Mini 8.0 GNU/Linux-libre x86_64'\nKERNEL=/liveusb-kernel/trisquel/64/vmlinuz\nINITRD=/liveusb-kernel/trisquel/64/initrd\nOPTION=\"file=/cdrom/preseed/trisquel.seed boot=casper iso-scan/filename=/liveusb-data/trisquel/$ISOFILE quiet splash --\"\nX64=y\n"
  },
  {
    "path": "distro/trisquel/8.0/64/mini/install.sh",
    "content": "install_live() {\n\tinstall -d \"$KERNELDIR/trisquel/64\" \"$DATADIR/trisquel\"\n\tcp \"${ISO_FILEPATH}\" \"$DATADIR/trisquel/\"\n\tmount_iso\n\tcp \"$ISOMNT/casper/vmlinuz\" \"$ISOMNT/casper/initrd\" \"$KERNELDIR/trisquel/64/\"\n\tumount_iso\n}\n\n"
  },
  {
    "path": "distro/trisquel/8.0/64/mini/isoinfo",
    "content": "ver=8.0\nISONAME=\"$DISTRONAME mini $ver amd64\"\nISOURL=trisquel-mini_${ver}_amd64.iso\nSHA256=0d3821a465b30ca1de2436af0ab5e39f8eb92a64f5ebd8cd3c42f9a93284c0f7\n\nmirrorlist=(\nhttp://mirror.fsf.org/trisquel-images\nhttp://mirrors.ustc.edu.cn/trisquel-images\n)\n"
  },
  {
    "path": "distro/trisquel/distroinfo",
    "content": "DISTRONAME='Trisquel GNU/Linux-libre'\nKEYWORD='trisquel'\n"
  },
  {
    "path": "distro/ubuntu/14.04/entry",
    "content": "TITLE='Ubuntu 14.04.5 x86_64 Desktop'\nKERNEL=/liveusb-kernel/ubuntu/14.04/64/vmlinuz.efi\nINITRD=/liveusb-kernel/ubuntu/14.04/64/initrd.lz\nOPTION=\"file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=/liveusb-data/ubuntu/$ISOFILE quiet splash ---\"\nX64=y\n"
  },
  {
    "path": "distro/ubuntu/14.04/install.sh",
    "content": "install_live() {\n\tinstall -d \"$KERNELDIR/ubuntu/14.04/64\" \"$DATADIR/ubuntu\"\n\tcp \"${ISO_FILEPATH}\" \"$DATADIR/ubuntu/\"\n\tmount_iso\n\tcp \"$ISOMNT/casper/vmlinuz.efi\" \"$ISOMNT/casper/initrd.lz\" \"$KERNELDIR/ubuntu/14.04/64/\"\n\tumount_iso\n}\n\n"
  },
  {
    "path": "distro/ubuntu/14.04/isoinfo",
    "content": "_isover=14.04.5\nISONAME=\"$DISTRONAME ${_isover} amd64\"\nISOURL=\"${_isover}/ubuntu-${_isover}-desktop-amd64.iso\"\nSHA256=f5ce20686a2f3201f04a309d04171ee15757f00954b33b87f3f1d36b3b0f5356\n\nmirrorlist=(\nhttps://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases\nhttp://releases.ubuntu.com\nhttp://mirrors.ustc.edu.cn/ubuntu-releases\n)\n"
  },
  {
    "path": "distro/ubuntu/16.04/config",
    "content": "_ver=16.04\nVMLINUZ=vmlinuz\nINITRD=initrd\n"
  },
  {
    "path": "distro/ubuntu/16.04/entry",
    "content": "source distro/ubuntu/16.04/config\nsource distro/ubuntu/entry\n"
  },
  {
    "path": "distro/ubuntu/16.04/install.sh",
    "content": "source distro/ubuntu/16.04/config\nsource distro/ubuntu/install.sh\n"
  },
  {
    "path": "distro/ubuntu/16.04/isoinfo",
    "content": "_isover=16.04.7\nISONAME=\"$DISTRONAME ${_isover} amd64\"\nISOURL=\"${_isover}/ubuntu-${_isover}-desktop-amd64.iso\"\nSHA256=8ba7e2687fb8a2152504475e92e489aace543059fd4ba7ffe10111c42394853b\n\nmirrorlist=(\nhttps://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases\nhttp://releases.ubuntu.com\nhttp://mirrors.ustc.edu.cn/ubuntu-releases\n)\n"
  },
  {
    "path": "distro/ubuntu/18.04/config",
    "content": "_ver=18.04.5\nVMLINUZ=vmlinuz\nINITRD=initrd\n"
  },
  {
    "path": "distro/ubuntu/18.04/entry",
    "content": "source distro/ubuntu/18.04/config\nsource distro/ubuntu/entry\n"
  },
  {
    "path": "distro/ubuntu/18.04/install.sh",
    "content": "source distro/ubuntu/18.04/config\nsource distro/ubuntu/install.sh\n"
  },
  {
    "path": "distro/ubuntu/18.04/isoinfo",
    "content": "source distro/ubuntu/18.04/config\n\nISONAME=\"$DISTRONAME ${_ver} amd64\"\nISOURL=\"${_ver}/ubuntu-${_ver}-desktop-amd64.iso\"\nSHA256=f295570badb09a606d97ddfc3421d7bf210b4a81c07ba81e9c040eda6ddea6a0\n\nmirrorlist=(\nhttps://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases\nhttp://releases.ubuntu.com\nhttp://mirrors.ustc.edu.cn/ubuntu-releases\n)\n"
  },
  {
    "path": "distro/ubuntu/20.04/config",
    "content": "_ver=20.04.2.0\nVMLINUZ=vmlinuz\nINITRD=initrd\n"
  },
  {
    "path": "distro/ubuntu/20.04/entry",
    "content": "source distro/ubuntu/20.04/config\nsource distro/ubuntu/entry\n"
  },
  {
    "path": "distro/ubuntu/20.04/install.sh",
    "content": "source distro/ubuntu/20.04/config\nsource distro/ubuntu/install.sh\n"
  },
  {
    "path": "distro/ubuntu/20.04/isoinfo",
    "content": "source distro/ubuntu/20.04/config\n\nISONAME=\"$DISTRONAME ${_ver} amd64\"\nISOURL=\"${_ver}/ubuntu-${_ver}-desktop-amd64.iso\"\nSHA256=93bdab204067321ff131f560879db46bee3b994bf24836bb78538640f689e58f\n\nmirrorlist=(\nhttp://releases.ubuntu.com\nhttp://mirrors.ustc.edu.cn/ubuntu-releases\nhttps://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases\n)\n"
  },
  {
    "path": "distro/ubuntu/22.04/config",
    "content": "_ver=22.04.2\nVMLINUZ=vmlinuz\nINITRD=initrd\n"
  },
  {
    "path": "distro/ubuntu/22.04/entry",
    "content": "source distro/ubuntu/22.04/config\nsource distro/ubuntu/entry\n"
  },
  {
    "path": "distro/ubuntu/22.04/install.sh",
    "content": "source distro/ubuntu/22.04/config\nsource distro/ubuntu/install.sh\n"
  },
  {
    "path": "distro/ubuntu/22.04/isoinfo",
    "content": "source distro/ubuntu/22.04/config\n\nISONAME=\"$DISTRONAME ${_ver} amd64\"\nISOURL=\"${_ver}/ubuntu-${_ver}-desktop-amd64.iso\"\nSHA256=b98dac940a82b110e6265ca78d1320f1f7103861e922aa1a54e4202686e9bbd3\n\nmirrorlist=(\nhttp://releases.ubuntu.com\nhttp://mirrors.ustc.edu.cn/ubuntu-releases\nhttps://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases\n)\n"
  },
  {
    "path": "distro/ubuntu/distroinfo",
    "content": "DISTRONAME='Ubuntu'\nKEYWORD='ubuntu'\n"
  },
  {
    "path": "distro/ubuntu/entry",
    "content": "TITLE=\"${DISTRONAME} ${_ver} x86_64 Desktop\"\nKERNEL=\"/liveusb-kernel/${KEYWORD}/${_ver}/64/${VMLINUZ}\"\nINITRD=\"/liveusb-kernel/${KEYWORD}/${_ver}/64/${INITRD}\"\nOPTION=\"file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=/liveusb-data/${KEYWORD}/$ISOFILE\"\nX64=y\n"
  },
  {
    "path": "distro/ubuntu/install.sh",
    "content": "install_live() {\n\tinstall -d \"$KERNELDIR/${KEYWORD}/${_ver}/64\" \"$DATADIR/${KEYWORD}\"\n\tcp \"${ISO_FILEPATH}\" \"$DATADIR/${KEYWORD}/\"\n\tmount_iso\n\tcp \"$ISOMNT/casper/${VMLINUZ}\" \"$ISOMNT/casper/${INITRD}\" \"$KERNELDIR/${KEYWORD}/${_ver}/64/\"\n\tumount_iso\n}\n"
  },
  {
    "path": "distro/ubuntu/meta",
    "content": "entry() {\n\tif test -z \"${ubt_kernel}\" -o -z \"${ubt_initrd}\"\n\tthen\n\t\tmsg \"warn: kernel image or initramfs not found.\"\n\t\tmsg \"      the Ubuntu based entry may not work.\"\n\tfi\n\tisofn=\"$(basename \"$ISOFILE\")\"\n\tTITLE=\"$ISONAME\"\n\tKERNEL=\"/liveusb-kernel/${KEYWORD}/${ubt_kernel}\"\n\tINITRD=\"/liveusb-kernel/${KEYWORD}/${ubt_initrd}\"\n\tOPTION=\"file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=/liveusb-data/${KEYWORD}/${isofn}\"\n\tX64=y\n}\n\ninstall_live() {\n\tinstall -d \"$KERNELDIR/${KEYWORD}\" \"$DATADIR/${KEYWORD}\"\n\tmount_iso\n\tubt_kernel=($(find \"$ISOMNT/casper/\" -maxdepth 1 -name 'vmlinuz*'))\n\tif [ \"${#ubt_kernel[@]}\" != 1 ]; then\n\t\tfatalerror \"panic: more than one kernel image found.\"\n\telse\n\t\tubt_kernel=\"$(basename ${ubt_kernel[0]})\"\n\tfi\n\tubt_initrd=($(find \"$ISOMNT/casper/\" -maxdepth 1 -name 'initrd*'))\n\tif [ \"${#ubt_initrd[@]}\" != 1 ]; then\n\t\tfatalerror \"panic: more than one initramfs image found.\"\n\telse\n\t\tubt_initrd=\"$(basename ${ubt_initrd[0]})\"\n\tfi\n\tcp \"$ISOMNT/casper/${ubt_kernel}\" \"$ISOMNT/casper/${ubt_initrd}\" \\\n\t\t\"$KERNELDIR/${KEYWORD}/\"\n\tumount_iso\n\tcp \"$ISOFILE\" \"$DATADIR/${KEYWORD}/\"\n}\n\nentries=(entry)\n"
  },
  {
    "path": "distro/void/distroinfo",
    "content": "DISTRONAME='Void Linux'\nKEYWORD='void'\n"
  },
  {
    "path": "distro/void/entry",
    "content": "TITLE='Void Linux x86_64'\nKERNEL=/liveusb-kernel/void/vmlinuz\nINITRD=/liveusb-kernel/void/initrd\nOPTION=\"root=live:UUID=$UUID ro rd.live.dir=liveusb-data/void\"\nX64=y\n"
  },
  {
    "path": "distro/void/install.sh",
    "content": "install_live() {\n\tmount_iso\n\tinstall -d \"$KERNELDIR/void\" \"$DATADIR/void\"\n\tcp \"$ISOMNT/LiveOS\"/* \"$DATADIR/void/\"\n\tcp \"$ISOMNT/boot/vmlinuz\" \"$ISOMNT/boot/initrd\" \"$KERNELDIR/void\"\n\tumount_iso\n}\n"
  },
  {
    "path": "distro/void/isoinfo",
    "content": "_isodate=20181111\nISONAME=\"$DISTRONAME\"\nISOURL=\"live/$_isodate/void-live-x86_64-$_isodate.iso\"\nSHA256=1a89520309cf49f21573c3f0b99c06a661bdc105c3ad408716170d95b6a21cd2\n\nmirrorlist=(\nhttps://repo.voidlinux.eu\n)\n"
  },
  {
    "path": "distro/void/xfce/entry",
    "content": "source distro/void/entry\nTITLE='Void Linux x86_64 xfce'\n"
  },
  {
    "path": "distro/void/xfce/install.sh",
    "content": "source distro/void/install.sh\n"
  },
  {
    "path": "distro/void/xfce/isoinfo",
    "content": "_isodate=20181111\nISONAME=\"$DISTRONAME Xfce\"\nISOURL=\"live/$_isodate/void-live-x86_64-$_isodate-xfce.iso\"\nSHA256=dd91852bab75c70c65a01f428902025ded38e91d9c35c73358a8b7ff8e82d8e2\n\nmirrorlist=(\nhttps://repo.voidlinux.eu\n)\n"
  },
  {
    "path": "distro/xubuntu/18.04/config",
    "content": "_ver=18.04\nVMLINUZ=vmlinuz\nINITRD=initrd\n"
  },
  {
    "path": "distro/xubuntu/18.04/entry",
    "content": "source distro/xubuntu/18.04/config\nsource distro/ubuntu/entry\n"
  },
  {
    "path": "distro/xubuntu/18.04/install.sh",
    "content": "source distro/xubuntu/18.04/config\nsource distro/ubuntu/install.sh\n"
  },
  {
    "path": "distro/xubuntu/18.04/isoinfo",
    "content": "_isover=18.04.4\nISONAME=\"$DISTRONAME ${_isover} amd64\"\nISOURL=\"${_isover}/release/xubuntu-${_isover}-desktop-amd64.iso\"\nSHA256=68b4589faf3558a9c79a82dda7b1f49bee7382fc0ec34f6ddf15714665f4f8ce\n\nmirrorlist=(\nhttps://mirrors.tuna.tsinghua.edu.cn/ubuntu-cdimage/xubuntu/releases\n)\n"
  },
  {
    "path": "distro/xubuntu/distroinfo",
    "content": "DISTRONAME='Xubuntu'\nKEYWORD='xubuntu'\n"
  },
  {
    "path": "functions.sh",
    "content": "# Copyright (C)  2016-2018 Iru Cai <mytbk920423@gmail.com>\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nmsg() {\n\techo -e \"$1\" >&2\n}\n\nfatalerror() {\n\tmsg \"\\x1b[1;31m$1\\x1b[0m\"\n\texit 1\n}\n\nas-root() {\n\techo as-root \"$*\"\n\tif [ \"$UID\" == 0 ]; then\n\t\t\"$@\"\n\telif type -p sudo > /dev/null; then\n\t\tsudo \"$@\"\n\telif type -p su > /dev/null; then\n\t\tsu -c \"$*\"\n\tfi\n}\n\nchecksum_verify() {\n\tlocal _hashtool _hashsum _cksum\n\tif [ -n \"$SHA512\" ]; then\n\t\t_hashtool=sha512sum\n\t\t_hashsum=$SHA512\n\telif [ -n \"$SHA256\" ]; then\n\t\t_hashtool=sha256sum\n\t\t_hashsum=$SHA256\n\telif [ -n \"$SHA1\" ]; then\n\t\t_hashtool=sha1sum\n\t\t_hashsum=$SHA1\n\telif [ -n \"$VERIFY\" ]; then\n\t\t\"$VERIFY\" && return 0 || return 1\n\telse\n\t\tfatalerror \"Cannot find the SHA256, SHA1, or MD5 checksum of $ISOFILE\"\n\tfi\n\t_cksum=$(\"$_hashtool\" \"$ISOPATH/$ISOFILE\" | cut -d' ' -f1)\n\tif [[ $_cksum == $_hashsum ]]; then\n\t\tmsg \"$ISOFILE ok.\"\n\telse\n\t\tmsg \"$ISOFILE checksum bad!\" && return 1\n\tfi\n}\n\n# a hash verify function that uses a checksum file\n# usage: set HASHTOOL and HASHFILE in isoinfo, set VERIFY as hashfile\nhashfile() {\n\tlocal _cksum _hashsum\n\t_cksum=$(\"$HASHTOOL\" \"$ISOPATH/$ISOFILE\" | cut -d' ' -f1)\n\t_hashsum=$(grep \"${ISOFILE}\\$\" \"$HASHFILE\" | cut -d' ' -f1)\n\n\tif [[ $_cksum == $_hashsum ]]; then\n\t\tmsg \"$ISOFILE ok.\"\n\telse\n\t\tmsg \"$ISOFILE checksum bad!\" && return 1\n\tfi\n}\n\nset_distro() {\n\t_distrobase=\"distro/$(cut -d'/' -f1 <<< \"$1\")\"\n\tsource \"$_distrobase/distroinfo\"\n}\n\n# process_isoinfo <iso, e.g. mint/64/xfce>\n# loads $DISTRONAME $ISONAME $ISOFILE $ISOURL\nprocess_isoinfo() {\n\tunset MD5 SHA1 SHA256 SHA512\n\tset_distro \"$1\"\n\tsource \"distro/$1/isoinfo\"\n\tISOFILE=\"$(basename $ISOURL)\"\n}\n\nprocess_distro() {\n\tsource \"distro/$1/install.sh\"\n\t# FIXME\n\t# As a workaround, now we set $ISOFILE before using this function.\n\t# Maybe we have a better solution for this.\n\t# ISOMNT=\"/media/$ISOFILE\"\n}\n\n# output_grub_entry\n# output_syslinux_entry\n# usage: first source the entry, then call this\n#\n# variables in entryfile:\n# - UUID: the UUID of the partition\n# - ISOFILE: the file name of iso\n#\n# parameters in entry file:\n# - TITLE: GRUB menu entry title\n# - KERNEL: path to kernel image\n# - INITRD: path to initramfs/initrd image\n# - OPTION: kernel command line\n# - X64: y/n, indicates whether it's 64-bit\n#\noutput_grub_entry() {\n\tcat << EOF\nmenuentry '$TITLE' {\n\tlinux $KERNEL $OPTION\n\tinitrd ${INITRD[@]}\n}\n\nEOF\n}\n\n# we also need $LABEL when calling this\noutput_syslinux_entry() {\n\t_INITRD=$(echo ${INITRD[*]}|sed 's/ /,/g')\n\n\tcat << EOF\nLABEL $LABEL\nMENU LABEL $TITLE\nLINUX $KERNEL\nINITRD $_INITRD\nAPPEND $OPTION\n\nEOF\n}\n\ngen_grubcfg() {\n\tlocal entry allentries\n\tallentries=(\"distro/$1/entry\"*)\n\tif [ ${#allentries[@]} -gt 1 ]; then\n\t\techo \"submenu '$ISONAME' {\"\n\tfi\n\tfor entry in \"${allentries[@]}\"\n\tdo\n\t\tunset INITRD # because it can be an array or just a string\n\n\t\tsource \"$entry\"\n\t\tUUID=\"$UUID\" ISOFILE=\"$ISOFILE\" output_grub_entry\n\tdone\n\tif [ ${#allentries[@]} -gt 1 ]; then\n\t\techo '}'\n\tfi\n}\n\nmeta_gen_grubcfg() {\n\tlocal entry\n\tsource \"distro/$1/meta\"\n\tif [ ${#entries[@]} -gt 1 ]; then\n\t\techo \"submenu '$ISONAME' {\"\n\tfi\n\tfor entry in \"${entries[@]}\"\n\tdo\n\t\tunset INITRD # because it can be an array or just a string\n\n\t\t\"$entry\"\n\t\tUUID=\"$UUID\" ISOFILE=\"$ISOFILE\" output_grub_entry\n\tdone\n\tif [ ${#entries[@]} -gt 1 ]; then\n\t\techo '}'\n\tfi\n}\n\nmeta_gen_syslinux() {\n\tlocal entry count name\n\tsource \"distro/$1/meta\"\n\tname=$(echo $1|sed 's/\\//_/g')\n\tcount=0\n\tfor entry in \"${entries[@]}\"\n\tdo\n\t\tunset INITRD # because it can be an array or just a string\n\n\t\t\"$entry\"\n\t\tUUID=\"$UUID\" ISOFILE=\"$ISOFILE\" LABEL=\"${name}_${count}\" \\\n\t\t\toutput_syslinux_entry\n\t\tcount=$(($count+1))\n\tdone\n}\n\ngen_syslinux() {\n\tlocal entry allentries count name\n\tallentries=(\"distro/$1/entry\"*)\n\tname=$(echo $1|sed 's/\\//_/g')\n\tcount=0\n\tfor entry in \"${allentries[@]}\"\n\tdo\n\t\tunset INITRD # because it can be an array or just a string\n\n\t\tsource \"$entry\"\n\t\tUUID=\"$UUID\" ISOFILE=\"$ISOFILE\" LABEL=\"${name}_${count}\" \\\n\t\t\toutput_syslinux_entry\n\t\tcount=$(($count+1))\n\tdone\n}\n\ndownload_iso() {\n\tmkdir -p \"$ISOPATH\"\n\tfor url in ${mirrorlist[@]}\n\tdo\n\t\tif wget -c -O \"$ISOPATH/$ISOFILE\" \"$url/$ISOURL\"; then\n\t\t\tif checksum_verify; then\n\t\t\t\treturn 0\n\t\t\telse\n\t\t\t\t# checksum bad, may be due to a bad partial download\n\t\t\t\t# so remove the file and try again\n\t\t\t\trm -f \"$ISOPATH/$ISOFILE\"\n\t\t\t\twget -O \"$ISOPATH/$ISOFILE\" \"$url/$ISOURL\"\n\t\t\t\tchecksum_verify && return 0\n\t\t\t\trm -f \"$ISOPATH/$ISOFILE\" # then try next mirror\n\t\t\tfi\n\t\tfi\n\tdone\n\tfatalerror \"Fail to download $ISOFILE!\"\n}\n\nget_iso_label() {\n\t# the label of an ISO file is between two quote symbols\n\t# of the file(1) output\n\tfile -b \"$1\" | cut -d\\' -f2\n}\n\n# We try to a proper mount tool to mount block devices and iso files,\n# if we cannot find it, use the system mount tool.\n# Both udisks2 and udevil can mount block devices, but only udevil\n# can mount iso files.\ndetect_block_mount_tool() {\n       if (udisksctl status | grep DEVICE > /dev/null); then\n\t       BLOCKMOUNT=udisks2\n       elif (udevil | grep 'udevil version' > /dev/null); then\n\t       BLOCKMOUNT=udevil\n       else\n\t       BLOCKMOUNT=system\n       fi\n}\n\ndetect_iso_mount_tool() {\n       if (udevil | grep 'udevil version' > /dev/null); then\n\t       ISOMOUNT=udevil\n       else\n\t       ISOMOUNT=system\n       fi\n}\n\nudevil_mount() {\n\tudevil mount \"$1\"\n}\n\nudevil_unmount() {\n\tudevil umount \"$1\"\n}\n\nudisks2_mount() {\n\tudisksctl mount -b \"$1\"\n}\n\nudisks2_unmount() {\n\tlocal mnt_source\n\tmnt_source=\"$(findmnt -n -o SOURCE \"$1\")\"\n\tudisksctl unmount -b \"${mnt_source}\"\n}\n\nsystem_mount() {\n\tlocal mountpoint\n\tlocal uid\n\tmountpoint=\"$(mktemp -d)\"\n\tuid=\"$(id -u)\"\n\t# first try uid= option of mount(1)\n\tif ! as-root mount -o \"uid=$uid\" \"$1\" \"$mountpoint\" 2> /dev/null; then\n\t\tas-root mount \"$1\" \"$mountpoint\"\n\tfi\n}\n\nsystem_unmount() {\n\tas-root umount \"$1\"\n}\n\nmount_block() {\n\t${BLOCKMOUNT}_mount \"$1\"\n}\n\nunmount_block() {\n\t${BLOCKMOUNT}_unmount \"$1\"\n}\n\nmount_iso() {\n\tLOOPDEV=$(/sbin/losetup -n -O NAME -j \"${ISO_FILEPATH}\")\n\tif [[ -n \"$LOOPDEV\" ]]\n\tthen\n\t\tISOMNT=\"$LOOPDEV\"\n\t\tumount_iso\n\tfi\n\n\t${ISOMOUNT}_mount \"${ISO_FILEPATH}\"\n\tLOOPDEV=$(/sbin/losetup -n -O NAME -j \"${ISO_FILEPATH}\")\n\tif [[ -n \"$LOOPDEV\" ]]\n\tthen\n\t\tISOMNT=$(findmnt -n -o TARGET \"$LOOPDEV\")\n\tfi\n}\n\numount_iso() {\n\t${ISOMOUNT}_unmount \"$ISOMNT\"\n}\n\n# iso_extract: extract files from iso image to destination path\n# usage: iso_extract <isofile> <patterns> <dest>\niso_extract() {\n\tlocal isofile=\"$1\"\n\tlocal patterns=()\n\tshift\n\twhile [ \"$#\" -gt 1 ]; do\n\t\tpatterns+=(\"$1\")\n\t\tshift\n\tdone\n\tlocal dest=\"$1\"\n\tbsdtar -x -f \"$isofile\" -C \"$dest\" \"${patterns[@]}\"\n}\n\ngetuuid() {\n\tlsblk -n -o UUID \"$1\"\n}\n\ngetdiskbypart() {\n\t# util-linux may have bug when using -s --raw\n\t# so it needs some work around\n\tlocal _devlist\n\tlocal _type\n\t_devlist=($(lsblk -s --raw -o NAME -n \"$1\"))\n\tfor i in \"${_devlist[@]}\"\n\tdo\n\t\t_type=$(lsblk -o TYPE -n \"/dev/$i\" | head -n1)\n\t\tif [[ \"$_type\" == \"disk\" ]]; then\n\t\t\techo $i\n\t\tfi\n\tdone\n}\n\nsyslinux_header() {\n\tcat << EOF\nUI menu.c32\n\nTIMEOUT 50\n\nMENU TITLE Live USB\nMENU COLOR border       30;44   #40ffffff #a0000000 std\nMENU COLOR title        1;36;44 #9033ccff #a0000000 std\nMENU COLOR sel          7;37;40 #e0ffffff #20ffffff all\nMENU COLOR unsel        37;44   #50ffffff #a0000000 std\nMENU COLOR help         37;40   #c0ffffff #a0000000 std\nMENU COLOR timeout_msg  37;40   #80ffffff #00000000 std\nMENU COLOR timeout      1;37;40 #c0ffffff #00000000 std\nMENU COLOR msg07        37;40   #90ffffff #a0000000 std\nMENU COLOR tabmsg       31;40   #30ffffff #00000000 std\n\nEOF\n}\n\ngrubcfg_header() {\n\t\tcat  << 'EOF'\nset default=0\nset timeout=5\n\nif [ ${grub_platform} == efi ]; then\n\tinsmod all_video\n\tinsmod font\n\tif loadfont /grub/fonts/unicode.pf2; then\n\t\tinsmod gfxterm\n\t\tset gfxmode=auto\n\t\tset gfxpayload=keep\n\t\tterminal_output gfxterm\n\tfi\nfi\n\nEOF\n}\n"
  },
  {
    "path": "install_syslinux",
    "content": "#!/bin/bash\n# Copyright (C)  2018 Iru Cai <mytbk920423@gmail.com>\n# SPDX-License-Identifier: GPL-3.0-or-later\n\n# Example: ./install_syslinux /dev/sdb /dev/sdb1 /media/boot\nset -e\n\nmbr_bin_path=(/usr/lib/syslinux/bios /usr/share/syslinux /usr/lib/syslinux/mbr)\nc32_path=(/usr/lib/syslinux/bios /usr/share/syslinux /usr/lib/syslinux/modules/bios)\n\nMBR_PATH=\"\"\nC32_PATH=\"\"\n\nfor path in \"${mbr_bin_path[@]}\"\ndo\n\tif test -f \"$path/mbr.bin\"\n\tthen\n\t\tMBR_PATH=\"$path\"\n\t\tbreak\n\tfi\ndone\n\nif test -z \"$MBR_PATH\"\nthen\n\texit 1\nfi\n\nfor path in \"${c32_path[@]}\"\ndo\n\tif test -f \"$path/linux.c32\"\n\tthen\n\t\tC32_PATH=\"$path\"\n\t\tbreak\n\tfi\ndone\n\nif test -z \"$C32_PATH\"\nthen\n\texit 1\nfi\n\nDEVNAME=\"$1\"\nBOOTPART=\"$2\"\nBOOTPATH=\"$3\"\n\nsyslinux -i \"$BOOTPART\"\ndd bs=440 count=1 conv=notrunc if=\"$MBR_PATH/mbr.bin\" of=\"$DEVNAME\"\ninstall -d \"$BOOTPATH/syslinux\"\ncp \"$C32_PATH\"/*.c32 \"$BOOTPATH/syslinux\"\n"
  },
  {
    "path": "listisos.sh",
    "content": "#!/bin/bash\n# Copyright (C)  2016-2018 Iru Cai <mytbk920423@gmail.com>\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nISOINFOS=($(find distro -name isoinfo))\nfor _isoinfo in \"${ISOINFOS[@]}\"\ndo\n\t_distrobase=\"$(cut -d'/' -f1-2 <<< \"$_isoinfo\")\"\n\t_distroisodir=\"$(dirname $_isoinfo | cut -d'/' -f2-)\"\n\tif [ -f \"$_distrobase/distroinfo\" ]; then\n\t\tsource \"$_distrobase/distroinfo\"\n\telse\n\t\tcontinue\n\tfi\n\tsource \"$_isoinfo\"\n\tif [ -n \"$ISONAME\" ]; then\n\t\techo \"$_distroisodir: $ISONAME\"\n\tfi\ndone\n\n"
  },
  {
    "path": "mkgrubcfg.sh",
    "content": "# Copyright (C)  2016-2018 Iru Cai <mytbk920423@gmail.com>\n# SPDX-License-Identifier: GPL-3.0-or-later\n#\n# generate GRUB menuentry\n# usage: UUID=\"$UUID\" ISOFILE=\"$ISOFILE\" ./mkgrubcfg.sh <entryfile>\n#\n# variables in entryfile:\n# - UUID: the UUID of the partition\n# - ISOFILE: the file name of iso\n#\n# parameters in entry file:\n# - TITLE: GRUB menu entry title\n# - KERNEL: path to kernel image\n# - INITRD: path to initramfs/initrd image\n# - OPTION: kernel command line\n# - X64: y/n, indicates whether it's 64-bit\n\nsource \"$1\"\n\ncat << EOF\nmenuentry '$TITLE' {\n\tlinux $KERNEL $OPTION\n\tinitrd ${INITRD[@]}\n}\nEOF\n\necho\n"
  },
  {
    "path": "mksyslinux.sh",
    "content": "# Copyright (C)  2018 Iru Cai <mytbk920423@gmail.com>\n# SPDX-License-Identifier: GPL-3.0-or-later\n#\n# generate syslinux menuentry\n# usage: UUID=\"$UUID\" ISOFILE=\"$ISOFILE\" LABEL=\"$LABEL\" \\\n#          ./mkgrubcfg.sh <entryfile>\n#\n# variables in entryfile:\n# - UUID: the UUID of the partition\n# - ISOFILE: the file name of iso (needed to pass to the entry file)\n# - LABEL: syslinux label\n#\n# parameters in entry file:\n# - TITLE: GRUB menu entry title\n# - KERNEL: path to kernel image\n# - INITRD: path to initramfs/initrd image\n# - OPTION: kernel command line\n# - X64: y/n, indicates whether it's 64-bit\n\nsource \"$1\"\n_INITRD=$(echo ${INITRD[*]}|sed 's/ /,/g')\n\ncat << EOF\nLABEL $LABEL\nMENU LABEL $TITLE\nLINUX $KERNEL\nINITRD $_INITRD\nAPPEND $OPTION\nEOF\n\necho\n"
  },
  {
    "path": "support-a-new-distro.md",
    "content": "# Support a new distro\n\n## Global variables\n\n- ``ROOTPATH``: root of a USB stick mountpoint  \n- ``KERNELDIR``: the place to install the kernel  \n- ``DATADIR``: the place to install other data files, e.g. squashfs, iso files  \n- ``ISOMNT``: the mount point that the iso file is mounted to with ``mount_iso``  \n\n## How to support\n\nYou can refer to [Arch Linux](distro/arch/). What you need is:\n\n- ``install.sh``: a script file describing how to install the LiveCD to USB  \n- ``isoinfo``: all info about the iso file, including where to download it, the hash checksum, and a mirror list  \n- ``entry*`` files: an example is [Arch Linux x86\\_64](distro/arch/entry1), for more detail, look into [mkgrubcfg.sh](mkgrubcfg.sh)\n\nIn ``isoinfo``, ``ISOURL`` is the relative path to a mirror that shows the URL of the Live ISO file. You can use ``SHA256``,``SHA1`` or ``MD5`` for iso file checksum. ``install_live`` in ``install.sh`` is the bash function that handles the install of the Live ISO to the USB stick.\n\n"
  },
  {
    "path": "testusb.sh",
    "content": "#!/bin/sh\n# Copyright (C)  2021 Iru Cai <mytbk920423@gmail.com>\n# SPDX-License-Identifier: GPL-3.0-or-later\n\n# Test the live USB in QEMU, you need to run this script as root\nif [ \"$1\" == uefi ]; then\n\tbios=(-bios /usr/share/edk2-ovmf/x64/OVMF.fd)\n\tshift\nelse\n\tbios=()\nfi\n\nqemu-system-x86_64 -enable-kvm -cpu host -m 2G \"${bios[@]}\" -drive \"file=$1,format=raw\"\n"
  }
]