• Re: How to create a custom Debian ISO

    From Marvin Renich@21:1/5 to All on Sat May 11 16:10:01 2024
    XPost: linux.debian.user

    * Aditya Garg <gargaditya08@live.com> [240511 05:15]:
    Hello

    I wanted to create a custom ISO of Debian, with the following customisations:

    1. I want to add a custom kernel that supports my Hardware.
    2. I want to add my own Apt repo which hosts various software packages to support my hardware.

    I am not able to get any good documentation for the same. Please help.

    [Redirecting to debian-user, dropping -project, M-F-T set to debian-user only]

    First, please don't double-post the same message within a few minutes.
    Give your message at least a half hour to show up before you decide it
    wasn't received.

    Second, neither debian-devel nor debian-project are appropriate lists
    for this question. You should use debian-user@lists.debian.org or some
    other user-oriented forum. Also, posting a question to multiple lists
    at once (called cross-posting) is considered rude in most situations.

    To give a possible answer to your question, look at the Debian Live
    project: https://www.debian.org/devel/debian-live/

    The package live-build from the Debian Live project might help you do
    what you want.

    ...Marvin

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Hans@21:1/5 to All on Sat May 11 16:50:03 2024
    Am Samstag, 11. Mai 2024, 10:21:55 CEST schrieb Aditya Garg:
    Hello

    I wanted to create a custom ISO of Debian, with the following
    customisations:

    1. I want to add a custom kernel that supports my Hardware.
    2. I want to add my own Apt repo which hosts various software packages to support my hardware.

    I am not able to get any good documentation for the same. Please help.

    Hi Aditya,

    mayebe you want to take a look at bootcdwrite. I have good experience made with bootcdwrite. Using this, you can create a boootable live iso with all your persoanl settings (including ~/home/* and users, including all personal settings.).

    This ISO can be installed, too. Just bootr it, and you can install it from the live system.

    The ISO can be greater than 4,7GB, so it can be installen on an USB-stick.

    For myself, i am using it for creating KALI-Linux (with all my settings, modules, exploits, settings etc. etc. etc. etc.). This ISO is about 30GB big and is an exact image of my installed system.

    Doing so, I can boot it whereever I wan and have everything available.

    If you want to do the same, just a hint: If your installed system resides on encrypted devices, you have to notice some special settings, otherwise it will not boot. Fell free, to ask for it.

    Hope this helps.

    Oh yes, another way is, just to create a livesystem with filesystem.squashfs. Then edit the filesystem.squashfs (it can be unpacked, edited and hen repacked). This is a little bit fiddly, but very versatile.

    Last but not least, I believe (but here I am not sure)ยท you may build your own
    standard debian installer ISO and put in your own package versions (if this is what you want, then preferly ask the installer-crew - they know much better than me, because I never used an own build Debian-installer-ISO).

    Have fun!

    Best

    Hans

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Xingyou Chen@21:1/5 to Aditya Garg on Sat May 11 16:20:01 2024
    XPost: linux.debian.project

    On 5/11/24 16:21, Aditya Garg wrote:
    Hello

    I wanted to create a custom ISO of Debian, with the following customisations:

    1. I want to add a custom kernel that supports my Hardware.
    2. I want to add my own Apt repo which hosts various software packages to support my hardware.

    I am not able to get any good documentation for the same. Please help.

    simple-cdd and underlying debian-cd works fine, you can add extra repo,
    and then extra packages to be included in final ISO, and even custom
    files or build steps.

    These are tiny utilities, with one page intro and in source comments
    stating their usage, also ultimate self-explaining code.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Johannes Schauer Marin Rodrigues@21:1/5 to All on Thu May 16 16:20:01 2024
    Hi,

    I'm removing debian-project from the recipients.

    Quoting Aditya Garg (2024-05-11 10:21:55)
    I wanted to create a custom ISO of Debian, with the following customisations:

    1. I want to add a custom kernel that supports my Hardware.
    2. I want to add my own Apt repo which hosts various software packages to support my hardware.

    I am not able to get any good documentation for the same. Please help.

    I have a script which modifies/patches the official Debian netboot installer medium as it is published on ftp.debian.org so that it can be used to install Debian on the MNT Reform 2 open hardware laptop. To that end, the script is able to add:

    - custom kernel
    - custom device trees
    - custom apt sources
    - custom apt pinning
    - custom package selection
    - custom d-i preseed.cfg
    - custom debconf templates
    - custom d-i post-base-installer and finish-install scripts

    Feature highlights:

    - works with stable, unstable, stable-backports
    - produces bit-by-bit reproduucible output
    - requires no superuser privileges to run

    Source code here:

    https://salsa.debian.org/reform-team/reform-debian-installer

    This is the script that produces the debian-installer images that you can download from here:

    https://reform.debian.net/d-i/

    Maybe this helps.

    Thanks!

    cheers, josch
    --==============58674329152601987=MIME-Version: 1.0
    Content-Transfer-Encoding: 7bit
    Content-Description: signature
    Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmZGFOEACgkQ8sulx4+9 g+HQCw/+Pcr9uHDtpRLCTbJ2U+258glMOIPe6y/JTTnuxpJnPdAiFEFpT+ozaXyZ 1rUQ55GhoXx9h870SOygx/1M5d4We8tLQNy1+kQidYSCHYOplDHACHjUghaeSuHb 9LRhGuELXaqNOmjqd+f6+6wyPhwdWhq6rtC94dqtUtZBT4p2SKQyH4eNr09LMfLl mPw0GyjxVFkJr5VhO2tzUoeQ/GqVowEI1zQiMk7gYx61M7+YdV1s/b+38lTQdjH+ 2u/lGySED3jzA4a+TM8eUlgcxoFdrAjoPo47PGPkmkMovDbePsqzsxPBJuUanrUH DgyzuZvLY5GN49iYsIRMhMgsVyO2Qgmb7JPuLr42HZXmweTIWvV23vdlzWD0nfYF 0EmjL7xHYw3GDXT8fGX/g+15tTgYyhtHdDfbrRr7gzBWZF+mHbDbXbR6Qy19DOFb 4ss7loMYuriU9mQd87P67C01uVqHVrb0GgLYLkUEkz6IsHBi5HisGQtRi3ZS65Db wgoyXQ6ZXpQAmj47gG4Ut2tL1t7fuuQV/+MZU8uIbpbsJ66zTWcArohrKUkQsVLM ftmvvKaCwE4ac/nfSRclBnkq+86sO5ewkwGIvT8b85nX7G79DGdGf+LxtQkuq5ir Kr92r7NvXxqYFd8UCu1hqwYCKuUftXHa7Cl7hNvrqIl5VSRATOM=
    =cE4c
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)