LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   New distro 200M linux, with iPXE boot and live boot enabled. (https://www.linuxquestions.org/questions/linux-distributions-5/new-distro-200m-linux-with-ipxe-boot-and-live-boot-enabled-4175603830/)

saul_kent 04-14-2017 07:13 AM

New distro 200M linux, with iPXE boot and live boot enabled.
 
About 200M linux
I'm a Linux From Scratch user, this is the distro I used everyday. It has NO GUI.

The 200M linux is based on the latest Linux From Scratch document, with some extra packages installed.
I only installed the packages that I needed, so it's quite small, the compressed image's size is less than 200MB.
But it's enough for maintainance use, and for daily use whoes requirement is similar to mine.

It can be installed to Flash Drive, or use iPXE to load it without install.

Quick start with iPXE

In iPXE shell, run one of the follow commands.
chain https://sf.net/projects/lfsp200/files/netboot/boot.ipxe
chain https://l-lfsp200.rhcloud.com/files/netboot/boot.ipxe
chain http://l-lfsp200.rhcloud.com/files/netboot/boot.ipxe
(use the last one if your iPXE not support https)

Or download https://sf.net/projects/lfsp200/file...only_menu.kpxe and use it as a PXE bootloader,
with it you won't need to type the long commands above.

LIVE MODE Installation
Download file with suffix "-image.tar.xz" listed in bellow URLs, and extract it with tar or 7zip, then enter the directory.
https://l-lfsp200.rhcloud.com/files/ (only for latest version)
https://sf.net/projects/lfsp200/files/
The file "live.vmx" can be used by vmware.

The file "200M" is the main image. Under linux use "dd if=200M of=<flash drive> bs=4M oflag=direct status=progress"
to write it to Flash Drive. ALL DATA ON <flash drive> WITH BE DESTROYED.
For example, <flash drive> standfor "/dev/sdx", not "/dev/sdx1".

For windows user, download Rufus from https://rufus.akeo.ie, and write file "200M" to Flash Drive with "DD Image" type.
Then the bootable Flash Drive is ready.

The file "200M" is a LIVE MODE image, when it booted, nothing will write back unless run command "_liveuser live_sync".

There are two grub menu items, normally use the first one, it will try to load files saved by command "_liveuser live_sync",
and the second one will not do it.
lfs xxxx-xxxx [ Load Image to Ram (Combine Last Change) ]
lfs xxxx-xxxx [ Load Image to Ram ]

200M linux use OverlayFS as rootfs when it run in LIVE MODE, similar to Openwrt/LEDE.
And different PCs boot with same Flash Drive will use different files saved by "_liveuser live_sync",
have a look at /usr/share/mkinitramfs/init.sh for more details.

by jarellczc@gmail.com
Newer version of this document maybe found at https://l-lfsp200.rhcloud.com/


All times are GMT -5. The time now is 06:35 PM.