Repository: mytbk/liveusb-builder Branch: master Commit: 253ffafbe207 Files: 216 Total size: 98.7 KB Directory structure: gitextract_42p7sa9a/ ├── .gitignore ├── LICENSE ├── README.md ├── buildlive ├── distro/ │ ├── antix/ │ │ ├── 32/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ └── distroinfo │ ├── arch/ │ │ ├── distroinfo │ │ ├── entry1 │ │ ├── install.sh │ │ ├── isoinfo │ │ └── meta │ ├── centos/ │ │ ├── 6.9/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── 7/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── 8/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── distroinfo │ │ ├── entry.common │ │ └── install.sh │ ├── debian/ │ │ ├── 32/ │ │ │ ├── cinnamon/ │ │ │ │ ├── entry │ │ │ │ ├── install.sh │ │ │ │ └── isoinfo │ │ │ ├── entry │ │ │ ├── gnome/ │ │ │ │ ├── entry │ │ │ │ ├── install.sh │ │ │ │ └── isoinfo │ │ │ ├── install.sh │ │ │ ├── kde/ │ │ │ │ ├── entry │ │ │ │ ├── install.sh │ │ │ │ └── isoinfo │ │ │ ├── lxde/ │ │ │ │ ├── entry │ │ │ │ ├── install.sh │ │ │ │ └── isoinfo │ │ │ ├── mate/ │ │ │ │ ├── entry │ │ │ │ ├── install.sh │ │ │ │ └── isoinfo │ │ │ └── xfce/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── 64/ │ │ │ ├── cinnamon/ │ │ │ │ ├── entry │ │ │ │ ├── install.sh │ │ │ │ └── isoinfo │ │ │ ├── entry │ │ │ ├── gnome/ │ │ │ │ ├── entry │ │ │ │ ├── install.sh │ │ │ │ └── isoinfo │ │ │ ├── install.sh │ │ │ ├── kde/ │ │ │ │ ├── entry │ │ │ │ ├── install.sh │ │ │ │ └── isoinfo │ │ │ ├── lxde/ │ │ │ │ ├── entry │ │ │ │ ├── install.sh │ │ │ │ └── isoinfo │ │ │ ├── mate/ │ │ │ │ ├── entry │ │ │ │ ├── install.sh │ │ │ │ └── isoinfo │ │ │ └── xfce/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── SHA512SUMS │ │ ├── distroinfo │ │ └── isoinfo.common │ ├── deepin/ │ │ ├── distroinfo │ │ ├── entry │ │ ├── install.sh │ │ └── isoinfo │ ├── fedora/ │ │ ├── 36/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── distroinfo │ │ ├── entry.common │ │ └── install.sh │ ├── grml/ │ │ ├── 64/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ └── distroinfo │ ├── hyperbola/ │ │ ├── distroinfo │ │ ├── entry1 │ │ ├── entry2 │ │ ├── install.sh │ │ └── isoinfo │ ├── kali/ │ │ ├── distroinfo │ │ ├── entry │ │ ├── install.sh │ │ └── isoinfo │ ├── manjaro/ │ │ ├── architect/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── distroinfo │ │ ├── entry │ │ ├── gnome/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── install.sh │ │ ├── isoinfo.common │ │ ├── kde/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ └── xfce/ │ │ ├── entry │ │ ├── install.sh │ │ └── isoinfo │ ├── mint/ │ │ ├── cinnamon/ │ │ │ ├── config │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── distroinfo │ │ ├── entry.common │ │ ├── install.sh │ │ ├── isoinfo.common │ │ ├── lmde/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── mate/ │ │ │ ├── config │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── sha256sum.txt │ │ └── xfce/ │ │ ├── config │ │ ├── entry │ │ ├── install.sh │ │ └── isoinfo │ ├── mx/ │ │ ├── 32/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── 64/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── distroinfo │ │ ├── entry │ │ ├── install.sh │ │ └── isoinfo.common │ ├── opensuse/ │ │ ├── 15/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── distroinfo │ │ ├── entry.common │ │ ├── install.sh │ │ ├── meta │ │ └── tumbleweed/ │ │ ├── entry │ │ ├── install.sh │ │ └── isoinfo │ ├── parabola/ │ │ ├── 32/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── 64/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── distroinfo │ │ ├── entry │ │ ├── install.sh │ │ └── isoinfo.common │ ├── pureos/ │ │ ├── TODO │ │ ├── distroinfo │ │ ├── entry │ │ ├── install.sh │ │ └── isoinfo │ ├── systemrescuecd/ │ │ ├── 5.3.2/ │ │ │ ├── entry1 │ │ │ ├── entry2 │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── distroinfo │ │ └── latest/ │ │ ├── entry1 │ │ ├── install.sh │ │ └── isoinfo │ ├── trisquel/ │ │ ├── 8.0/ │ │ │ └── 64/ │ │ │ └── mini/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ └── distroinfo │ ├── ubuntu/ │ │ ├── 14.04/ │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── 16.04/ │ │ │ ├── config │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── 18.04/ │ │ │ ├── config │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── 20.04/ │ │ │ ├── config │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── 22.04/ │ │ │ ├── config │ │ │ ├── entry │ │ │ ├── install.sh │ │ │ └── isoinfo │ │ ├── distroinfo │ │ ├── entry │ │ ├── install.sh │ │ └── meta │ ├── void/ │ │ ├── distroinfo │ │ ├── entry │ │ ├── install.sh │ │ ├── isoinfo │ │ └── xfce/ │ │ ├── entry │ │ ├── install.sh │ │ └── isoinfo │ └── xubuntu/ │ ├── 18.04/ │ │ ├── config │ │ ├── entry │ │ ├── install.sh │ │ └── isoinfo │ └── distroinfo ├── functions.sh ├── install_syslinux ├── listisos.sh ├── mkgrubcfg.sh ├── mksyslinux.sh ├── support-a-new-distro.md └── testusb.sh ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ isofiles ================================================ FILE: LICENSE ================================================ GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. {one line to give the program's name and a brief idea of what it does.} Copyright (C) {year} {name of author} This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: {project} Copyright (C) {year} {fullname} This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . ================================================ FILE: README.md ================================================ # liveusb-builder liveusb-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. The source code is hosted on both [git.wehack.space](https://git.wehack.space/liveusb-builder/) and GitHub. A presentation in Chinese is at https://wehack.space/vimacs/liveusb-builder.odp. ## Features - Multiboot support with syslinux and GRUB - Support legacy BIOS, UEFI, and various firmware payloads (e.g. GRUB, petitboot) that reads GRUB or syslinux config files - Support placing kernel files (kernel and initramfs) and other data files (squashfs, CD image) in separate partitions - Download an up-to-date CD image and verify it - A GNU/Linux command line tool ## Install You need these packages on your GNU/Linux system to use liveusb-builder. - libarchive: for ISO image extraction - udisks2 (optional,recommended): for mounting USB disk partitions without being root - udevil (optional): for mounting USB disk partitions and ISO images without being root - wget: for downloading - syslinux (recommended): bootloader for legacy BIOS - GRUB: bootloader for legacy BIOS if there's no syslinux, and bootloader for UEFI For Arch Linux users, just install [liveusb-builder-git](https://aur.archlinux.org/packages/liveusb-builder-git/) from AUR. ## Will my boot image support liveusb-builder? liveusb-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. If 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): ```bash sudo qemu-system-x86_64 -enable-kvm -m 4G -cdrom your-install-cd.iso -drive /dev/sda,format=raw -boot order=d -no-reboot ``` Do the system installation in the QEMU window. After QEMU exits, put the hard disk on the target machine to continue installing. I've already used this method to successfully install Windows 7, OpenBSD 6.7, and various GNU/Linux systems. ## Usage First, 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. ### The easier way: one FAT32 partition Suppose your USB stick device is /dev/sdb and the partition on the device is /dev/sdb1. ```bash # install Arch, Mint (x86_64 with MATE Desktop) and Fedora 32 to USB ./buildlive --root=/dev/sdb1 arch mint/mate fedora/32 ``` The other way is to mount your USB drive partition first. I recommend using udevil so that you can write files without as root. Then run buildlive script as follows, suppose /dev/sdb1 is mount to /media/sdb1: ```bash # install Arch, Mint (x86_64 with MATE Desktop) and Fedora 32 to USB ./buildlive --root=/media/sdb1 arch mint/mate fedora/32 ``` ### The more customizable way: using a FAT32 boot partition and an ext2 data partition Partition 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. ``` $ sudo fdisk /dev/sdb Command (m for help): o Created a new DOS disklabel with disk identifier 0x24c5dd70. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): Using default response p. Partition number (1-4, default 1): First sector (2048-30463999, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-30463999, default 30463999): +500M Created a new partition 1 of type 'Linux' and of size 500 MiB. Command (m for help): t Selected partition 1 Hex code (type L to list all codes): b Changed type of partition 'Linux' to 'W95 FAT32'. Command (m for help): a Selected partition 1 The bootable flag on partition 1 is enabled now. Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): Using default response p. Partition number (2-4, default 2): First sector (1026048-30463999, default 1026048): Last sector, +sectors or +size{K,M,G,T,P} (1026048-30463999, default 30463999): Created a new partition 2 of type 'Linux' and of size 14 GiB. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. ``` Format the partitions: ``` sudo mkfs.msdos -F 32 /dev/sdb1 sudo mkfs.ext2 /dev/sdb2 ``` Mount them and create the directory, and we need to make the directory ``liveusb-data`` writable by the current user. ``` udevil mount /dev/sdb1 /media/boot udevil mount /dev/sdb2 /media/root sudo install -d /media/root/liveusb-data sudo chown $(whoami) /media/root/liveusb-data/ ``` At last, make the Live USB (we install Arch and Fedora 32 in it): ``` $ ./buildlive --boot /media/boot --root /media/root arch fedora/32 ``` ## Experimental features I've made some experimental features that are not yet merged to the main source tree. - [ia32efi-test](https://github.com/mytbk/liveusb-builder/commits/ia32efi-test): support IA32 EFI ## Status The resulting USB stick works on QEMU with PC BIOS (SeaBIOS), UEFI (OVMF), libreboot (i440fx, GRUB txtmode) as firmware. The script ``testusb.sh`` can be used to test a USB stick with QEMU. ## Related work You can search keyword ``multiboot`` on GitHub and find some related projects. Listed below is some related work I know or find. - [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 - [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 - [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. - [MultiBootLiveUSB](https://github.com/moontide/MultiBootLiveUSB) - [Multiboot USB drive - ArchWiki](https://wiki.archlinux.org/index.php/Multiboot_USB_drive) - [cbodden/multiboot](https://github.com/cbodden/multiboot) - [mbusb/multibootusb](https://github.com/mbusb/multibootusb) ================================================ FILE: buildlive ================================================ #!/bin/bash # Copyright (C) 2016-2018 Iru Cai # SPDX-License-Identifier: GPL-3.0-or-later set -e DISTROLIST=() ISOLIST=() BOOTPATH= ROOTPATH= DEVNAME= KERNELDIR= DATADIR= INSTALL_GRUB=1 GRUBCFG_ONLY=0 DOWNLOAD_ONLY=0 UMOUNT_BOOT=0 UMOUNT_ROOT=0 CLEAN_USB=0 BOOTLOADER_ONLY=0 . functions.sh usage() { >&2 cat << EOF $0 [--root ] [options] [--distro= ] [distro] ... use $0 -L to list available distros options: --root --root=: set the path to put the live USB data files --boot --boot=: set the path to put the kernel and loader files --clean: clean the old live USB files before installing --bootloader-only: only install the boot loader --no-grub: do not install GRUB loader (still generate grub.cfg) --grubcfg: do not do real install, only generate grub.cfg file --downloadonly: only download the ISO files --dev=: write boot sector to (default is autodetected from ) EOF } try_mount() { local mnt if [[ "$1" =~ ^/dev ]] then if ! findmnt "$1" > /dev/null then mount_block "$1" > /dev/null mnt=$(findmnt -n -o TARGET "$1") else mnt=$(findmnt -n -o TARGET "$1") fi else mnt="$1" fi echo "$mnt" } detect_block_mount_tool 2>/dev/null detect_iso_mount_tool 2>/dev/null unset ISOPATH CFGFILE="$HOME/.liveusb-builder" test -f "$CFGFILE" && source "$CFGFILE" || true ISOPATH=${ISOPATH:-"$HOME/isofiles"} while [[ -n "$1" ]] do case "$1" in -L) exec ./listisos.sh ;; --boot=*) BOOTPATH="${1/--boot=}" ;; --boot) shift BOOTPATH="$1" ;; --root=*) ROOTPATH="${1/--root=}" ;; --root) shift ROOTPATH="$1" ;; --dev=*) DEVNAME=${1/--dev=} ;; --bootloader-only) BOOTLOADER_ONLY=1 ;; --no-grub) INSTALL_GRUB=0 ;; --grubcfg) GRUBCFG_ONLY=1 ;; --downloadonly) DOWNLOAD_ONLY=1 ;; --clean) CLEAN_USB=1 ;; --distro=*) metadist="${1/--distro=}" if [ ! -f "distro/$metadist/meta" ] then fatalerror "distro/$metadist/meta not found" fi shift isofn="$1" if [ ! -f "$isofn" ] then fatalerror "File $isofn not found" fi DISTROLIST=(${DISTROLIST[@]} "/meta@$metadist@$isofn") ;; *=*|-*) usage exit 1 ;; *) if [ -f "distro/$1/isoinfo" ] then DISTROLIST=(${DISTROLIST[@]} "$1") else fatalerror "directory distro/$1/isoinfo not found" fi ;; esac shift done if [[ -z "$ROOTPATH" && "$DOWNLOAD_ONLY" == 0 ]]; then usage exit 1 fi _mnt="$(try_mount "$ROOTPATH")" if [ "${_mnt}" != "$ROOTPATH" ]; then ROOTPATH="${_mnt}" UMOUNT_ROOT=1 fi if [[ -z "$BOOTPATH" ]]; then BOOTPATH="$ROOTPATH" else _mnt="$(try_mount "$BOOTPATH")" if [ "${_mnt}" != "$BOOTPATH" ]; then BOOTPATH="${_mnt}" UMOUNT_BOOT=1 fi fi if [[ "$DOWNLOAD_ONLY" == 0 ]]; then UUID="$(findmnt -o UUID --raw --noheadings $ROOTPATH \ || fatalerror "UUID of $ROOTPATH not found, not a mountpoint?")" BOOTPART="$(findmnt -o SOURCE --raw --noheadings $BOOTPATH \ || fatalerror "$BOOTPATH seems not a mountpoint!")" # liveusb kernel and data should be placed on one disk # so get DEVNAME by the mountpoint of ROOTPATH is ok DEVNAME="/dev/$(getdiskbypart "/dev/disk/by-uuid/$UUID")" KERNELDIR="$BOOTPATH/liveusb-kernel" DATADIR="$ROOTPATH/liveusb-data" GRUBCFG="$BOOTPATH/grub/grub.cfg" SYSLINUXCFG="$BOOTPATH/syslinux/syslinux.cfg" install -d "$BOOTPATH/grub" "$BOOTPATH/syslinux" install -d "$KERNELDIR" "$DATADIR" msg "Files will be copy to $ROOTPATH" fi if [[ "$BOOTLOADER_ONLY" == 0 && "${#DISTROLIST[@]}" == 0 ]]; then usage exit 1 fi if [ ! -z "$DEVNAME" ]; then msg "Boot sector will be written to $DEVNAME" fi if [[ "$CLEAN_USB" = 1 ]]; then msg "Cleaning old live USB files." rm -rf "$KERNELDIR"/* "$DATADIR"/* fi for i in ${DISTROLIST[@]} do if [[ "$i" == /meta@* ]] then # FIXME: we assume the meta file path and the iso file name # does not have '@' character ISOFILE="$(echo "$i" | cut -d@ -f3)" ISOLIST=("${ISOLIST[@]}" "$ISOFILE") # TODO: we just use the file name as the ISO name # can we do it better? ISONAMELIST=("${ISONAMELIST[@]}" "$(basename "$ISOFILE")") continue fi process_isoinfo "$i" ISOLIST=("${ISOLIST[@]}" "$ISOFILE") ISONAMELIST=("${ISONAMELIST[@]}" "$ISONAME") if [ -f "$ISOPATH/$ISOFILE" ] && checksum_verify; then true else download_iso fi done if [[ "$DOWNLOAD_ONLY" == 1 ]]; then exit 0 fi grubcfg_header > "$GRUBCFG" syslinux_header > "$SYSLINUXCFG" for i in `seq 1 ${#DISTROLIST[@]}` do ISOFILE="${ISOLIST[$i-1]}" ISONAME="${ISONAMELIST[$i-1]}" DISTRO="${DISTROLIST[$i-1]}" ISO_FILEPATH="$ISOPATH/$ISOFILE" if [[ "$DISTRO" == /meta@* ]] then metadir="$(echo "$DISTRO" | cut -d@ -f2)" _meta=meta_ ISO_FILEPATH="$ISOFILE" DISTRO="$metadir" set_distro "$metadir" KEYWORD="$ISONAME" source "distro/$metadir/meta" else _meta= ISO_FILEPATH="$ISOPATH/$ISOFILE" set_distro "$DISTRO" export DISTRONAME KEYWORD # for grub and syslinux generation process_distro "$DISTRO" fi if [ "$GRUBCFG_ONLY" == 0 ]; then install_live fi ${_meta}gen_grubcfg "$DISTRO" >> "$GRUBCFG" ${_meta}gen_syslinux "$DISTRO" >> "$SYSLINUXCFG" done if [ "$GRUBCFG_ONLY" == 1 ]; then msg 'Only generate grub.cfg and syslinux.cfg, will not install bootloader.' elif [ "$INSTALL_GRUB" == 1 ]; then read -p 'Answer Y to install bootloader.[Y/n] ' if [[ "$REPLY" =~ ^[Yy]|^$ ]]; then if ! as-root ./install_syslinux "$DEVNAME" "$BOOTPART" "$BOOTPATH"; then msg 'Failed to install syslinux, try to install GRUB as legacy BIOS bootloader.' as-root grub-install --force --boot-directory="$BOOTPATH" --target=i386-pc "$DEVNAME" fi as-root grub-install --boot-directory="$BOOTPATH" --efi-directory="$BOOTPATH" --bootloader-id=grub --target=x86_64-efi --removable --no-nvram "$DEVNAME" fi fi if [ "$UMOUNT_BOOT" == 1 ]; then msg 'Trying to umount the boot mountpoint, you may need to wait for sync() to complete.' unmount_block "$BOOTPATH" fi if [ "$UMOUNT_ROOT" == 1 -a "$ROOTPATH" != "$BOOTPATH" ]; then msg 'Trying to umount the root mountpoint, you may need to wait for sync() to complete.' unmount_block "$ROOTPATH" fi ================================================ FILE: distro/antix/32/entry ================================================ TITLE='antiX 17 i386' KERNEL=/liveusb-kernel/antix/32/vmlinuz INITRD=/liveusb-kernel/antix/32/initrd.gz OPTION="iso iso=liveusb-data/antix/$ISOFILE" X64=n ================================================ FILE: distro/antix/32/install.sh ================================================ install_live() { install -d "$KERNELDIR/antix/32" "$DATADIR/antix" cp "${ISO_FILEPATH}" "$DATADIR/antix/" mount_iso cp "$ISOMNT/antiX/vmlinuz" "$ISOMNT/antiX/initrd.gz" "$KERNELDIR/antix/32/" umount_iso } ================================================ FILE: distro/antix/32/isoinfo ================================================ _isover=17.4.1 ISONAME="$DISTRONAME $_isover i386" ISOURL="antiX-17.4/antiX-${_isover}_386-full.iso" SHA256=40ac8371b9692a66a6a29909ae984665a0891d1ee5cefde9fab6ddae1a8ad348 mirrorlist=( https://mirrors.tuna.tsinghua.edu.cn/mxlinux-isos/ANTIX/Final http://iso.mxrepo.com/Final http://it.mxrepo.com/Final ) ================================================ FILE: distro/antix/distroinfo ================================================ DISTRONAME='antiX' KEYWORD='antix' ================================================ FILE: distro/arch/distroinfo ================================================ DISTRONAME='Arch Linux' KEYWORD='arch' ================================================ FILE: distro/arch/entry1 ================================================ TITLE='Arch Linux x86_64' prefix="/liveusb-kernel/$KEYWORD/arch/boot" KERNEL="$prefix/x86_64/vmlinuz-linux" INITRD=("$prefix/x86_64/initramfs-linux.img") OPTION="img_dev=/dev/disk/by-uuid/$UUID img_loop=liveusb-data/$KEYWORD/$ISOFILE" X64=y ================================================ FILE: distro/arch/install.sh ================================================ install_live() { install -d "$DATADIR/$KEYWORD" "$KERNELDIR/$KEYWORD" iso_extract "${ISO_FILEPATH}" arch/boot/x86_64 'arch/boot/*.img' "$KERNELDIR/$KEYWORD/" cp "${ISO_FILEPATH}" "$DATADIR/$KEYWORD/" } ================================================ FILE: distro/arch/isoinfo ================================================ _isodate=2025.08.01 ISONAME="$DISTRONAME $_isodate" ISOURL=iso/$_isodate/archlinux-$_isodate-x86_64.iso SHA256=4b1af44dbeed97acec0204a95f6393818bb8fd903b423a20b7ea141f80b27e59 mirrorlist=( http://mirrors.nju.edu.cn/archlinux https://mirrors.163.com/archlinux https://mirrors.tuna.tsinghua.edu.cn/archlinux https://mirrors.ustc.edu.cn/archlinux https://mirror.aur.rocks http://archlinux.de-labrusse.fr http://mirror.cedille.club/archlinux ) ================================================ FILE: distro/arch/meta ================================================ # SPDX-License-Identifier: GPL-3.0-or-later # TODO: detect kernel, initramfs, and ucode filenames entry() { TITLE="$ISONAME" prefix="/liveusb-kernel/$KEYWORD/arch/boot" KERNEL="$prefix/x86_64/vmlinuz-linux" INITRD=("$prefix/intel-ucode.img" "$prefix/amd-ucode.img" "$prefix/x86_64/initramfs-linux.img") OPTION="img_dev=/dev/disk/by-uuid/$UUID img_loop=liveusb-data/$KEYWORD/$ISONAME" X64=y } install_live() { install -d "$DATADIR/$KEYWORD" "$KERNELDIR/$KEYWORD" iso_extract "${ISO_FILEPATH}" arch/boot/x86_64 'arch/boot/*.img' "$KERNELDIR/$KEYWORD/" cp "${ISO_FILEPATH}" "$DATADIR/$KEYWORD/" } entries=(entry) ================================================ FILE: distro/centos/6.9/entry ================================================ version=6.9 source distro/centos/entry.common ================================================ FILE: distro/centos/6.9/install.sh ================================================ version=6.9 source distro/centos/install.sh ================================================ FILE: distro/centos/6.9/isoinfo ================================================ ISONAME="$DISTRONAME 6.9 Minimal" ISOURL=6.9/isos/x86_64/CentOS-6.9-x86_64-minimal.iso SHA256=422af57b493b8af49d485885a730c5a1d955f803fac85aa51311c393168b9080 mirrorlist=( https://mirrors.tuna.tsinghua.edu.cn/centos ) ================================================ FILE: distro/centos/7/entry ================================================ version=7 source distro/centos/entry.common ================================================ FILE: distro/centos/7/install.sh ================================================ version=7 source distro/centos/install.sh ================================================ FILE: distro/centos/7/isoinfo ================================================ ISONAME="$DISTRONAME 7 Install DVD" ISOURL=7/isos/x86_64/CentOS-7-x86_64-DVD-2009.iso SHA256=e33d7b1ea7a9e2f38c8f693215dd85254c3a4fe446f93f563279715b68d07987 mirrorlist=( https://mirrors.ustc.edu.cn/centos/ https://mirrors.pku.edu.cn/centos/ ) ================================================ FILE: distro/centos/8/entry ================================================ version=8 source distro/centos/entry.common ================================================ FILE: distro/centos/8/install.sh ================================================ version=8 source distro/centos/install.sh ================================================ FILE: distro/centos/8/isoinfo ================================================ VERSION=8.2.2004 ISONAME="$DISTRONAME $VERSION DVD" ISOURL="8/isos/x86_64/CentOS-$VERSION-x86_64-dvd1.iso" SHA256=c87a2d81d67bbaeaf646aea5bedd70990078ec252fc52f5a7d65ff609871e255 mirrorlist=( https://mirrors.tuna.tsinghua.edu.cn/centos ) ================================================ FILE: distro/centos/distroinfo ================================================ DISTRONAME='CentOS' KEYWORD='centos' ================================================ FILE: distro/centos/entry.common ================================================ TITLE="CentOS $version x86_64" KERNEL=/liveusb-kernel/centos/$version/vmlinuz INITRD=/liveusb-kernel/centos/$version/initrd.img OPTION="noeject inst.stage2=hd:UUID=$UUID:/liveusb-data/centos/$ISOFILE" X64=y ================================================ FILE: distro/centos/install.sh ================================================ install_live() { mount_iso install -d "$DATADIR/centos/" "$KERNELDIR/centos/$version" cp "${ISO_FILEPATH}" "$DATADIR/centos/" cp "$ISOMNT/images/pxeboot/vmlinuz" "$ISOMNT/images/pxeboot/initrd.img" "$KERNELDIR/centos/$version" umount_iso } ================================================ FILE: distro/debian/32/cinnamon/entry ================================================ _desktop=Cinnamon source distro/debian/32/entry ================================================ FILE: distro/debian/32/cinnamon/install.sh ================================================ source distro/debian/32/install.sh ================================================ FILE: distro/debian/32/cinnamon/isoinfo ================================================ _desktop=Cinnamon _arch=i386 source distro/debian/isoinfo.common ================================================ FILE: distro/debian/32/entry ================================================ TITLE="Debian 10.10.0 i386 ${_desktop}" KERNEL=/liveusb-kernel/debian/32/vmlinuz-4.19.0-9-amd64 INITRD=/liveusb-kernel/debian/32/initrd.img-4.19.0-9-amd64 OPTION="boot=live findiso=liveusb-data/debian/$ISOFILE" X64=n ================================================ FILE: distro/debian/32/gnome/entry ================================================ _desktop=GNOME source distro/debian/32/entry ================================================ FILE: distro/debian/32/gnome/install.sh ================================================ source distro/debian/32/install.sh ================================================ FILE: distro/debian/32/gnome/isoinfo ================================================ _desktop=GNOME _arch=i386 source distro/debian/isoinfo.common ================================================ FILE: distro/debian/32/install.sh ================================================ install_live() { install -d "$KERNELDIR/debian/32" "$DATADIR/debian" cp "${ISO_FILEPATH}" "$DATADIR/debian/" mount_iso cp "$ISOMNT/live/vmlinuz"* "$ISOMNT/live/initrd.img"* "$KERNELDIR/debian/32/" umount_iso } ================================================ FILE: distro/debian/32/kde/entry ================================================ _desktop=KDE source distro/debian/32/entry ================================================ FILE: distro/debian/32/kde/install.sh ================================================ source distro/debian/32/install.sh ================================================ FILE: distro/debian/32/kde/isoinfo ================================================ _desktop=KDE _arch=i386 source distro/debian/isoinfo.common ================================================ FILE: distro/debian/32/lxde/entry ================================================ _desktop=LXDE source distro/debian/32/entry ================================================ FILE: distro/debian/32/lxde/install.sh ================================================ source distro/debian/32/install.sh ================================================ FILE: distro/debian/32/lxde/isoinfo ================================================ _desktop=LXDE _arch=i386 source distro/debian/isoinfo.common ================================================ FILE: distro/debian/32/mate/entry ================================================ _desktop=MATE source distro/debian/32/entry ================================================ FILE: distro/debian/32/mate/install.sh ================================================ source distro/debian/32/install.sh ================================================ FILE: distro/debian/32/mate/isoinfo ================================================ _desktop=MATE _arch=i386 source distro/debian/isoinfo.common ================================================ FILE: distro/debian/32/xfce/entry ================================================ _desktop=Xfce source distro/debian/32/entry ================================================ FILE: distro/debian/32/xfce/install.sh ================================================ source distro/debian/32/install.sh ================================================ FILE: distro/debian/32/xfce/isoinfo ================================================ _desktop=Xfce _arch=i386 source distro/debian/isoinfo.common ================================================ FILE: distro/debian/64/cinnamon/entry ================================================ _desktop=Cinnamon source distro/debian/64/entry ================================================ FILE: distro/debian/64/cinnamon/install.sh ================================================ source distro/debian/64/install.sh ================================================ FILE: distro/debian/64/cinnamon/isoinfo ================================================ _desktop=Cinnamon _arch=amd64 source distro/debian/isoinfo.common ================================================ FILE: distro/debian/64/entry ================================================ TITLE="Debian 10.10.0 AMD64 ${_desktop}" KERNEL=/liveusb-kernel/debian/64/vmlinuz-4.19.0-9-amd64 INITRD=/liveusb-kernel/debian/64/initrd.img-4.19.0-9-amd64 OPTION="boot=live findiso=liveusb-data/debian/$ISOFILE" X64=y ================================================ FILE: distro/debian/64/gnome/entry ================================================ _desktop=GNOME source distro/debian/64/entry ================================================ FILE: distro/debian/64/gnome/install.sh ================================================ source distro/debian/64/install.sh ================================================ FILE: distro/debian/64/gnome/isoinfo ================================================ _desktop=GNOME _arch=amd64 source distro/debian/isoinfo.common ================================================ FILE: distro/debian/64/install.sh ================================================ install_live() { install -d "$KERNELDIR/debian/64" "$DATADIR/debian" cp "${ISO_FILEPATH}" "$DATADIR/debian/" mount_iso cp "$ISOMNT/live/vmlinuz"* "$ISOMNT/live/initrd.img"* "$KERNELDIR/debian/64/" umount_iso } ================================================ FILE: distro/debian/64/kde/entry ================================================ _desktop=KDE source distro/debian/64/entry ================================================ FILE: distro/debian/64/kde/install.sh ================================================ source distro/debian/64/install.sh ================================================ FILE: distro/debian/64/kde/isoinfo ================================================ _desktop=KDE _arch=amd64 source distro/debian/isoinfo.common ================================================ FILE: distro/debian/64/lxde/entry ================================================ _desktop=LXDE source distro/debian/64/entry ================================================ FILE: distro/debian/64/lxde/install.sh ================================================ source distro/debian/64/install.sh ================================================ FILE: distro/debian/64/lxde/isoinfo ================================================ _desktop=LXDE _arch=amd64 source distro/debian/isoinfo.common ================================================ FILE: distro/debian/64/mate/entry ================================================ _desktop=MATE source distro/debian/64/entry ================================================ FILE: distro/debian/64/mate/install.sh ================================================ source distro/debian/64/install.sh ================================================ FILE: distro/debian/64/mate/isoinfo ================================================ _desktop=MATE _arch=amd64 source distro/debian/isoinfo.common ================================================ FILE: distro/debian/64/xfce/entry ================================================ _desktop=Xfce source distro/debian/64/entry ================================================ FILE: distro/debian/64/xfce/install.sh ================================================ source distro/debian/64/install.sh ================================================ FILE: distro/debian/64/xfce/isoinfo ================================================ _desktop=Xfce _arch=amd64 source distro/debian/isoinfo.common ================================================ FILE: distro/debian/SHA512SUMS ================================================ 2204cf6700ac1ed1a47318d9e40fffdfd0f589e2e7525f5943a95de4b6bca09ae8d9de5b55de23b045255c1bedfc67b627026e285e7f4e77abf5815998779173 debian-live-10.10.0-amd64-cinnamon.contents f3d2933547f7f7731846aed4270d47c88e9700c7c3482fbdc914c7b7ed33f12e07d138d84b6492f41af7d2b520cf49b9cd27c5254de15331f41034ca66c1b4a8 debian-live-10.10.0-amd64-cinnamon.iso 558ef2d73cb64c449fba948b17d64547b8ae3c7f1aa5b31754cae1d7cfb1a25ff00b5b8152df231a058bf407bc61cf05972691892c1deab84a7ee73aa21a18e1 debian-live-10.10.0-amd64-cinnamon.log 35f811450b5d7c0b93fae9305d15efe8c9229eeefd43b058d60da14c1c7ba454609e07307c371534c95be1dbbbd8756eb7b63bf938e17c6493e7a8836c1874f6 debian-live-10.10.0-amd64-cinnamon.packages 2204cf6700ac1ed1a47318d9e40fffdfd0f589e2e7525f5943a95de4b6bca09ae8d9de5b55de23b045255c1bedfc67b627026e285e7f4e77abf5815998779173 debian-live-10.10.0-amd64-gnome.contents 9be098fcbe7fa7f8f061d9e4497ddd32aa4085d0c7db119a80dc79c9cf7d9783b234839a696da427b70a3817938aa01627ef414ffd3c54ab6a4a750bbea81e5f debian-live-10.10.0-amd64-gnome.iso cc71037d64d7200afaf55a70d48c54ce60d86c6ed9496a338630c50a4f0c9bfe5b27dc6c0db9f196c6933dc4df5683a87c9cd911371defa43486cf63097952e6 debian-live-10.10.0-amd64-gnome.log 577d5b61d519191999f6f26d28be4cc1ab420a308fa4123d2fdce8e81f644c50a699128c1131269a66d16adec68dbc124286fcfa24ff4b3cd11d28d2ff2592f2 debian-live-10.10.0-amd64-gnome.packages f106d2b17e68824a1c429c26f2183077e9992fda0079ce777dd0f55d52787759a6fe07d5d131581c34c17f477c2473c6ce688d7c3f0c1f7bcec103ac7efa16f5 debian-live-10.10.0-amd64-kde.contents 8e93cfab40af699f08cd81897e1594741214b811f651145ee26994719e205ec9328b15e165f44f39171eb1f25bafdd3f35e9096bec4b61043f9f84c7ec7874be debian-live-10.10.0-amd64-kde.iso 41562bcfe92c7d23ff57221ecb423d36f4c6f0d7e2f2ff17b44ca85080f3a7d86c910ae687a660bfdc3ab8f68e99bcca441080d682a238449c65b4c362b1aa29 debian-live-10.10.0-amd64-kde.log df99de35a470f802a7d5ae802eb653054f531d468d88ea49ea7351f2d333cf4616c727f6be2cbeb2e601b66a028ad3b8300bc639415ad4e5d69ad3b94b212346 debian-live-10.10.0-amd64-kde.packages efa506e4489646e558156eb1e9c89e37fa75eece651e786b7cbaae3c0c7d02ff9f19ba2a45feef48820a16a4f5fa4d8ae3d0357b0d1dd8a704a491d899ed4a3e debian-live-10.10.0-amd64-lxde.contents b4a9e55e55d32428bf0ec7f81ab36795f94367fddb70363eeb174b45e44fbe77745b739a1c8118682efff234f98c1ee7e22288ff289fc0ebbcbe6a3a6c00be28 debian-live-10.10.0-amd64-lxde.iso 8dbc6ecc288db5449e7a9d356cbd97835cf0cd227ce4b676e7c3b23ffd6b32edf6c6acfaeede0892d113062f23d20fbc3c8de0efe361b12c80fe8cbf2cda7acd debian-live-10.10.0-amd64-lxde.log e7d74e91348ba8a5e8fa5c78b4c0b07224110175af1fb3b2ecccdd4ae0d59f09bf56f1bb266c78398b79bd05f53749774396567e4b7f3d6608abed1eb1a039d3 debian-live-10.10.0-amd64-lxde.packages efa506e4489646e558156eb1e9c89e37fa75eece651e786b7cbaae3c0c7d02ff9f19ba2a45feef48820a16a4f5fa4d8ae3d0357b0d1dd8a704a491d899ed4a3e debian-live-10.10.0-amd64-lxqt.contents 2673939a529b85322321c5ac81a169d67e1ce8a216881f4873e4c10263bb70f805373f7ae36930c2039fff6eb3d874f1a6a97ebdd90544902d66bfaa654e7329 debian-live-10.10.0-amd64-lxqt.iso 340913301da8be3e2332401a10073832504a5a55d5bd786f00644b254ae13a9bb74e975b4063388aa85ac256f341c0b13890f7fc8bfbcd44b3828d30e289669f debian-live-10.10.0-amd64-lxqt.log f24111472bbf84bbda5b4e0aa798d52d25d9bce58cbe2b03ac8691f63c71b55c463efe8c8f6caee959f113906ac64bc89db7def4e418da87e8372daffaeb262f debian-live-10.10.0-amd64-lxqt.packages 270bc6d00af345d12a1b69fdcbeff3dbda2f11c4e46dbbef0b425a8b9487c3203fcd164f59b98bd3faa690642463beda72d7cbb23d47299ac3f61d23cbebdfef debian-live-10.10.0-amd64-mate.contents 2216654c795d7f0fed75a43ca420e7bec4370b27572f3e87470bf850b90a1e4a7bde30cdd9aaf9fba681a9c3458322d777d5c6a03a464d8a282e68b772533b42 debian-live-10.10.0-amd64-mate.iso f0ae601c69b8aae046f59d652deb96bd91bb5fb38d0710c1bf0e75249135832297e7155f4c3aad0afd93a1193480a0ab62b5bf2250c5c296df6fb046ba223714 debian-live-10.10.0-amd64-mate.log a1c9e4cc2cfdf8417594fd7c334642d7dd01ea102c4bb99b7feeab8aecb86436943562b834d3e3266e01ec12a192aa26bf7048a340b774469e4580941c8b507c debian-live-10.10.0-amd64-mate.packages 2cd7bd744635c918064a413aff468423de431a8c083cba4fef6509e8feb9236fb63f0f5a897c65a5060e46d4002f3896c17f1289b9f20b902359765f97648b6a debian-live-10.10.0-amd64-standard.contents 860ef69250e3e7f96c58defdb0273ba7bb4e1dc2265e263104650284eb39a7f44c8884339221707965dff628b59e26d0469fd71f3525a34129ee916a2d4b1af8 debian-live-10.10.0-amd64-standard.iso 7cc5d1e943152d9c8ea9448ba4b0e5b915348bd4aef2b9b13bbb318574e84168ce4af34f25b9ef85d9b4855228654e3bd95e14bb803fa4a7d11236bb7b494427 debian-live-10.10.0-amd64-standard.log 344928f3a8fc0ad48ab7d56a140137f97e177bf1d87c2923a05a703d3403a793b571d1a4ee98d6057e10457c2c52579818bf6127917d3971c4d325038f17c481 debian-live-10.10.0-amd64-standard.packages 819461f7d6362b3c19a422bb1721d9fcef767f16d5d366403d7f40b7e8b5e8bab293299f0b9d29c7b67aeb7e244c7a3020dd1792f237379b6927669c2cd3782a debian-live-10.10.0-amd64-xfce.contents 1e134422f1a8397efe02fe3608ce0c3a1bc63ca0b3924621c97900d4a380af6dceed61c0079519c0376d31f88921200c8134d2ec8b57e8e821cad8966a3212b8 debian-live-10.10.0-amd64-xfce.iso 740a341c0b173ff9644363b0089a60531ec6cb369aa1ca328ad9c58d06ce02df592441ae7e7ba67efb3f863a3bd912b0c3e3f0c5ba5f421b9d88bc5b224aa8b5 debian-live-10.10.0-amd64-xfce.log 12ffd020c077e948c8344a201cee41897a29e9860787713d2d1a4eddb309ad011556eb6193fc0d6ec726495ef090949e6de70e883f36b9c874dff7921198ecb8 debian-live-10.10.0-amd64-xfce.packages 2c8b98709ea3c823cdf32af79e224b51f826bc2fece0fbd08a8513114905efe13ccab8114228f37bdba5a32abf85d08d63ed5686ca505cdfd1128a3eb2742f83 debian-live-10.10.0-i386-cinnamon.contents 5b319d91bfbfd85bb90a6319b2930a153da0653456ac33d5a7e97b4fc2e7a9147d0cb0259dbaa182118df2756a4bd5fc80f624f0d193db1e5c2faa2f632df1e2 debian-live-10.10.0-i386-cinnamon.iso c86e145b102bb703aaaeb1bdc60b6ac89957137c1df42c0ae4149274860b659710bf32be88c1d129f7740d8e5bedecbd1b01c121cbd3db284ac9688273253d3d debian-live-10.10.0-i386-cinnamon.log 5f726aa1db3328234128a6aaeb1fe7c5089233a3bd4a06a0bd4c9c28905a30aadd263fd7faffd717a40bac63c008df0035f374d61ade7239f30800e96e9345a8 debian-live-10.10.0-i386-cinnamon.packages 2c8b98709ea3c823cdf32af79e224b51f826bc2fece0fbd08a8513114905efe13ccab8114228f37bdba5a32abf85d08d63ed5686ca505cdfd1128a3eb2742f83 debian-live-10.10.0-i386-gnome.contents 3d2f496d6d9f4c0f5469779b1562fe7f72af49a489cc042dd3f90509e072f2bf394309ec818c6619445da8163d2f361a058244994cef1a36b831d6aa859f47ee debian-live-10.10.0-i386-gnome.iso e55d3fb773c22106f3ba55e01db66c937be544726ec463a999068f16232fe52c188a99dbade7fe3d3c381f938b21015e0926925677cfb1a12d12388c62d9b6e9 debian-live-10.10.0-i386-gnome.log f7627ab3dc78a450da368ce3479d3cb6f13b3da726c08e0c4325d6695b13eed32c7d9df7af1230cf27081cbaac5288c9f617a47924122932dcdb1839ee4da166 debian-live-10.10.0-i386-gnome.packages c37887308032e78ab9a7e87c070b827964c9d60f9b0866ac9b7309815e57685234dff56a2d51acbf41c606509be57b33b9a3a2eeebf0bf639d00d336624965e6 debian-live-10.10.0-i386-kde.contents b0a0dc98892caac6308eb48de1c34f485f886e2254b8286810985a4ac44902ab26e8854f3c1c165bc82c9122bb5ee7dc4dc5a0e74c16edd36f55557a6a7fcabc debian-live-10.10.0-i386-kde.iso 1dd09b1e8fdcd83172d0e84246dd2939cfac2ee9e5382c087a40084e516142eb5ee5c7e60d1ae161fa44883fcf01d93dcefab562921519738eb40611507b41a5 debian-live-10.10.0-i386-kde.log 67f0956404134dd37729d6d0fdab521165eb2f6005aa80319350057c8e87a14c3d8594d523813429e8acfbe38802b86feaaf0c4d7550a5a9abb9e4e6ba87cbb1 debian-live-10.10.0-i386-kde.packages 4864a98487fc180739d8fd31c81fcd5c4e4d64cb9da230569936236596380bdd99bce6ff171b89855f9de35c2386171f9dc74bc0edb26de00bb250bc04d082dc debian-live-10.10.0-i386-lxde.contents 20e109f63dad53525fcf85a4c1df8bd722bb90431857057749f000fb621275436c167acd87089d70d2fd9a4575a824fa83082be27d96033c7edd6cff43c695b4 debian-live-10.10.0-i386-lxde.iso 41346466d79c10de62b85ab9b29d3f7d7cd58c62a2903ef9d28252ad56ca5289907caf541d47685c274f00d1f4855acf145468a20986fe961a6a1a1a3f0559b5 debian-live-10.10.0-i386-lxde.log ab4ef075627e9459452fa1f53b0aec0280d2ae08d688835e0ed11e00169f96f4bdd78947b5753e755be0aeafc985501d6714c6de6764dac2b00672ac2c500d5b debian-live-10.10.0-i386-lxde.packages 4864a98487fc180739d8fd31c81fcd5c4e4d64cb9da230569936236596380bdd99bce6ff171b89855f9de35c2386171f9dc74bc0edb26de00bb250bc04d082dc debian-live-10.10.0-i386-lxqt.contents ad2c8a2d69334735b191b051d412245eac2be883937659742e1305ab00b0741ac9480ab990dcba4300d948277b75a6667888cb840654b4fb61a488c1660e7d93 debian-live-10.10.0-i386-lxqt.iso 357d979e2af1ae902324911543235a517173e1bb8b77bf92e1ac072a17e26379f7b6932d2ac76537e0ddcfcf0b2bfcee93f7ce06f7fada4ed59c8f3da027b29c debian-live-10.10.0-i386-lxqt.log 9da981d3a12810ef96215eef5edf4fc3f089d6fe8f27f7f4434a4fbb92a2e0b5dad5e867ed8a940c6b8b9a82781c3a0effaa3007757e69906f552c907163d89e debian-live-10.10.0-i386-lxqt.packages 9ba7b46460592c8a2a7d28c8e6508fb47a6df7de9c6211da01d8e0f1594cee2713401cff8644d163d1dbd0b548b793963f05f450d5765a76778e40547c1e32f9 debian-live-10.10.0-i386-mate.contents 4af08a762e0f3afebd9e03399a91b1744965515bb00792c8e0d0db1c6985e068b6b1d6395d2d6916893aae12145f3bf4a2535cd25d17ccf8e342a52776a4a96f debian-live-10.10.0-i386-mate.iso 828a24bab77e4558207882180f107c48202d9329d26ca256671542c1e72ef27d0f4d1e82ec84ffd8ac4cbd973d8a608367a28503e0cc3034f5ac077e2ed9e428 debian-live-10.10.0-i386-mate.log 2720124dcb80094805e120d7947617f5835955327f4efc17755a5d6125b5168c3ac864dbd1eae7a6eb0f4a7afc2c6122a7a5f962d02b145e52555263796a1b07 debian-live-10.10.0-i386-mate.packages 808a32b2d905c47acabbd47c45f5737543f2c8096d0ce9dec184d91bf66922912f716febd82dc1ecbc11e94b4a146aaee86ccb1845195902d63768b561343c27 debian-live-10.10.0-i386-standard.contents 503133dfddcf4bcc83d957e2c5ca9a806c911ccd4b18281ea3b01d3451ea7e149410156c1ff83de39fdf105a9821a4105352bb46bb132f5505de477ef9e7cd0d debian-live-10.10.0-i386-standard.iso d198fa235780b727b5fc6dc2946d1d63dee633075b26c7e50fb10d202fe86346a4f97bba7b2020efe7597d7cdf57ca1c36488eb51c1e1a070c58d1adc275ebd6 debian-live-10.10.0-i386-standard.log 1678f2b15c4304f7523465073aaca171a78996146d52072d0dd939681f44b75b9b544f74ceeeb7265f07620a6a4e741817fe409b2c34ec726555844796de44ee debian-live-10.10.0-i386-standard.packages 7b4647032dd4969c6ab0e46536c0f7faf5f80a9624ce65e569f25727fb31ace28bdb3ae51dc361033e63750f050371c5c57d92a2ba1fcfd321a8315fb220d355 debian-live-10.10.0-i386-xfce.contents 35889dda13cdf3304afaf35c1d20c3e4ec77f5f63626a1118c0419a828c84d40572997ca9dd00820accaff927ab48482d6d33b23be5b679b108ec7c001885d65 debian-live-10.10.0-i386-xfce.iso 900c82bf2c9e394f105fc8826237913145870c8cd2e5b40defc359fc941c15a9605189a7c858aab43d24958d076ab536437ce0df4436824753c71f09a233b3f8 debian-live-10.10.0-i386-xfce.log 029a9f06abefeca693f8ed11de447123e7aa3f763976805221ad230ee875156afb9526b0fe56ee828702a1fa4242f3398f53d8dd349751cb80618df0bbc11e67 debian-live-10.10.0-i386-xfce.packages ================================================ FILE: distro/debian/distroinfo ================================================ DISTRONAME='Debian' KEYWORD='debian' ================================================ FILE: distro/debian/isoinfo.common ================================================ _isover=10.10.0 ISONAME="$DISTRONAME ${_isover} ${_arch} ${_desktop}" ISOURL="${_isover}-live/${_arch}/iso-hybrid/debian-live-${_isover}-${_arch}-${_desktop,,}.iso" HASHTOOL=sha512sum HASHFILE=distro/debian/SHA512SUMS VERIFY=hashfile mirrorlist=( https://mirrors.tuna.tsinghua.edu.cn/debian-cd http://mirrors.ustc.edu.cn/debian-cd ) ================================================ FILE: distro/deepin/distroinfo ================================================ DISTRONAME='Deepin' KEYWORD='deepin' ================================================ FILE: distro/deepin/entry ================================================ # from aguslr/multibootusb TITLE='Deepin installer x86_64' KERNEL=/liveusb-kernel/$KEYWORD/vmlinuz INITRD=(/liveusb-kernel/$KEYWORD/initrd.lz) OPTION="root=UUID=$UUID fromiso=liveusb-data/$KEYWORD/$ISOFILE boot=live components quiet splash union=overlay livecd-installer" X64=y ================================================ FILE: distro/deepin/install.sh ================================================ install_live() { mount_iso install -d "$DATADIR/$KEYWORD" "$KERNELDIR/$KEYWORD" cp "${ISO_FILEPATH}" "$DATADIR/$KEYWORD/" cp "$ISOMNT/live/"{vmlinuz,initrd.lz} "$KERNELDIR/$KEYWORD/" umount_iso } ================================================ FILE: distro/deepin/isoinfo ================================================ _isover=20 ISONAME="$DISTRONAME ${_isover} amd64" ISOURL="${_isover}/deepin-desktop-community-1002-amd64.iso" SHA256=7411661c346a010032fbf27345377ab117f76879f17d6dcfdd243072e064d109 mirrorlist=( https://mirrors.tuna.tsinghua.edu.cn/deepin-cd http://cdimage.deepin.com/releases ) ================================================ FILE: distro/fedora/36/entry ================================================ version=36 source distro/fedora/entry.common ================================================ FILE: distro/fedora/36/install.sh ================================================ version=36 source distro/fedora/install.sh ================================================ FILE: distro/fedora/36/isoinfo ================================================ ISONAME="$DISTRONAME 36 Workstation" ISOURL=releases/36/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-36-1.5.iso SHA256=80169891cb10c679cdc31dc035dab9aae3e874395adc5229f0fe5cfcc111cc8c mirrorlist=( https://mirrors.tuna.tsinghua.edu.cn/fedora http://mirrors.ustc.edu.cn/fedora/linux ) ================================================ FILE: distro/fedora/distroinfo ================================================ DISTRONAME='Fedora' KEYWORD='fedora' ================================================ FILE: distro/fedora/entry.common ================================================ TITLE="Fedora $version x86_64" KERNEL=/liveusb-kernel/fedora/$version/vmlinuz INITRD=/liveusb-kernel/fedora/$version/initrd.img OPTION="root=live:UUID=$UUID ro rd.live.dir=liveusb-data/fedora/$version rd.live.image quiet" X64=y ================================================ FILE: distro/fedora/install.sh ================================================ install_live() { mount_iso install -d "$DATADIR/fedora/$version" "$KERNELDIR/fedora/$version" cp "$ISOMNT/LiveOS"/* "$DATADIR/fedora/$version" cp "$ISOMNT/isolinux/vmlinuz" "$ISOMNT/isolinux/initrd.img" "$KERNELDIR/fedora/$version" umount_iso } ================================================ FILE: distro/grml/64/entry ================================================ ver=2022.11 TITLE="Grml $ver 64-bit full" KERNEL=/liveusb-kernel/grml/64/vmlinuz INITRD=/liveusb-kernel/grml/64/initrd.img OPTION="boot=live findiso=liveusb-data/grml/$ISOFILE live-media-path=/live/grml64-full/ ignore_bootid iomem=relaxed" X64=y ================================================ FILE: distro/grml/64/install.sh ================================================ install_live() { install -d "$KERNELDIR/grml/64" "$DATADIR/grml" cp "${ISO_FILEPATH}" "$DATADIR/grml/" mount_iso cp "$ISOMNT/boot/grml64full/vmlinuz" "$ISOMNT/boot/grml64full/initrd.img" "$KERNELDIR/grml/64/" umount_iso } ================================================ FILE: distro/grml/64/isoinfo ================================================ ver=2022.11 ISONAME="Grml $ver 64-bit full" ISOURL="grml64-full_$ver.iso" SHA256=8b8e4a548a7dcdcd8f3e93098e740c012b5427cf5f4bc5730ef428a6feddd877 mirrorlist=( http://download.grml.org ) ================================================ FILE: distro/grml/distroinfo ================================================ DISTRONAME='Grml' KEYWORD='grml' ================================================ FILE: distro/hyperbola/distroinfo ================================================ DISTRONAME='Hyperbola' KEYWORD='hyperbola' ================================================ FILE: distro/hyperbola/entry1 ================================================ TITLE='Hyperbola GNU/Linux-libre x86_64' KERNEL=/liveusb-kernel/hyperbola/boot/x86_64/vmlinuz INITRD=(/liveusb-kernel/hyperbola/boot/x86_64/hyperiso.img) OPTION="hyperisodevice=/dev/disk/by-uuid/$UUID hyperisobasedir=liveusb-data/hyperbola" X64=y ================================================ FILE: distro/hyperbola/entry2 ================================================ TITLE='Hyperbola GNU/Linux-libre i686' KERNEL=/liveusb-kernel/hyperbola/boot/i686/vmlinuz INITRD=(/liveusb-kernel/hyperbola/boot/i686/hyperiso.img) OPTION="hyperisodevice=/dev/disk/by-uuid/$UUID hyperisobasedir=liveusb-data/hyperbola" X64=n ================================================ FILE: distro/hyperbola/install.sh ================================================ install_live() { mount_iso install -d "$DATADIR/hyperbola" cp -r "$ISOMNT/hyperbola/"{aitab,i686,x86_64} "$DATADIR/hyperbola/" install -d "$KERNELDIR/hyperbola" cp -r "$ISOMNT/hyperbola/boot" "$KERNELDIR/hyperbola" umount_iso } ================================================ FILE: distro/hyperbola/isoinfo ================================================ _isover=milky-way-v0.3.1 ISONAME='Hyperbola Milky Way v0.3.1' ISOURL=other/live_images/gnu-plus-linux-libre/hyperbola-${_isover}/hyperbola-${_isover}-dual.iso SHA512=9e098157025fecaa313e5a878d993952c88417dfa78c3a9885d2cae54f4a00e1062b75eb9dc38b356f389ec68ccb6d12c40e41a2a31ae563273938889efa498c mirrorlist=( https://mirror.fsf.org/hyperbola/sources https://repo.hyperbola.info:50000 https://mirror.cedia.org.ec/hyperbola/sources https://ftp.nluug.nl/os/Linux/distr/hyperbola/sources ) ================================================ FILE: distro/kali/distroinfo ================================================ DISTRONAME='Kali Linux' KEYWORD='kali' ================================================ FILE: distro/kali/entry ================================================ TITLE='Kali Linux' KERNEL=/liveusb-kernel/kali/64/vmlinuz INITRD=/liveusb-kernel/kali/64/initrd.img OPTION="boot=live username=root hostname=kali findiso=liveusb-data/kali/$ISOFILE" X64=y ================================================ FILE: distro/kali/install.sh ================================================ install_live() { install -d "$KERNELDIR/kali/64" "$DATADIR/kali" cp "${ISO_FILEPATH}" "$DATADIR/kali/" mount_iso cp "$ISOMNT/live/vmlinuz" "$ISOMNT/live/initrd.img" "$KERNELDIR/kali/64/" umount_iso } ================================================ FILE: distro/kali/isoinfo ================================================ _isover=2020.1b ISONAME="$DISTRONAME $_isover amd64" ISOURL="kali-$_isover/kali-linux-$_isover-live-amd64.iso" SHA256=611476f7d432e737478631857beb2b49c688c776f8da20b8da56c5151722811f mirrorlist=( https://mirrors.tuna.tsinghua.edu.cn/kali-images http://cdimage.kali.org ) ================================================ FILE: distro/manjaro/architect/entry ================================================ _arch=x86_64 _flavour=ARCHITECT source distro/manjaro/entry ================================================ FILE: distro/manjaro/architect/install.sh ================================================ ARCH=x86_64 source distro/manjaro/install.sh ================================================ FILE: distro/manjaro/architect/isoinfo ================================================ source distro/manjaro/isoinfo.common _isodate=18.0.2 ISONAME="$DISTRONAME x86_64 $_isodate ARCHITECT" ISOURL=manjaro-architect-${_isodate}-stable-x86_64.iso SHA256=1c2d1500009c87816ead28cbeb29c7838ed46e2a99ffe24c14e0757d73c772f8 ================================================ FILE: distro/manjaro/distroinfo ================================================ DISTRONAME='Manjaro Linux' KEYWORD='manjaro' ================================================ FILE: distro/manjaro/entry ================================================ TITLE="Manjaro Linux $_arch $_flavour" KERNEL=/liveusb-kernel/manjaro/vmlinuz-${_arch} INITRD=(/liveusb-kernel/manjaro/intel_ucode.img /liveusb-kernel/manjaro/initramfs-${_arch}.img) OPTION="img_dev=/dev/disk/by-uuid/$UUID img_loop=liveusb-data/manjaro/$ISOFILE" [ $_arch == i686 ] && X64=n || X64=y ================================================ FILE: distro/manjaro/gnome/entry ================================================ _arch=x86_64 _flavour=GNOME source distro/manjaro/entry ================================================ FILE: distro/manjaro/gnome/install.sh ================================================ ARCH=x86_64 source distro/manjaro/install.sh ================================================ FILE: distro/manjaro/gnome/isoinfo ================================================ source distro/manjaro/isoinfo.common ISONAME="$DISTRONAME x86_64 $_isodate GNOME" ISOURL=manjaro-gnome-${_isodate}-stable-x86_64.iso SHA256=2508ab505fde630496a868d468007ca46aaca4c2223223512b0e9f3138fdb31f ================================================ FILE: distro/manjaro/install.sh ================================================ install_live() { install -d "$DATADIR/manjaro/" "$KERNELDIR/manjaro" mount_iso cp "$ISOMNT/boot/vmlinuz-$ARCH" "$ISOMNT/boot/initramfs-$ARCH.img" "$ISOMNT/boot/intel_ucode.img" \ "$KERNELDIR/manjaro" umount_iso cp "${ISO_FILEPATH}" "$DATADIR/manjaro/" } ================================================ FILE: distro/manjaro/isoinfo.common ================================================ _isodate=18.0.4 mirrorlist=( https://osdn.net/dl/manjaro ) ================================================ FILE: distro/manjaro/kde/entry ================================================ _arch=x86_64 _flavour=KDE source distro/manjaro/entry ================================================ FILE: distro/manjaro/kde/install.sh ================================================ ARCH=x86_64 source distro/manjaro/install.sh ================================================ FILE: distro/manjaro/kde/isoinfo ================================================ source distro/manjaro/isoinfo.common ISONAME="$DISTRONAME x86_64 $_isodate KDE" ISOURL=manjaro-kde-${_isodate}-stable-x86_64.iso SHA256=ab0ab7963ffbba6956906e27f6e9e1e5da823ab25356564208f158b8ba00b1c9 ================================================ FILE: distro/manjaro/xfce/entry ================================================ _arch=x86_64 _flavour=Xfce source distro/manjaro/entry ================================================ FILE: distro/manjaro/xfce/install.sh ================================================ ARCH=x86_64 source distro/manjaro/install.sh ================================================ FILE: distro/manjaro/xfce/isoinfo ================================================ source distro/manjaro/isoinfo.common ISONAME="$DISTRONAME x86_64 $_isodate Xfce" ISOURL="manjaro-xfce-${_isodate}-stable-x86_64.iso" SHA256=ea763ae74d14896568ac2eff74faf0ba5bdbb73e38d77bc12804292096d0056b ================================================ FILE: distro/mint/cinnamon/config ================================================ _arch=x86_64 _ver=21.1 _de=Cinnamon ================================================ FILE: distro/mint/cinnamon/entry ================================================ source distro/mint/cinnamon/config source distro/mint/entry.common ================================================ FILE: distro/mint/cinnamon/install.sh ================================================ source distro/mint/cinnamon/config _ver="${_ver}/${_de}" source distro/mint/install.sh ================================================ FILE: distro/mint/cinnamon/isoinfo ================================================ source distro/mint/cinnamon/config source distro/mint/isoinfo.common ISONAME="$DISTRONAME ${_ver} x86_64 (${_de})" ISOURL=stable/${_ver}/linuxmint-${_ver}-cinnamon-64bit.iso ================================================ FILE: distro/mint/distroinfo ================================================ DISTRONAME='Linux Mint' KEYWORD='mint' ================================================ FILE: distro/mint/entry.common ================================================ TITLE="Linux Mint $_ver $_arch with $_de Desktop" if [[ "$_arch" == x86_64 ]]; then _bit=64 X64=y else _bit=32 X64=n fi KERNEL=/liveusb-kernel/mint/$_ver/$_de/$_bit/vmlinuz INITRD=/liveusb-kernel/mint/$_ver/$_de/$_bit/initrd.lz OPTION="file=/cdrom/preseed/linuxmint.seed boot=casper iso-scan/filename=/liveusb-data/mint/$ISOFILE quiet splash --" ================================================ FILE: distro/mint/install.sh ================================================ VMLINUZ=vmlinuz INITRD=initrd.lz source distro/ubuntu/install.sh ================================================ FILE: distro/mint/isoinfo.common ================================================ HASHTOOL=sha256sum HASHFILE=distro/mint/sha256sum.txt VERIFY=hashfile mirrorlist=( https://mirrors.tuna.tsinghua.edu.cn/linuxmint-cd http://mirrors.ustc.edu.cn/linuxmint-cd ) ================================================ FILE: distro/mint/lmde/entry ================================================ TITLE="Linux Mint Debian Edition x86_64" KERNEL="/liveusb-kernel/mint/lmde/64/vmlinuz" INITRD="/liveusb-kernel/mint/lmde/64/initrd.lz" OPTION="boot=live live-config findiso=liveusb-data/mint/$ISOFILE quiet splash --" ================================================ FILE: distro/mint/lmde/install.sh ================================================ install_live() { install -d "$KERNELDIR/mint/lmde/64" "$DATADIR/mint" mount_iso cp "$ISOMNT/live/vmlinuz" "$ISOMNT/live/initrd.lz" "$KERNELDIR/mint/lmde/64/" cp "${ISO_FILEPATH}" "$DATADIR/mint/" umount_iso } ================================================ FILE: distro/mint/lmde/isoinfo ================================================ ISONAME="$DISTRONAME Debian Edition" ISOURL=debian/lmde-4-cinnamon-64bit.iso SHA256=fb6fb4f507f1de979a8922f9e503ae0ad8109e87ea1a9a163a6b30f819971256 mirrorlist=( https://mirrors.tuna.tsinghua.edu.cn/linuxmint-cd http://mirrors.ustc.edu.cn/linuxmint-cd ) ================================================ FILE: distro/mint/mate/config ================================================ _arch=x86_64 _ver=21.1 _de=MATE ================================================ FILE: distro/mint/mate/entry ================================================ source distro/mint/mate/config source distro/mint/entry.common ================================================ FILE: distro/mint/mate/install.sh ================================================ source distro/mint/mate/config _ver="${_ver}/${_de}" source distro/mint/install.sh ================================================ FILE: distro/mint/mate/isoinfo ================================================ source distro/mint/mate/config source distro/mint/isoinfo.common ISONAME="$DISTRONAME ${_ver} x86_64 (${_de})" ISOURL=stable/${_ver}/linuxmint-${_ver}-mate-64bit.iso ================================================ FILE: distro/mint/sha256sum.txt ================================================ 2df322f030d8ff4633360930a92d78829d10e515d2f6975b9bdfd1c0de769aca *linuxmint-21.1-cinnamon-64bit.iso f7fb9c0500e583c46587402578547ea56125e0a054097f9f464a2500830c8b25 *linuxmint-21.1-mate-64bit.iso 6fea221b5b0272d55de57f3d31498cdf76682f414e60d28131dc428e719efa8b *linuxmint-21.1-xfce-64bit.iso ================================================ FILE: distro/mint/xfce/config ================================================ _arch=x86_64 _ver=21.1 _de=Xfce ================================================ FILE: distro/mint/xfce/entry ================================================ source distro/mint/xfce/config source distro/mint/entry.common ================================================ FILE: distro/mint/xfce/install.sh ================================================ source distro/mint/xfce/config _ver="${_ver}/${_de}" source distro/mint/install.sh ================================================ FILE: distro/mint/xfce/isoinfo ================================================ source distro/mint/xfce/config source distro/mint/isoinfo.common ISONAME="$DISTRONAME ${_ver} x86_64 (${_de})" ISOURL=stable/${_ver}/linuxmint-${_ver}-xfce-64bit.iso ================================================ FILE: distro/mx/32/entry ================================================ X64=n source distro/mx/entry ================================================ FILE: distro/mx/32/install.sh ================================================ BITS=32 source distro/mx/install.sh ================================================ FILE: distro/mx/32/isoinfo ================================================ source distro/mx/isoinfo.common ISONAME="$DISTRONAME Linux $_isover i386" ISOURL="MX-${_isover}_386.iso" SHA256=187781c59394d086f347b00afe2f75e38e18a1044624998939c8403b40d4975e ================================================ FILE: distro/mx/64/entry ================================================ source distro/mx/entry ================================================ FILE: distro/mx/64/install.sh ================================================ BITS=64 source distro/mx/install.sh ================================================ FILE: distro/mx/64/isoinfo ================================================ source distro/mx/isoinfo.common ISONAME="$DISTRONAME Linux $_isover x64" ISOURL="MX-${_isover}_x64.iso" SHA256=7cf6d7dafe8200e7553f3548121eac077e87f891b5cdb939c0b677b9d7720e4c ================================================ FILE: distro/mx/distroinfo ================================================ DISTRONAME='MX' KEYWORD='mx' ================================================ FILE: distro/mx/entry ================================================ if [ "$X64" = n ]; then BITS=32 ARCH_STR="i386" else BITS=64 ARCH_STR="x86_64" X64=y fi TITLE="MX Linux 19.1 $ARCH_STR" KERNEL="/liveusb-kernel/$KEYWORD/$BITS/vmlinuz" INITRD="/liveusb-kernel/$KEYWORD/$BITS/initrd.gz" # from aguslr/multibootusb OPTION="from=hd,usb root=UUID=$UUID fromiso=liveusb-data/$KEYWORD/$ISOFILE" ================================================ FILE: distro/mx/install.sh ================================================ install_live() { install -d "$KERNELDIR/$KEYWORD/$BITS" "$DATADIR/$KEYWORD" cp "${ISO_FILEPATH}" "$DATADIR/$KEYWORD/" mount_iso cp "$ISOMNT/antiX/vmlinuz" "$ISOMNT/antiX/initrd.gz" \ "$KERNELDIR/$KEYWORD/$BITS/" umount_iso } ================================================ FILE: distro/mx/isoinfo.common ================================================ _isover=19.2 mirrorlist=( https://mirrors.tuna.tsinghua.edu.cn/mxlinux-isos/MX/Final http://iso.mxrepo.com/Downloads/Final/MX-${_isover} http://it.mxrepo.com/Final/MX-${_isover} ) ================================================ FILE: distro/opensuse/15/entry ================================================ version=15 CDLABEL=openSUSE_Leap_15.0_KDE_Live source distro/opensuse/entry.common ================================================ FILE: distro/opensuse/15/install.sh ================================================ version=15 source distro/opensuse/install.sh ================================================ FILE: distro/opensuse/15/isoinfo ================================================ ISONAME="$DISTRONAME 15 KDE Live" ISOURL=distribution/leap/15.0/live/openSUSE-Leap-15.0-KDE-Live-x86_64-Snapshot17.9-Media.iso SHA256=e5b8c9ae1dd596e8fc5cda89d616cc6e8f5aecccba668d198a8c2d3b19175e9e mirrorlist=( https://download.opensuse.org https://mirrors.tuna.tsinghua.edu.cn/opensuse ) ================================================ FILE: distro/opensuse/distroinfo ================================================ DISTRONAME='OpenSUSE' KEYWORD='opensuse' ================================================ FILE: distro/opensuse/entry.common ================================================ TITLE="OpenSUSE $version x86_64" KERNEL=/liveusb-kernel/opensuse/$version/linux INITRD=/liveusb-kernel/opensuse/$version/initrd OPTION="root=live:CDLABEL=$CDLABEL iso-scan/filename=liveusb-data/opensuse/$ISOFILE" X64=y ================================================ FILE: distro/opensuse/install.sh ================================================ install_live() { mount_iso install -d "$DATADIR/opensuse/" "$KERNELDIR/opensuse/$version" cp "$ISOMNT/boot/x86_64/loader"/{linux,initrd} \ "$KERNELDIR/opensuse/$version" umount_iso cp "${ISO_FILEPATH}" "$DATADIR/opensuse/" } ================================================ FILE: distro/opensuse/meta ================================================ entry() { isofn="$(basename "$ISOFILE")" label="$(get_iso_label "${ISO_FILEPATH}")" TITLE="$label" KERNEL=/liveusb-kernel/$KEYWORD/linux INITRD=/liveusb-kernel/$KEYWORD/initrd OPTION="root=live:CDLABEL=$label iso-scan/filename=liveusb-data/$KEYWORD/$isofn" X64=y } install_live() { mount_iso install -d "$DATADIR/$KEYWORD" "$KERNELDIR/$KEYWORD" cp "$ISOMNT/boot/x86_64/loader"/{linux,initrd} \ "$KERNELDIR/$KEYWORD" umount_iso cp "${ISO_FILEPATH}" "$DATADIR/$KEYWORD/" } entries=(entry) ================================================ FILE: distro/opensuse/tumbleweed/entry ================================================ # Thank aguslr's multibootusb (https://github.com/aguslr/multibootusb) # for the command line version=tumbleweed TITLE="OpenSUSE Tumbleweed x86_64" KERNEL=/liveusb-kernel/opensuse/$version/linux INITRD=/liveusb-kernel/opensuse/$version/initrd OPTION="install=hd:liveusb-data/opensuse/$ISOFILE" X64=y ================================================ FILE: distro/opensuse/tumbleweed/install.sh ================================================ version=tumbleweed source distro/opensuse/install.sh ================================================ FILE: distro/opensuse/tumbleweed/isoinfo ================================================ # Copyright (C) 2018 Iru Cai # SPDX-License-Identifier: GPL-3.0-or-later ISONAME="$DISTRONAME Tumbleweed" ISOURL=tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso VERIFY=verify_suse VERIFILE=openSUSE-Tumbleweed-DVD-x86_64-Current.iso.sha256 mirrorlist=( https://download.opensuse.org ) verify_suse() { local _hashsum _cksum if ! test -f "$ISOPATH/$VERIFILE" then wget -O "$ISOPATH/$VERIFILE" "https://download.opensuse.org/tumbleweed/iso/$VERIFILE" fi gpg --verify "$ISOPATH/$VERIFILE" _hashsum="$(grep openSUSE-Tumbleweed-DVD-x86_64 "$ISOPATH/$VERIFILE" | cut -d' ' -f1)" _cksum=$(sha256sum "$ISOPATH/$ISOFILE" | cut -d' ' -f1) if [[ $_cksum == $_hashsum ]]; then msg "$ISOFILE ok." else msg "$ISOFILE checksum bad!" && return 1 fi } ================================================ FILE: distro/parabola/32/entry ================================================ ARCH=i686 X64=n source distro/parabola/entry ================================================ FILE: distro/parabola/32/install.sh ================================================ ARCH=i686 source distro/parabola/install.sh ================================================ FILE: distro/parabola/32/isoinfo ================================================ _isodate=2018.06.11 _arch=i686 SHA512=3c601620913b83d143f876466765841968d36518e5638ceebefd835164f30d4a5b4a282546fe0ac9ba2f2a1186f754e7b1cd29cb31faa0c8cea6a009d2ecc630 source distro/parabola/isoinfo.common ================================================ FILE: distro/parabola/64/entry ================================================ ARCH=x86_64 X64=y source distro/parabola/entry ================================================ FILE: distro/parabola/64/install.sh ================================================ ARCH=x86_64 source distro/parabola/install.sh ================================================ FILE: distro/parabola/64/isoinfo ================================================ _isodate=2018.06.11 _arch=x86_64 SHA512=0af995c407bf27a3ef040681fe1493a626edde7034a2ef4bf14d1da51ec5db5bd6dcfc13670d735affcae00853517b36c9e35fd8fb86535d79afd84807dabe33 source distro/parabola/isoinfo.common ================================================ FILE: distro/parabola/distroinfo ================================================ DISTRONAME='Parabola GNU/Linux-libre' KEYWORD='parabola' ================================================ FILE: distro/parabola/entry ================================================ TITLE="Parabola GNU/Linux-libre $ARCH" KERNEL="/liveusb-kernel/parabola/$ARCH/vmlinuz" INITRD="/liveusb-kernel/parabola/$ARCH/parabolaiso.img" OPTION="parabolaisodevice=/dev/disk/by-uuid/$UUID parabolaisobasedir=liveusb-data/parabola" ================================================ FILE: distro/parabola/install.sh ================================================ install_live() { mount_iso install -d "$DATADIR/parabola" cp -r "$ISOMNT/parabola/"{$ARCH,checksum*,pkglist*,aitab} "$DATADIR/parabola/" install -d "$KERNELDIR/parabola" cp -r "$ISOMNT/parabola/boot/$ARCH" "$KERNELDIR/parabola/" umount_iso } ================================================ FILE: distro/parabola/isoinfo.common ================================================ ISONAME="$DISTRONAME $_isodate" ISOURL="iso/openrc-cli-${_isodate}/parabola-openrc-cli-${_arch}-netinstall-${_isodate}.iso" mirrorlist=( https://repomirror.parabola.nu http://mirror.yandex.ru/mirrors/parabola http://parabolagnulinux.mirrors.linux.ro ) ================================================ FILE: distro/pureos/TODO ================================================ 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. ================================================ FILE: distro/pureos/distroinfo ================================================ DISTRONAME='PureOS' KEYWORD='pureos' ================================================ FILE: distro/pureos/entry ================================================ TITLE='PureOS' KERNEL=/liveusb-kernel/pureos/vmlinuz INITRD=/liveusb-kernel/pureos/initrd.img OPTION="boot=casper live-media=/dev/disk/by-uuid/$UUID live-media-path=liveusb-data/pureos quiet splash ---" X64=y ================================================ FILE: distro/pureos/install.sh ================================================ install_live() { install -d "$KERNELDIR/pureos" "$DATADIR/pureos" mount_iso cp "$ISOMNT/casper/vmlinuz" "$ISOMNT/casper/initrd.img" \ "$KERNELDIR/pureos" install -m600 "$ISOMNT/casper/filesystem.squashfs" "$DATADIR/pureos" umount_iso } ================================================ FILE: distro/pureos/isoinfo ================================================ ISONAME="PureOS GNOME 2020.03.04" ISOURL=gnome/2020-03-04/pureos-9.0-gnome-live_20200304-amd64.hybrid.iso SHA256=6ced66a33fa22dfdcc4a445b517ef4168ab559009bb834b2b74a64a78473c6ce mirrorlist=( https://downloads.puri.sm/amber/live http://downloads.pureos.net/amber/live ) ================================================ FILE: distro/systemrescuecd/5.3.2/entry1 ================================================ TITLE='SystemRescueCd 5.3.2 x86_64' KERNEL=/liveusb-kernel/sysrcd/rescue64 INITRD=/liveusb-kernel/sysrcd/initram.igz OPTION="subdir=liveusb-data/sysrcd" X64=y ================================================ FILE: distro/systemrescuecd/5.3.2/entry2 ================================================ TITLE='SystemRescueCd 5.3.2 i686' KERNEL=/liveusb-kernel/sysrcd/rescue32 INITRD=/liveusb-kernel/sysrcd/initram.igz OPTION="subdir=liveusb-data/sysrcd" X64=n ================================================ FILE: distro/systemrescuecd/5.3.2/install.sh ================================================ install_live() { mount_iso install -d "$DATADIR/sysrcd" "$KERNELDIR/sysrcd" cp "$ISOMNT/"{sysrcd.dat,sysrcd.md5} "$DATADIR/sysrcd/" cp "$ISOMNT/isolinux/"{rescue32,rescue64,initram.igz} "$KERNELDIR/sysrcd/" umount_iso } ================================================ FILE: distro/systemrescuecd/5.3.2/isoinfo ================================================ _isover=5.3.2 ISONAME="$DISTRONAME $_isover" ISOURL=sysresccd-x86/$_isover/systemrescuecd-x86-$_isover.iso SHA256=0a55c61bf24edd04ce44cdf5c3736f739349652154a7e27c4b1caaeb19276ad1 mirrorlist=( https://sourceforge.net/projects/systemrescuecd/files ) ================================================ FILE: distro/systemrescuecd/distroinfo ================================================ DISTRONAME='SystemRescueCd' KEYWORD='sysrcd' ================================================ FILE: distro/systemrescuecd/latest/entry1 ================================================ TITLE='SystemRescueCd 6.1.5 x86_64' KERNEL=/liveusb-kernel/$KEYWORD/x86_64/vmlinuz INITRD=(/liveusb-kernel/$KEYWORD/intel_ucode.img /liveusb-kernel/$KEYWORD/amd_ucode.img /liveusb-kernel/$KEYWORD/x86_64/sysresccd.img) OPTION="archisodevice=/dev/disk/by-uuid/$UUID archisobasedir=liveusb-data/$KEYWORD iomem=relaxed" X64=y ================================================ FILE: distro/systemrescuecd/latest/install.sh ================================================ install_live() { mount_iso install -d "$DATADIR/$KEYWORD" "$KERNELDIR/$KEYWORD" cp -r "$ISOMNT/sysresccd/x86_64" "$DATADIR/$KEYWORD/" cp -r "$ISOMNT/sysresccd/boot/x86_64" "$KERNELDIR/$KEYWORD/" cp "$ISOMNT/sysresccd/boot/"*.img "$KERNELDIR/$KEYWORD/" umount_iso } ================================================ FILE: distro/systemrescuecd/latest/isoinfo ================================================ _isover=6.1.5 ISONAME="$DISTRONAME $_isover" ISOURL=$_isover/systemrescuecd-amd64-$_isover.iso SHA256=b1b6ae527c4ea3cbf0a6ea86416e8e3ebb3b8edd0bd9df9cecf4d8be2b2fcb59 mirrorlist=( https://osdn.net/projects/systemrescuecd/storage/releases ) ================================================ FILE: distro/trisquel/8.0/64/mini/entry ================================================ TITLE='Trisquel Mini 8.0 GNU/Linux-libre x86_64' KERNEL=/liveusb-kernel/trisquel/64/vmlinuz INITRD=/liveusb-kernel/trisquel/64/initrd OPTION="file=/cdrom/preseed/trisquel.seed boot=casper iso-scan/filename=/liveusb-data/trisquel/$ISOFILE quiet splash --" X64=y ================================================ FILE: distro/trisquel/8.0/64/mini/install.sh ================================================ install_live() { install -d "$KERNELDIR/trisquel/64" "$DATADIR/trisquel" cp "${ISO_FILEPATH}" "$DATADIR/trisquel/" mount_iso cp "$ISOMNT/casper/vmlinuz" "$ISOMNT/casper/initrd" "$KERNELDIR/trisquel/64/" umount_iso } ================================================ FILE: distro/trisquel/8.0/64/mini/isoinfo ================================================ ver=8.0 ISONAME="$DISTRONAME mini $ver amd64" ISOURL=trisquel-mini_${ver}_amd64.iso SHA256=0d3821a465b30ca1de2436af0ab5e39f8eb92a64f5ebd8cd3c42f9a93284c0f7 mirrorlist=( http://mirror.fsf.org/trisquel-images http://mirrors.ustc.edu.cn/trisquel-images ) ================================================ FILE: distro/trisquel/distroinfo ================================================ DISTRONAME='Trisquel GNU/Linux-libre' KEYWORD='trisquel' ================================================ FILE: distro/ubuntu/14.04/entry ================================================ TITLE='Ubuntu 14.04.5 x86_64 Desktop' KERNEL=/liveusb-kernel/ubuntu/14.04/64/vmlinuz.efi INITRD=/liveusb-kernel/ubuntu/14.04/64/initrd.lz OPTION="file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=/liveusb-data/ubuntu/$ISOFILE quiet splash ---" X64=y ================================================ FILE: distro/ubuntu/14.04/install.sh ================================================ install_live() { install -d "$KERNELDIR/ubuntu/14.04/64" "$DATADIR/ubuntu" cp "${ISO_FILEPATH}" "$DATADIR/ubuntu/" mount_iso cp "$ISOMNT/casper/vmlinuz.efi" "$ISOMNT/casper/initrd.lz" "$KERNELDIR/ubuntu/14.04/64/" umount_iso } ================================================ FILE: distro/ubuntu/14.04/isoinfo ================================================ _isover=14.04.5 ISONAME="$DISTRONAME ${_isover} amd64" ISOURL="${_isover}/ubuntu-${_isover}-desktop-amd64.iso" SHA256=f5ce20686a2f3201f04a309d04171ee15757f00954b33b87f3f1d36b3b0f5356 mirrorlist=( https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases http://releases.ubuntu.com http://mirrors.ustc.edu.cn/ubuntu-releases ) ================================================ FILE: distro/ubuntu/16.04/config ================================================ _ver=16.04 VMLINUZ=vmlinuz INITRD=initrd ================================================ FILE: distro/ubuntu/16.04/entry ================================================ source distro/ubuntu/16.04/config source distro/ubuntu/entry ================================================ FILE: distro/ubuntu/16.04/install.sh ================================================ source distro/ubuntu/16.04/config source distro/ubuntu/install.sh ================================================ FILE: distro/ubuntu/16.04/isoinfo ================================================ _isover=16.04.7 ISONAME="$DISTRONAME ${_isover} amd64" ISOURL="${_isover}/ubuntu-${_isover}-desktop-amd64.iso" SHA256=8ba7e2687fb8a2152504475e92e489aace543059fd4ba7ffe10111c42394853b mirrorlist=( https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases http://releases.ubuntu.com http://mirrors.ustc.edu.cn/ubuntu-releases ) ================================================ FILE: distro/ubuntu/18.04/config ================================================ _ver=18.04.5 VMLINUZ=vmlinuz INITRD=initrd ================================================ FILE: distro/ubuntu/18.04/entry ================================================ source distro/ubuntu/18.04/config source distro/ubuntu/entry ================================================ FILE: distro/ubuntu/18.04/install.sh ================================================ source distro/ubuntu/18.04/config source distro/ubuntu/install.sh ================================================ FILE: distro/ubuntu/18.04/isoinfo ================================================ source distro/ubuntu/18.04/config ISONAME="$DISTRONAME ${_ver} amd64" ISOURL="${_ver}/ubuntu-${_ver}-desktop-amd64.iso" SHA256=f295570badb09a606d97ddfc3421d7bf210b4a81c07ba81e9c040eda6ddea6a0 mirrorlist=( https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases http://releases.ubuntu.com http://mirrors.ustc.edu.cn/ubuntu-releases ) ================================================ FILE: distro/ubuntu/20.04/config ================================================ _ver=20.04.2.0 VMLINUZ=vmlinuz INITRD=initrd ================================================ FILE: distro/ubuntu/20.04/entry ================================================ source distro/ubuntu/20.04/config source distro/ubuntu/entry ================================================ FILE: distro/ubuntu/20.04/install.sh ================================================ source distro/ubuntu/20.04/config source distro/ubuntu/install.sh ================================================ FILE: distro/ubuntu/20.04/isoinfo ================================================ source distro/ubuntu/20.04/config ISONAME="$DISTRONAME ${_ver} amd64" ISOURL="${_ver}/ubuntu-${_ver}-desktop-amd64.iso" SHA256=93bdab204067321ff131f560879db46bee3b994bf24836bb78538640f689e58f mirrorlist=( http://releases.ubuntu.com http://mirrors.ustc.edu.cn/ubuntu-releases https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases ) ================================================ FILE: distro/ubuntu/22.04/config ================================================ _ver=22.04.2 VMLINUZ=vmlinuz INITRD=initrd ================================================ FILE: distro/ubuntu/22.04/entry ================================================ source distro/ubuntu/22.04/config source distro/ubuntu/entry ================================================ FILE: distro/ubuntu/22.04/install.sh ================================================ source distro/ubuntu/22.04/config source distro/ubuntu/install.sh ================================================ FILE: distro/ubuntu/22.04/isoinfo ================================================ source distro/ubuntu/22.04/config ISONAME="$DISTRONAME ${_ver} amd64" ISOURL="${_ver}/ubuntu-${_ver}-desktop-amd64.iso" SHA256=b98dac940a82b110e6265ca78d1320f1f7103861e922aa1a54e4202686e9bbd3 mirrorlist=( http://releases.ubuntu.com http://mirrors.ustc.edu.cn/ubuntu-releases https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases ) ================================================ FILE: distro/ubuntu/distroinfo ================================================ DISTRONAME='Ubuntu' KEYWORD='ubuntu' ================================================ FILE: distro/ubuntu/entry ================================================ TITLE="${DISTRONAME} ${_ver} x86_64 Desktop" KERNEL="/liveusb-kernel/${KEYWORD}/${_ver}/64/${VMLINUZ}" INITRD="/liveusb-kernel/${KEYWORD}/${_ver}/64/${INITRD}" OPTION="file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=/liveusb-data/${KEYWORD}/$ISOFILE" X64=y ================================================ FILE: distro/ubuntu/install.sh ================================================ install_live() { install -d "$KERNELDIR/${KEYWORD}/${_ver}/64" "$DATADIR/${KEYWORD}" cp "${ISO_FILEPATH}" "$DATADIR/${KEYWORD}/" mount_iso cp "$ISOMNT/casper/${VMLINUZ}" "$ISOMNT/casper/${INITRD}" "$KERNELDIR/${KEYWORD}/${_ver}/64/" umount_iso } ================================================ FILE: distro/ubuntu/meta ================================================ entry() { if test -z "${ubt_kernel}" -o -z "${ubt_initrd}" then msg "warn: kernel image or initramfs not found." msg " the Ubuntu based entry may not work." fi isofn="$(basename "$ISOFILE")" TITLE="$ISONAME" KERNEL="/liveusb-kernel/${KEYWORD}/${ubt_kernel}" INITRD="/liveusb-kernel/${KEYWORD}/${ubt_initrd}" OPTION="file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=/liveusb-data/${KEYWORD}/${isofn}" X64=y } install_live() { install -d "$KERNELDIR/${KEYWORD}" "$DATADIR/${KEYWORD}" mount_iso ubt_kernel=($(find "$ISOMNT/casper/" -maxdepth 1 -name 'vmlinuz*')) if [ "${#ubt_kernel[@]}" != 1 ]; then fatalerror "panic: more than one kernel image found." else ubt_kernel="$(basename ${ubt_kernel[0]})" fi ubt_initrd=($(find "$ISOMNT/casper/" -maxdepth 1 -name 'initrd*')) if [ "${#ubt_initrd[@]}" != 1 ]; then fatalerror "panic: more than one initramfs image found." else ubt_initrd="$(basename ${ubt_initrd[0]})" fi cp "$ISOMNT/casper/${ubt_kernel}" "$ISOMNT/casper/${ubt_initrd}" \ "$KERNELDIR/${KEYWORD}/" umount_iso cp "$ISOFILE" "$DATADIR/${KEYWORD}/" } entries=(entry) ================================================ FILE: distro/void/distroinfo ================================================ DISTRONAME='Void Linux' KEYWORD='void' ================================================ FILE: distro/void/entry ================================================ TITLE='Void Linux x86_64' KERNEL=/liveusb-kernel/void/vmlinuz INITRD=/liveusb-kernel/void/initrd OPTION="root=live:UUID=$UUID ro rd.live.dir=liveusb-data/void" X64=y ================================================ FILE: distro/void/install.sh ================================================ install_live() { mount_iso install -d "$KERNELDIR/void" "$DATADIR/void" cp "$ISOMNT/LiveOS"/* "$DATADIR/void/" cp "$ISOMNT/boot/vmlinuz" "$ISOMNT/boot/initrd" "$KERNELDIR/void" umount_iso } ================================================ FILE: distro/void/isoinfo ================================================ _isodate=20181111 ISONAME="$DISTRONAME" ISOURL="live/$_isodate/void-live-x86_64-$_isodate.iso" SHA256=1a89520309cf49f21573c3f0b99c06a661bdc105c3ad408716170d95b6a21cd2 mirrorlist=( https://repo.voidlinux.eu ) ================================================ FILE: distro/void/xfce/entry ================================================ source distro/void/entry TITLE='Void Linux x86_64 xfce' ================================================ FILE: distro/void/xfce/install.sh ================================================ source distro/void/install.sh ================================================ FILE: distro/void/xfce/isoinfo ================================================ _isodate=20181111 ISONAME="$DISTRONAME Xfce" ISOURL="live/$_isodate/void-live-x86_64-$_isodate-xfce.iso" SHA256=dd91852bab75c70c65a01f428902025ded38e91d9c35c73358a8b7ff8e82d8e2 mirrorlist=( https://repo.voidlinux.eu ) ================================================ FILE: distro/xubuntu/18.04/config ================================================ _ver=18.04 VMLINUZ=vmlinuz INITRD=initrd ================================================ FILE: distro/xubuntu/18.04/entry ================================================ source distro/xubuntu/18.04/config source distro/ubuntu/entry ================================================ FILE: distro/xubuntu/18.04/install.sh ================================================ source distro/xubuntu/18.04/config source distro/ubuntu/install.sh ================================================ FILE: distro/xubuntu/18.04/isoinfo ================================================ _isover=18.04.4 ISONAME="$DISTRONAME ${_isover} amd64" ISOURL="${_isover}/release/xubuntu-${_isover}-desktop-amd64.iso" SHA256=68b4589faf3558a9c79a82dda7b1f49bee7382fc0ec34f6ddf15714665f4f8ce mirrorlist=( https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cdimage/xubuntu/releases ) ================================================ FILE: distro/xubuntu/distroinfo ================================================ DISTRONAME='Xubuntu' KEYWORD='xubuntu' ================================================ FILE: functions.sh ================================================ # Copyright (C) 2016-2018 Iru Cai # SPDX-License-Identifier: GPL-3.0-or-later msg() { echo -e "$1" >&2 } fatalerror() { msg "\x1b[1;31m$1\x1b[0m" exit 1 } as-root() { echo as-root "$*" if [ "$UID" == 0 ]; then "$@" elif type -p sudo > /dev/null; then sudo "$@" elif type -p su > /dev/null; then su -c "$*" fi } checksum_verify() { local _hashtool _hashsum _cksum if [ -n "$SHA512" ]; then _hashtool=sha512sum _hashsum=$SHA512 elif [ -n "$SHA256" ]; then _hashtool=sha256sum _hashsum=$SHA256 elif [ -n "$SHA1" ]; then _hashtool=sha1sum _hashsum=$SHA1 elif [ -n "$VERIFY" ]; then "$VERIFY" && return 0 || return 1 else fatalerror "Cannot find the SHA256, SHA1, or MD5 checksum of $ISOFILE" fi _cksum=$("$_hashtool" "$ISOPATH/$ISOFILE" | cut -d' ' -f1) if [[ $_cksum == $_hashsum ]]; then msg "$ISOFILE ok." else msg "$ISOFILE checksum bad!" && return 1 fi } # a hash verify function that uses a checksum file # usage: set HASHTOOL and HASHFILE in isoinfo, set VERIFY as hashfile hashfile() { local _cksum _hashsum _cksum=$("$HASHTOOL" "$ISOPATH/$ISOFILE" | cut -d' ' -f1) _hashsum=$(grep "${ISOFILE}\$" "$HASHFILE" | cut -d' ' -f1) if [[ $_cksum == $_hashsum ]]; then msg "$ISOFILE ok." else msg "$ISOFILE checksum bad!" && return 1 fi } set_distro() { _distrobase="distro/$(cut -d'/' -f1 <<< "$1")" source "$_distrobase/distroinfo" } # process_isoinfo # loads $DISTRONAME $ISONAME $ISOFILE $ISOURL process_isoinfo() { unset MD5 SHA1 SHA256 SHA512 set_distro "$1" source "distro/$1/isoinfo" ISOFILE="$(basename $ISOURL)" } process_distro() { source "distro/$1/install.sh" # FIXME # As a workaround, now we set $ISOFILE before using this function. # Maybe we have a better solution for this. # ISOMNT="/media/$ISOFILE" } # output_grub_entry # output_syslinux_entry # usage: first source the entry, then call this # # variables in entryfile: # - UUID: the UUID of the partition # - ISOFILE: the file name of iso # # parameters in entry file: # - TITLE: GRUB menu entry title # - KERNEL: path to kernel image # - INITRD: path to initramfs/initrd image # - OPTION: kernel command line # - X64: y/n, indicates whether it's 64-bit # output_grub_entry() { cat << EOF menuentry '$TITLE' { linux $KERNEL $OPTION initrd ${INITRD[@]} } EOF } # we also need $LABEL when calling this output_syslinux_entry() { _INITRD=$(echo ${INITRD[*]}|sed 's/ /,/g') cat << EOF LABEL $LABEL MENU LABEL $TITLE LINUX $KERNEL INITRD $_INITRD APPEND $OPTION EOF } gen_grubcfg() { local entry allentries allentries=("distro/$1/entry"*) if [ ${#allentries[@]} -gt 1 ]; then echo "submenu '$ISONAME' {" fi for entry in "${allentries[@]}" do unset INITRD # because it can be an array or just a string source "$entry" UUID="$UUID" ISOFILE="$ISOFILE" output_grub_entry done if [ ${#allentries[@]} -gt 1 ]; then echo '}' fi } meta_gen_grubcfg() { local entry source "distro/$1/meta" if [ ${#entries[@]} -gt 1 ]; then echo "submenu '$ISONAME' {" fi for entry in "${entries[@]}" do unset INITRD # because it can be an array or just a string "$entry" UUID="$UUID" ISOFILE="$ISOFILE" output_grub_entry done if [ ${#entries[@]} -gt 1 ]; then echo '}' fi } meta_gen_syslinux() { local entry count name source "distro/$1/meta" name=$(echo $1|sed 's/\//_/g') count=0 for entry in "${entries[@]}" do unset INITRD # because it can be an array or just a string "$entry" UUID="$UUID" ISOFILE="$ISOFILE" LABEL="${name}_${count}" \ output_syslinux_entry count=$(($count+1)) done } gen_syslinux() { local entry allentries count name allentries=("distro/$1/entry"*) name=$(echo $1|sed 's/\//_/g') count=0 for entry in "${allentries[@]}" do unset INITRD # because it can be an array or just a string source "$entry" UUID="$UUID" ISOFILE="$ISOFILE" LABEL="${name}_${count}" \ output_syslinux_entry count=$(($count+1)) done } download_iso() { mkdir -p "$ISOPATH" for url in ${mirrorlist[@]} do if wget -c -O "$ISOPATH/$ISOFILE" "$url/$ISOURL"; then if checksum_verify; then return 0 else # checksum bad, may be due to a bad partial download # so remove the file and try again rm -f "$ISOPATH/$ISOFILE" wget -O "$ISOPATH/$ISOFILE" "$url/$ISOURL" checksum_verify && return 0 rm -f "$ISOPATH/$ISOFILE" # then try next mirror fi fi done fatalerror "Fail to download $ISOFILE!" } get_iso_label() { # the label of an ISO file is between two quote symbols # of the file(1) output file -b "$1" | cut -d\' -f2 } # We try to a proper mount tool to mount block devices and iso files, # if we cannot find it, use the system mount tool. # Both udisks2 and udevil can mount block devices, but only udevil # can mount iso files. detect_block_mount_tool() { if (udisksctl status | grep DEVICE > /dev/null); then BLOCKMOUNT=udisks2 elif (udevil | grep 'udevil version' > /dev/null); then BLOCKMOUNT=udevil else BLOCKMOUNT=system fi } detect_iso_mount_tool() { if (udevil | grep 'udevil version' > /dev/null); then ISOMOUNT=udevil else ISOMOUNT=system fi } udevil_mount() { udevil mount "$1" } udevil_unmount() { udevil umount "$1" } udisks2_mount() { udisksctl mount -b "$1" } udisks2_unmount() { local mnt_source mnt_source="$(findmnt -n -o SOURCE "$1")" udisksctl unmount -b "${mnt_source}" } system_mount() { local mountpoint local uid mountpoint="$(mktemp -d)" uid="$(id -u)" # first try uid= option of mount(1) if ! as-root mount -o "uid=$uid" "$1" "$mountpoint" 2> /dev/null; then as-root mount "$1" "$mountpoint" fi } system_unmount() { as-root umount "$1" } mount_block() { ${BLOCKMOUNT}_mount "$1" } unmount_block() { ${BLOCKMOUNT}_unmount "$1" } mount_iso() { LOOPDEV=$(/sbin/losetup -n -O NAME -j "${ISO_FILEPATH}") if [[ -n "$LOOPDEV" ]] then ISOMNT="$LOOPDEV" umount_iso fi ${ISOMOUNT}_mount "${ISO_FILEPATH}" LOOPDEV=$(/sbin/losetup -n -O NAME -j "${ISO_FILEPATH}") if [[ -n "$LOOPDEV" ]] then ISOMNT=$(findmnt -n -o TARGET "$LOOPDEV") fi } umount_iso() { ${ISOMOUNT}_unmount "$ISOMNT" } # iso_extract: extract files from iso image to destination path # usage: iso_extract iso_extract() { local isofile="$1" local patterns=() shift while [ "$#" -gt 1 ]; do patterns+=("$1") shift done local dest="$1" bsdtar -x -f "$isofile" -C "$dest" "${patterns[@]}" } getuuid() { lsblk -n -o UUID "$1" } getdiskbypart() { # util-linux may have bug when using -s --raw # so it needs some work around local _devlist local _type _devlist=($(lsblk -s --raw -o NAME -n "$1")) for i in "${_devlist[@]}" do _type=$(lsblk -o TYPE -n "/dev/$i" | head -n1) if [[ "$_type" == "disk" ]]; then echo $i fi done } syslinux_header() { cat << EOF UI menu.c32 TIMEOUT 50 MENU TITLE Live USB MENU COLOR border 30;44 #40ffffff #a0000000 std MENU COLOR title 1;36;44 #9033ccff #a0000000 std MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all MENU COLOR unsel 37;44 #50ffffff #a0000000 std MENU COLOR help 37;40 #c0ffffff #a0000000 std MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std MENU COLOR msg07 37;40 #90ffffff #a0000000 std MENU COLOR tabmsg 31;40 #30ffffff #00000000 std EOF } grubcfg_header() { cat << 'EOF' set default=0 set timeout=5 if [ ${grub_platform} == efi ]; then insmod all_video insmod font if loadfont /grub/fonts/unicode.pf2; then insmod gfxterm set gfxmode=auto set gfxpayload=keep terminal_output gfxterm fi fi EOF } ================================================ FILE: install_syslinux ================================================ #!/bin/bash # Copyright (C) 2018 Iru Cai # SPDX-License-Identifier: GPL-3.0-or-later # Example: ./install_syslinux /dev/sdb /dev/sdb1 /media/boot set -e mbr_bin_path=(/usr/lib/syslinux/bios /usr/share/syslinux /usr/lib/syslinux/mbr) c32_path=(/usr/lib/syslinux/bios /usr/share/syslinux /usr/lib/syslinux/modules/bios) MBR_PATH="" C32_PATH="" for path in "${mbr_bin_path[@]}" do if test -f "$path/mbr.bin" then MBR_PATH="$path" break fi done if test -z "$MBR_PATH" then exit 1 fi for path in "${c32_path[@]}" do if test -f "$path/linux.c32" then C32_PATH="$path" break fi done if test -z "$C32_PATH" then exit 1 fi DEVNAME="$1" BOOTPART="$2" BOOTPATH="$3" syslinux -i "$BOOTPART" dd bs=440 count=1 conv=notrunc if="$MBR_PATH/mbr.bin" of="$DEVNAME" install -d "$BOOTPATH/syslinux" cp "$C32_PATH"/*.c32 "$BOOTPATH/syslinux" ================================================ FILE: listisos.sh ================================================ #!/bin/bash # Copyright (C) 2016-2018 Iru Cai # SPDX-License-Identifier: GPL-3.0-or-later ISOINFOS=($(find distro -name isoinfo)) for _isoinfo in "${ISOINFOS[@]}" do _distrobase="$(cut -d'/' -f1-2 <<< "$_isoinfo")" _distroisodir="$(dirname $_isoinfo | cut -d'/' -f2-)" if [ -f "$_distrobase/distroinfo" ]; then source "$_distrobase/distroinfo" else continue fi source "$_isoinfo" if [ -n "$ISONAME" ]; then echo "$_distroisodir: $ISONAME" fi done ================================================ FILE: mkgrubcfg.sh ================================================ # Copyright (C) 2016-2018 Iru Cai # SPDX-License-Identifier: GPL-3.0-or-later # # generate GRUB menuentry # usage: UUID="$UUID" ISOFILE="$ISOFILE" ./mkgrubcfg.sh # # variables in entryfile: # - UUID: the UUID of the partition # - ISOFILE: the file name of iso # # parameters in entry file: # - TITLE: GRUB menu entry title # - KERNEL: path to kernel image # - INITRD: path to initramfs/initrd image # - OPTION: kernel command line # - X64: y/n, indicates whether it's 64-bit source "$1" cat << EOF menuentry '$TITLE' { linux $KERNEL $OPTION initrd ${INITRD[@]} } EOF echo ================================================ FILE: mksyslinux.sh ================================================ # Copyright (C) 2018 Iru Cai # SPDX-License-Identifier: GPL-3.0-or-later # # generate syslinux menuentry # usage: UUID="$UUID" ISOFILE="$ISOFILE" LABEL="$LABEL" \ # ./mkgrubcfg.sh # # variables in entryfile: # - UUID: the UUID of the partition # - ISOFILE: the file name of iso (needed to pass to the entry file) # - LABEL: syslinux label # # parameters in entry file: # - TITLE: GRUB menu entry title # - KERNEL: path to kernel image # - INITRD: path to initramfs/initrd image # - OPTION: kernel command line # - X64: y/n, indicates whether it's 64-bit source "$1" _INITRD=$(echo ${INITRD[*]}|sed 's/ /,/g') cat << EOF LABEL $LABEL MENU LABEL $TITLE LINUX $KERNEL INITRD $_INITRD APPEND $OPTION EOF echo ================================================ FILE: support-a-new-distro.md ================================================ # Support a new distro ## Global variables - ``ROOTPATH``: root of a USB stick mountpoint - ``KERNELDIR``: the place to install the kernel - ``DATADIR``: the place to install other data files, e.g. squashfs, iso files - ``ISOMNT``: the mount point that the iso file is mounted to with ``mount_iso`` ## How to support You can refer to [Arch Linux](distro/arch/). What you need is: - ``install.sh``: a script file describing how to install the LiveCD to USB - ``isoinfo``: all info about the iso file, including where to download it, the hash checksum, and a mirror list - ``entry*`` files: an example is [Arch Linux x86\_64](distro/arch/entry1), for more detail, look into [mkgrubcfg.sh](mkgrubcfg.sh) In ``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. ================================================ FILE: testusb.sh ================================================ #!/bin/sh # Copyright (C) 2021 Iru Cai # SPDX-License-Identifier: GPL-3.0-or-later # Test the live USB in QEMU, you need to run this script as root if [ "$1" == uefi ]; then bios=(-bios /usr/share/edk2-ovmf/x64/OVMF.fd) shift else bios=() fi qemu-system-x86_64 -enable-kvm -cpu host -m 2G "${bios[@]}" -drive "file=$1,format=raw"