Debian installer - customize busybox and live system/environment

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












3















I'm trying to reinstall Debian on a netbook and do it without sloppy tricks so that I can repeat the process if necessary. Specifically, I'm trying to customize the installer to include the wifi firmware for the network adapter (non-free, so I had to include it manually) which I did successfully (by placing the deb in the firmware folder in the iso's root) but I still need to have some way to limit the download speed while the installer runs. I normally use wondershaper for this, so I tried placing the deb in the pool/main/w/wondershaper folder but that obviously doesn't work (as that directory is for what gets installed in the final system).



So I tried to see if I could somehow run it from the installer terminal, but busybox doesn't even include ifconfig in the standard debian build, so I need to replace that busybox. No searching so far has yielded any clues as to what goes into the live installer system (not the installed system but the one the installer runs on top of). I've googled and searched the debian wikis but they don't seem to have information on how to modify what gets loaded here. Searching the iso also yields no answers as the only busybox is the package that goes into the installed system. The instructions mention the .disk directory in the iso's root, which has inclusion and exclusion lists for packages, but they aren't for what gets loaded during installation. Searching SE also yields no specifics on this question. To be clear, I do not want to automate anything aka preseed the installer (which is what I understand preseeding is). Also, I know how to get the desired busybox build (their ftp has prebuilt binaries that include what I need), so no problems there, I just don't know where to put it.



Here's some links I've read:



  • DebianInstaller/Modify/CD


  • installer
    hooks


  • modifying the iso


  • DebianCustomCD


  • DebianInstaller Modify


  • customize and pack a debian image


  • Installation of my custom debian iso failed


  • How to custom build debian's busybox?


  • What packages are installed by default in Debian? Is there a term for that set? Why some of those packages are `automatically installed` and some not?


  • How to create a custom debian liveCD (customize which packages are preinstalled)?


tl;dr: How does one customize the system/environment that gets loaded during the debian installation?










share|improve this question
























  • For a specialist question like this, you might be better off asking on the relevant debian mailing list - debian-boot?

    – Faheem Mitha
    Jul 21 '14 at 2:17











  • @FaheemMitha perhaps, but I didn't really think this is a specialist question. I'll try there if nothing comes up here, although I'd prefer such an answer here where it can be easily found by others, compared to the mailing lists. Btw, why do you mention debian-boot? Is this something specifically related to the boot process rather than the installer configuration?

    – mechalynx
    Jul 21 '14 at 2:18







  • 2





    Hi, no, the debian-boot mailing list is the name of the mailing list which handles Debian installer type things. The reason for the name is historical - once upon a time Debian used something called boot-floppies. See the bottom of debian.org/devel/debian-installer. This question is specialist. I'm just saying you can actually talk to the people who work on the Debian installer if you write to that mailing list. No harm in asking here as well, and if you get an answer from the mailing list you can add an answer here yourself.

    – Faheem Mitha
    Jul 21 '14 at 2:26












  • @FaheemMitha Excellent, thanks for the tip :D

    – mechalynx
    Jul 21 '14 at 2:30















3















I'm trying to reinstall Debian on a netbook and do it without sloppy tricks so that I can repeat the process if necessary. Specifically, I'm trying to customize the installer to include the wifi firmware for the network adapter (non-free, so I had to include it manually) which I did successfully (by placing the deb in the firmware folder in the iso's root) but I still need to have some way to limit the download speed while the installer runs. I normally use wondershaper for this, so I tried placing the deb in the pool/main/w/wondershaper folder but that obviously doesn't work (as that directory is for what gets installed in the final system).



So I tried to see if I could somehow run it from the installer terminal, but busybox doesn't even include ifconfig in the standard debian build, so I need to replace that busybox. No searching so far has yielded any clues as to what goes into the live installer system (not the installed system but the one the installer runs on top of). I've googled and searched the debian wikis but they don't seem to have information on how to modify what gets loaded here. Searching the iso also yields no answers as the only busybox is the package that goes into the installed system. The instructions mention the .disk directory in the iso's root, which has inclusion and exclusion lists for packages, but they aren't for what gets loaded during installation. Searching SE also yields no specifics on this question. To be clear, I do not want to automate anything aka preseed the installer (which is what I understand preseeding is). Also, I know how to get the desired busybox build (their ftp has prebuilt binaries that include what I need), so no problems there, I just don't know where to put it.



Here's some links I've read:



  • DebianInstaller/Modify/CD


  • installer
    hooks


  • modifying the iso


  • DebianCustomCD


  • DebianInstaller Modify


  • customize and pack a debian image


  • Installation of my custom debian iso failed


  • How to custom build debian's busybox?


  • What packages are installed by default in Debian? Is there a term for that set? Why some of those packages are `automatically installed` and some not?


  • How to create a custom debian liveCD (customize which packages are preinstalled)?


tl;dr: How does one customize the system/environment that gets loaded during the debian installation?










share|improve this question
























  • For a specialist question like this, you might be better off asking on the relevant debian mailing list - debian-boot?

    – Faheem Mitha
    Jul 21 '14 at 2:17











  • @FaheemMitha perhaps, but I didn't really think this is a specialist question. I'll try there if nothing comes up here, although I'd prefer such an answer here where it can be easily found by others, compared to the mailing lists. Btw, why do you mention debian-boot? Is this something specifically related to the boot process rather than the installer configuration?

    – mechalynx
    Jul 21 '14 at 2:18







  • 2





    Hi, no, the debian-boot mailing list is the name of the mailing list which handles Debian installer type things. The reason for the name is historical - once upon a time Debian used something called boot-floppies. See the bottom of debian.org/devel/debian-installer. This question is specialist. I'm just saying you can actually talk to the people who work on the Debian installer if you write to that mailing list. No harm in asking here as well, and if you get an answer from the mailing list you can add an answer here yourself.

    – Faheem Mitha
    Jul 21 '14 at 2:26












  • @FaheemMitha Excellent, thanks for the tip :D

    – mechalynx
    Jul 21 '14 at 2:30













3












3








3








I'm trying to reinstall Debian on a netbook and do it without sloppy tricks so that I can repeat the process if necessary. Specifically, I'm trying to customize the installer to include the wifi firmware for the network adapter (non-free, so I had to include it manually) which I did successfully (by placing the deb in the firmware folder in the iso's root) but I still need to have some way to limit the download speed while the installer runs. I normally use wondershaper for this, so I tried placing the deb in the pool/main/w/wondershaper folder but that obviously doesn't work (as that directory is for what gets installed in the final system).



So I tried to see if I could somehow run it from the installer terminal, but busybox doesn't even include ifconfig in the standard debian build, so I need to replace that busybox. No searching so far has yielded any clues as to what goes into the live installer system (not the installed system but the one the installer runs on top of). I've googled and searched the debian wikis but they don't seem to have information on how to modify what gets loaded here. Searching the iso also yields no answers as the only busybox is the package that goes into the installed system. The instructions mention the .disk directory in the iso's root, which has inclusion and exclusion lists for packages, but they aren't for what gets loaded during installation. Searching SE also yields no specifics on this question. To be clear, I do not want to automate anything aka preseed the installer (which is what I understand preseeding is). Also, I know how to get the desired busybox build (their ftp has prebuilt binaries that include what I need), so no problems there, I just don't know where to put it.



Here's some links I've read:



  • DebianInstaller/Modify/CD


  • installer
    hooks


  • modifying the iso


  • DebianCustomCD


  • DebianInstaller Modify


  • customize and pack a debian image


  • Installation of my custom debian iso failed


  • How to custom build debian's busybox?


  • What packages are installed by default in Debian? Is there a term for that set? Why some of those packages are `automatically installed` and some not?


  • How to create a custom debian liveCD (customize which packages are preinstalled)?


tl;dr: How does one customize the system/environment that gets loaded during the debian installation?










share|improve this question
















I'm trying to reinstall Debian on a netbook and do it without sloppy tricks so that I can repeat the process if necessary. Specifically, I'm trying to customize the installer to include the wifi firmware for the network adapter (non-free, so I had to include it manually) which I did successfully (by placing the deb in the firmware folder in the iso's root) but I still need to have some way to limit the download speed while the installer runs. I normally use wondershaper for this, so I tried placing the deb in the pool/main/w/wondershaper folder but that obviously doesn't work (as that directory is for what gets installed in the final system).



So I tried to see if I could somehow run it from the installer terminal, but busybox doesn't even include ifconfig in the standard debian build, so I need to replace that busybox. No searching so far has yielded any clues as to what goes into the live installer system (not the installed system but the one the installer runs on top of). I've googled and searched the debian wikis but they don't seem to have information on how to modify what gets loaded here. Searching the iso also yields no answers as the only busybox is the package that goes into the installed system. The instructions mention the .disk directory in the iso's root, which has inclusion and exclusion lists for packages, but they aren't for what gets loaded during installation. Searching SE also yields no specifics on this question. To be clear, I do not want to automate anything aka preseed the installer (which is what I understand preseeding is). Also, I know how to get the desired busybox build (their ftp has prebuilt binaries that include what I need), so no problems there, I just don't know where to put it.



Here's some links I've read:



  • DebianInstaller/Modify/CD


  • installer
    hooks


  • modifying the iso


  • DebianCustomCD


  • DebianInstaller Modify


  • customize and pack a debian image


  • Installation of my custom debian iso failed


  • How to custom build debian's busybox?


  • What packages are installed by default in Debian? Is there a term for that set? Why some of those packages are `automatically installed` and some not?


  • How to create a custom debian liveCD (customize which packages are preinstalled)?


tl;dr: How does one customize the system/environment that gets loaded during the debian installation?







linux debian busybox debian-installer






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 31 at 16:09









Stephen Kitt

173k24391467




173k24391467










asked Jul 21 '14 at 1:15









mechalynxmechalynx

205110




205110












  • For a specialist question like this, you might be better off asking on the relevant debian mailing list - debian-boot?

    – Faheem Mitha
    Jul 21 '14 at 2:17











  • @FaheemMitha perhaps, but I didn't really think this is a specialist question. I'll try there if nothing comes up here, although I'd prefer such an answer here where it can be easily found by others, compared to the mailing lists. Btw, why do you mention debian-boot? Is this something specifically related to the boot process rather than the installer configuration?

    – mechalynx
    Jul 21 '14 at 2:18







  • 2





    Hi, no, the debian-boot mailing list is the name of the mailing list which handles Debian installer type things. The reason for the name is historical - once upon a time Debian used something called boot-floppies. See the bottom of debian.org/devel/debian-installer. This question is specialist. I'm just saying you can actually talk to the people who work on the Debian installer if you write to that mailing list. No harm in asking here as well, and if you get an answer from the mailing list you can add an answer here yourself.

    – Faheem Mitha
    Jul 21 '14 at 2:26












  • @FaheemMitha Excellent, thanks for the tip :D

    – mechalynx
    Jul 21 '14 at 2:30

















  • For a specialist question like this, you might be better off asking on the relevant debian mailing list - debian-boot?

    – Faheem Mitha
    Jul 21 '14 at 2:17











  • @FaheemMitha perhaps, but I didn't really think this is a specialist question. I'll try there if nothing comes up here, although I'd prefer such an answer here where it can be easily found by others, compared to the mailing lists. Btw, why do you mention debian-boot? Is this something specifically related to the boot process rather than the installer configuration?

    – mechalynx
    Jul 21 '14 at 2:18







  • 2





    Hi, no, the debian-boot mailing list is the name of the mailing list which handles Debian installer type things. The reason for the name is historical - once upon a time Debian used something called boot-floppies. See the bottom of debian.org/devel/debian-installer. This question is specialist. I'm just saying you can actually talk to the people who work on the Debian installer if you write to that mailing list. No harm in asking here as well, and if you get an answer from the mailing list you can add an answer here yourself.

    – Faheem Mitha
    Jul 21 '14 at 2:26












  • @FaheemMitha Excellent, thanks for the tip :D

    – mechalynx
    Jul 21 '14 at 2:30
















For a specialist question like this, you might be better off asking on the relevant debian mailing list - debian-boot?

– Faheem Mitha
Jul 21 '14 at 2:17





For a specialist question like this, you might be better off asking on the relevant debian mailing list - debian-boot?

– Faheem Mitha
Jul 21 '14 at 2:17













@FaheemMitha perhaps, but I didn't really think this is a specialist question. I'll try there if nothing comes up here, although I'd prefer such an answer here where it can be easily found by others, compared to the mailing lists. Btw, why do you mention debian-boot? Is this something specifically related to the boot process rather than the installer configuration?

– mechalynx
Jul 21 '14 at 2:18






@FaheemMitha perhaps, but I didn't really think this is a specialist question. I'll try there if nothing comes up here, although I'd prefer such an answer here where it can be easily found by others, compared to the mailing lists. Btw, why do you mention debian-boot? Is this something specifically related to the boot process rather than the installer configuration?

– mechalynx
Jul 21 '14 at 2:18





2




2





Hi, no, the debian-boot mailing list is the name of the mailing list which handles Debian installer type things. The reason for the name is historical - once upon a time Debian used something called boot-floppies. See the bottom of debian.org/devel/debian-installer. This question is specialist. I'm just saying you can actually talk to the people who work on the Debian installer if you write to that mailing list. No harm in asking here as well, and if you get an answer from the mailing list you can add an answer here yourself.

– Faheem Mitha
Jul 21 '14 at 2:26






Hi, no, the debian-boot mailing list is the name of the mailing list which handles Debian installer type things. The reason for the name is historical - once upon a time Debian used something called boot-floppies. See the bottom of debian.org/devel/debian-installer. This question is specialist. I'm just saying you can actually talk to the people who work on the Debian installer if you write to that mailing list. No harm in asking here as well, and if you get an answer from the mailing list you can add an answer here yourself.

– Faheem Mitha
Jul 21 '14 at 2:26














@FaheemMitha Excellent, thanks for the tip :D

– mechalynx
Jul 21 '14 at 2:30





@FaheemMitha Excellent, thanks for the tip :D

– mechalynx
Jul 21 '14 at 2:30










1 Answer
1






active

oldest

votes


















3














(Can't accept my own answer yet, nor can I unfortunately upvote Faheem for the pointer due to low rep - will do when possible)



Faheem Mitha pointed me in the right direction, mentioning the mailing lists. I searched them and it turns out I just didn't know how Debian boots:



the initrd.gz file is where all the stuff is, that gets loaded as the base system. To open it, you need to use gzip (obviously) and cpio.



In fact, here's the entire procedure lol :P



DebianInstaller/EditIso



I linked to this in the OP, but I thought it had to do with preseeding and had no idea where to look to modify the base system anyway. Once I found out that the initrd file was what I needed to change, these instructions made a lot more sense :P



By following the instructions, you can get the base file system, replace or change whatever you want (in my case I simply manually installed some debs where they wanted to be) and then repackage the initrd properly, put it back where you got it from and rebuild the iso file.



Just remember, there's an initrd.gz for the graphical and non-graphical installer separately!






share|improve this answer






















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f145621%2fdebian-installer-customize-busybox-and-live-system-environment%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    (Can't accept my own answer yet, nor can I unfortunately upvote Faheem for the pointer due to low rep - will do when possible)



    Faheem Mitha pointed me in the right direction, mentioning the mailing lists. I searched them and it turns out I just didn't know how Debian boots:



    the initrd.gz file is where all the stuff is, that gets loaded as the base system. To open it, you need to use gzip (obviously) and cpio.



    In fact, here's the entire procedure lol :P



    DebianInstaller/EditIso



    I linked to this in the OP, but I thought it had to do with preseeding and had no idea where to look to modify the base system anyway. Once I found out that the initrd file was what I needed to change, these instructions made a lot more sense :P



    By following the instructions, you can get the base file system, replace or change whatever you want (in my case I simply manually installed some debs where they wanted to be) and then repackage the initrd properly, put it back where you got it from and rebuild the iso file.



    Just remember, there's an initrd.gz for the graphical and non-graphical installer separately!






    share|improve this answer



























      3














      (Can't accept my own answer yet, nor can I unfortunately upvote Faheem for the pointer due to low rep - will do when possible)



      Faheem Mitha pointed me in the right direction, mentioning the mailing lists. I searched them and it turns out I just didn't know how Debian boots:



      the initrd.gz file is where all the stuff is, that gets loaded as the base system. To open it, you need to use gzip (obviously) and cpio.



      In fact, here's the entire procedure lol :P



      DebianInstaller/EditIso



      I linked to this in the OP, but I thought it had to do with preseeding and had no idea where to look to modify the base system anyway. Once I found out that the initrd file was what I needed to change, these instructions made a lot more sense :P



      By following the instructions, you can get the base file system, replace or change whatever you want (in my case I simply manually installed some debs where they wanted to be) and then repackage the initrd properly, put it back where you got it from and rebuild the iso file.



      Just remember, there's an initrd.gz for the graphical and non-graphical installer separately!






      share|improve this answer

























        3












        3








        3







        (Can't accept my own answer yet, nor can I unfortunately upvote Faheem for the pointer due to low rep - will do when possible)



        Faheem Mitha pointed me in the right direction, mentioning the mailing lists. I searched them and it turns out I just didn't know how Debian boots:



        the initrd.gz file is where all the stuff is, that gets loaded as the base system. To open it, you need to use gzip (obviously) and cpio.



        In fact, here's the entire procedure lol :P



        DebianInstaller/EditIso



        I linked to this in the OP, but I thought it had to do with preseeding and had no idea where to look to modify the base system anyway. Once I found out that the initrd file was what I needed to change, these instructions made a lot more sense :P



        By following the instructions, you can get the base file system, replace or change whatever you want (in my case I simply manually installed some debs where they wanted to be) and then repackage the initrd properly, put it back where you got it from and rebuild the iso file.



        Just remember, there's an initrd.gz for the graphical and non-graphical installer separately!






        share|improve this answer













        (Can't accept my own answer yet, nor can I unfortunately upvote Faheem for the pointer due to low rep - will do when possible)



        Faheem Mitha pointed me in the right direction, mentioning the mailing lists. I searched them and it turns out I just didn't know how Debian boots:



        the initrd.gz file is where all the stuff is, that gets loaded as the base system. To open it, you need to use gzip (obviously) and cpio.



        In fact, here's the entire procedure lol :P



        DebianInstaller/EditIso



        I linked to this in the OP, but I thought it had to do with preseeding and had no idea where to look to modify the base system anyway. Once I found out that the initrd file was what I needed to change, these instructions made a lot more sense :P



        By following the instructions, you can get the base file system, replace or change whatever you want (in my case I simply manually installed some debs where they wanted to be) and then repackage the initrd properly, put it back where you got it from and rebuild the iso file.



        Just remember, there's an initrd.gz for the graphical and non-graphical installer separately!







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jul 21 '14 at 4:11









        mechalynxmechalynx

        205110




        205110



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f145621%2fdebian-installer-customize-busybox-and-live-system-environment%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?