On 7 October 2016 at 21:46, Ken Moffat <[email protected]> wrote: > On Fri, Oct 07, 2016 at 04:09:36PM +0000, Peng HG wrote: >> I've put up my installation script at >> >> https://github.com/NomadHK/salt >> > Two minor nits - > > README.md - your partitioning does not have anywhere to build the > next system, nor do you separate /home. > > Line 1712 - rxvt-unicode is a fork of rxvt, so the short name > is urxvt. > > General : you seem to be building the whole thing in chroot, and > using programs in /tools (if the corresponding program did not get > i nstalled in chroot) until the end of the build. I see you are > using EFI so I assume you know what you are doing, but in general > building a small desktop (but with a hefty browser) _before_ you > know whether or not the new system works is a recipe for pain. > > Major question - What happens if a build fails ? > > For the first build we recommend reading the book and pasting (I > note your link about pasting), but after that scripting is fine. > BUT - if you script a series of packages, you had better be able to > detect that something failed - otherwise you might end up with a LOT > of packages which you need to recompile. > > It's always interesting to see different approaches. You might want > to consider keeping some sort of record about where the script got to > (e.g. in case of power failure) with enough infrastructure to be > able to resume.
They were my initial thoughts too. There appears to be very little reporting at crucial stages, with no baling out or an automated way back in. Surely a script should always be written in such a way as to expect the worst, that is, defensively. Richard -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
