{"repo":"krglaws/MyLFS","free":true,"listed":false,"github":"https://github.com/krglaws/MyLFS","clone":"git clone https://github.com/krglaws/MyLFS.git","description":"A giant Bash script that builds Linux From Scratch","language":"Shell","stars":101,"topics":["bash","linux","linuxfromscratch"],"license":"MIT","category":"cli-tools","readme_excerpt":"MyLFS It's a giant bash script that builds Linux From Scratch. If you don't know what this is, or haven't built Linux From Scratch on your own before, you should go through the LFS book before using this script. I have been careful to leave some comments throughout the script indicating the section of the book that a particular part of the script comes from, although most sections are not marked. For example, you might see \"LFS 12.4 Section 4.2\". For someone wanting to understand this script while going through the book, paying attention to these may come in handy. This is a script that I wrote for myself and for my own use, but I encourage others to fork this repository and either craft their own versions, or submit PRs to this one. How To Use Consult the mylfs.sh help message to get a full picture of its features: How It Works The script builds LFS by completing the following steps: 1. Download package source code and save to the ./packages/ directory. 2. Create a 10 gigabyte IMG file called lfs.img . This will serve as a virtual hard drive on which to build LFS. 3. \"Attach\" the IMG file as a loop device using losetup . This way, the host machine can operate on the IMG file as if it were a physical storage device. 4. Partition the IMG file via the loop device we've created, put an ext4 filesystem on it, then add a basic directory structure and some config files (such as /boot/grub/grub.cfg etc). 5. Build initial cross compilation tools. This corresponds to chapter 5 in the ","default_branch":null,"files":null,"tree":[],"storefront":"/r/krglaws","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/krglaws/MyLFS/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}