On Tue, 8 Dec 2020 12:33:48 -0600 Bruce Dubbs via blfs-support <blfs-support@lists.linuxfromscratch.org> wrote:
> On 12/8/20 12:00 PM, Scott Andrews via blfs-support wrote: > > > The only sane way ( successful way ) to build LFS for it to be > > installed onto other machine is to.... > > > > 1. Use a package manager > > > > 2. Build ALL the packages in a clean chroot > > > > 3. Create a base system of packages and all the add on > > packages needed. You have to merge LFS and BLFS together. > > You will have issues with controlling dependencies between > > the various packages. > > > > 4. Build an installation script to install the binary > > packages from the package manager (repository). Formatting a drive > > and installation of binaries going to the formatted drive included > > in this step. > > > > 5. Fix up the configuration files for each machine. > > > > 6. Transfer drive to the target machine. > > > > 7. A way to update the target machine(s). > > > Not true. You can tar up the LFS system and untar it on an empty > partition on the target machine. One caveat is if the target machine > is less capable than the build system, you need to build gmp > generically. > > Other minor things are to change the host name, ip address, fstab, > grub.cfg, and maybe unprivileged user(s). Also any kernel modules > and (potentially) firmware for the target system must be available. > > -- Bruce That is a straw man argument and you know it. There is no way one can tar up the build, then untar on an external drive and plug it into another system, then boot it and ssh into it. With my binary rpms....... Mount formatted drive in/at <filesystem> rpm -Uvh <filesystem> /srv/RPMS/Core/* umount <filesystem> Place drive into other machine Boot machine ssh <user>@<ip_address> su - <root_password> Fixup config files Add other packages as needed rpm -Uvh /srv/RPMS/ALL/<package_name.rpm> /srv/RPMS/ALL/dependency.rpm I do this as described every time I setup another machine. What if I don't want python or any other package(s) on the target machine? Now what? -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page