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 <path to config file with the below content>
########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 <web root>
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://<http server ip or name>/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