Tim Tassonis wrote:
Hi Bruce

On 04/18/16 22:24, Bruce Dubbs wrote:
I've been thinking thinking about a new Live CD/Rescue CD based on LFS.
It would be much less ambitious than the old one that included an X
implementation.

What I had in mind is a base LFS system with the following:

dhcpcd
wget
ssh/ssl
which
links
screen
mc
gptfdisk
gpm
LFS HTML
LFS sources tarball

What else?  Other possibilities:
unzip
subversion
git
wireless-tools
wpa-supplicant

   -- Bruce



I have created such a disk, mainly as a rescue disk.

I also added:

- bind, the client parts for nslookup
- net-tools, as I'm just more used to them
- llvm, mdadm, good if used on a system where lvm/RAID is used
- cpio
- pciutils
- parted


In order to create the cd, I also needed:
- libburn, libisoburn, libisofs
- squashfs
- syslinux/isolinux


My approach was to create a cd with isofs that runs a kernel with an
initramfs. The initramfs stuff is pretty identical to the blfs one.

Also on the CD, there is a squashfs file, containing all the stuff you
want on your live system.

In the initramfs's init, I mount the squashfs combined with an overlayfs,
to get a writable root partition, with the writable parts in a tmpfs. This
looks like this:

mknod /dev/loop0 b 7 0
mkdir /.root
mkdir /mnt
mkdir /mnt/gaia-ro
mkdir /mnt/gaia-rw
mount -t tmpfs tmpfs /mnt/gaia-rw
mkdir /mnt/gaia-rw/work
mkdir /mnt/gaia-rw/upper
mkdir /mnt/gaia
mount /gaiarule.sqf  /mnt/gaia-ro -t squashfs -o loop
mount -t overlay overlay
-olowerdir=/mnt/gaia-ro,upperdir=/mnt/gaia-rw/upper,workdir=/mnt/gaia-rw/work
/.root
exec switch_root /.root "$init" "$@"

If you are interested, I can send you my scripts to do all this, but maybe
you already have a better solution for all the booting/root disk stuff in
place.

I've dropped the ball on this and am working on other things right now. One issue I came across in my earlier review was the problem of writable partitions from a CD/DVD. It just seems like a kludge. The old iso is not capable of being loaded on a thumb drive without some modifications and I haven't figured that out yet.

I then thought how the CD/DVD paradigm is so last decade. I think it would be much easier to produce an iso that targets a thumb drive only. Users could then add packages as they see fit.

Comments?

  -- Bruce


--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to