the fun really began last night at @6:30. i had some packages left to
compile, so i went ahead and finished those off. only one problem was had
and that was lilo.
there is a hint for LFS showing how to use a graphic for lilo's background,
with a patch from SUSE. well, the patch was missing everywhere i went to
get it, except for a patch for lilo-21.7.4. so i downloaded the correct
lilo version and attempted to install that patch. this did not work, so i
just compiled the lilo that came with LFS (22.something).
once everything was compiled and installed, i wrote a few rc scripts for the
various programs as per the LFS book. this was great fun because it really
showed me where everything was. then came the moment i was dreading, the
boot scripts.
another hint for LFS was the "BSD style boot scripts". i compared the
differences between what i was used to, and what this hint was proposing. i
finally decided on a combination of both. so my boot scripts are organized
thusly :
/etc/
rc.d/
rcS.d
rc0.d
rc1.d -> rcS.d
rc2.d
rc3.d -> rc2.d
rc4.d -> rc2.d
rc5.d -> rc2.d
rc6.d -> rc0.d
rc.sysinit
rc.local
init.d/
(where various extra bootscripts go)
inittab
i chose the so-called BSD-style directory structure. it's far cleaner than
the rc#.d/ style. but i also wanted to keep init.d/ for individual
bootscripts. each rc.d/rc#.d is just a text file, and if i put something
into init.d/ i just have to hook it up in the appropriate file using my
favorite editor.
once that was done, i compiled a new kernel, made a copy of it on my debian
partition and hooked it up through lilo. i just had to change the "root= "
for the new LFS partition to work. i rebooted. i got one of the errors i
had written into the bootscript that basically said the hard drive was
f**ked. i tried rebooting (after running e2fsck) and got the same thing.
this was a conundrum. but it was already 11:30 and i decided it was time
for bed.
i had some time to think about this in the morning and i realized i had made
a mistake when writing my fstab. i had set the swap and root to hda1
(thinking that LFS was going to treat hdb as hda, which was not the case...)
so i reset the swap and root to hdb in fstab, rebooted and the system came
up to my boot prompt :
Morrigan Linux v-0.0.1 built on LFS 3.1 tty1
i logged in as root and found my new system waiting. clean (as in bare).
about this time, my ride showed up and here i am at work, writing this mail
to y'all.
last night was from 6:30 to 11:30, but don't count the actual time as given.
i got dinner somewhere in there and i must have spent at least a half-hour
waffling over the bootscripts. this morning was about ten minutes of my
time. actual time building the LFS system was around 10 hours of real work.
and i'm not even done.
i suppose i should change the minor number to 2, as the system is up and
running...
the next thing i am planning on doing is re-writing all of the boot scripts.
i plan to use techniques found in the debian scripts and i will probably
re-organize the text files a bit (now that vim is working on the new
system). once i have everything the way i like it, it's time to tar up and
make a boot cd. oh, i'll need to compile a generic kernel, too (got a
little ahead of myself there...)