[lfs-support] Use iPXE to boot 200M Linux for lfs build
Hi All I have upload my recent built lfs system here: https://sourceforge.net/projects/lfsp200/files/ It can be 'dd' to flash disk and use it to boot. Now, I make it to be able boot by iPXE, it's more convennient. If you already have https capable iPXE, just use below command in iPXE to boot this system. chain https://sourceforge.net/projects/lfsp200/files/netboot/boot.ipxe chain https://l-lfsp200.rhcloud.com/netboot/boot.ipxe It will download about 150MB files: include vmlinuz initrd.img root.squashfs, and then startup. If you don't have a iPXE yet, you can setup iPXE according to http://ipxe.org, or just follow below step: 1. Install dnsmasq, and start dnsmasq with below command and config file on one of your computer. sudo dnsmasq -C begin no-daemon port=0 log-dhcp log-queries dhcp-range=192.168.1.0,proxy #change to your network range leasefile-ro pxe-service=x86PC,"iPXE for 200M linux",undionly_menu.kpxe enable-tftp tftp-root=/srv/tftp end## save https://l-lfsp200.rhcloud.com/netboot/undionly_menu.kpxe to /srv/tftp/undionly_menu.kpxe If you already have a dnsmasq in running, just add the 'pxe-service ...' and the tftp related lines to it, and restart it. 2. Startup other computers in the same subnet with network boot. If nothing go wrong, you will see a menu, choose one to boot. If you want to make iPXE to download files form your own network, follow these steps: 1. Setup a http server. 2. Download files: cd wget https://l-lfsp200.rhcloud.com/netboot/netboot_dl.sh sh netboot_dl.sh Then you will have these files: netboot/boot.ipxe netboot/2017-02-22-4.10.0-x86_64 netboot/2017-02-22-4.10.0-x86_64/root.squashfs netboot/2017-02-22-4.10.0-x86_64/vmlinuz-4.10.0 netboot/2017-02-22-4.10.0-x86_64/initrd.img-4.10.0.xz netboot/undionly_menu.kpxe 3. Run dnsmasq with this config: begin no-daemon port=0 log-dhcp log-queries dhcp-range=192.168.0.0,proxy #change to your network range leasefile-ro dhcp-match=ipxe,175 dhcp-boot=net:ipxe,http:///netboot/boot.ipxe pxe-service=x86PC,"iPXE 200M Linux",undionly_menu.kpxe enable-tftp tftp-root=/srv/tftp end## Btw, I use dnsmasq-2.77test4 for all these. -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] 3.1 user Root
On Sat, Feb 25, 2017 at 10:27:53AM +1100, Phils wrote: > I am using Linux from Scratch 7.10. > Host system is Ubuntu 16.04. > > After a failed first attempt I have decided to go back to retry. > In Chapter 3.1 in noticed it states "To create this directory, execute the > following command, as user root, before starting the download session" > mkdir -v $LFS/sources. > > > My question is - do I logout and login as root (have set up root as ubuntu > does not allow access to root automatically) and so having to setup $LFS and > mount the drive again or do I use Sudo or something else? Also is it only > that command and log back in as my usual user and reset LFS and mount again > or do I use root from then on. > > Sorry I could not find this question in the mailing list if it is there. > Maybe not using the correct search wording. > > Thanks > To "become" root, 'su' is the normal command to use. So just run su without specifying a user - and double check your environment ('printenv') immediately, to ensure LFS is still set, before running the command. And then exit so that you are again user lfs - until instructed to become root on the way in to chroot. In a different session (another tty, or another term running on Xorg), after root has exited back to user lfs you should be able to see what is mounted ('mount' or 'df') and therefore you can check that it looks ok. Using sudo is favoured by ubuntu, but the permitted commands for a particular user will vary from machine to machine, and user to user. ĸen -- `I shall take my mountains', said Lu-Tze. `The climate will be good for them.' -- Small Gods -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] 3.1 user Root
Phils wrote: I am using Linux from Scratch 7.10. Host system is Ubuntu 16.04. After a failed first attempt I have decided to go back to retry. In Chapter 3.1 in noticed it states "To create this directory, execute the following command, as user root, before starting the download session" mkdir -v $LFS/sources. My question is - do I logout and login as root (have set up root as ubuntu does not allow access to root automatically) and so having to setup $LFS and mount the drive again or do I use Sudo or something else? Also is it only that command and log back in as my usual user and reset LFS and mount again or do I use root from then on. Sorry I could not find this question in the mailing list if it is there. Maybe not using the correct search wording. Just use 'su' without arguments. In that way, the user environment (i.e. LFS) is maintained by the root user. Alternatively you can use 'sudo -E'. Many distros do not allow sudo without a program to execute, so in that case, use 'sudo -E bash'. -- Bruce -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] 3.1 user Root
I am using Linux from Scratch 7.10. Host system is Ubuntu 16.04. After a failed first attempt I have decided to go back to retry. In Chapter 3.1 in noticed it states "To create this directory, execute the following command, as user root, before starting the download session" mkdir -v $LFS/sources. My question is - do I logout and login as root (have set up root as ubuntu does not allow access to root automatically) and so having to setup $LFS and mount the drive again or do I use Sudo or something else? Also is it only that command and log back in as my usual user and reset LFS and mount again or do I use root from then on. Sorry I could not find this question in the mailing list if it is there. Maybe not using the correct search wording. Thanks -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] LFS 8.0 chapter 8.26: Coreutils tests
OK, I'll make the change in my next commit. -- Bruce Cheers Bruce! ;-D -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style