Making a multi-phased extensions
This also includes:
- cosmetic changes
- bug fixes
- preparation for iso build
- folder-like
staticandtemplates
I am going to change a way how it execute phases. It will be a loop with executing of same command strokes:
-
run_before_{PHASENAME}functionwill be skipped if not exists -
build_phase {PHASENAME} {SECTION}function -
run_after_{PHASENAME}functionwill be skipped if not exists -
$ONEOFF && $FOUNDSTARTPHASE && unmount_image && exit
Is it ok?
regarding the missing GRUB build, it seems that one of the build scripts is messing with STDIN (which affects the while read loop), and that's why it skips the grub line in build_order.txt. https://stackoverflow.com/questions/13800225/while-loop-stops-reading-after-the-first-line-in-bash
I'm thinking one of the commands in phase4/linux.sh must be reading STDIN and accidentally pulling "grub" out of the stream before the while loop gets to it.
Possible fixes:
- manually run the linux script in chroot to find out which command is reading stdin
- change the while loop in
build_phaseto not rely on stdin, and thereby keep the loop safe from whatever the scripts are doing
regarding the missing GRUB build, it seems that one of the build scripts is messing with STDIN (which affects the
while readloop), and that's why it skips the grub line in build_order.txt. https://stackoverflow.com/questions/13800225/while-loop-stops-reading-after-the-first-line-in-bashI'm thinking one of the commands in
phase4/linux.shmust be reading STDIN and accidentally pulling "grub" out of the stream before the while loop gets to it.Possible fixes:
- manually run the linux script in chroot to find out which command is reading stdin
- change the while loop in
build_phaseto not rely on stdin, and thereby keep the loop safe from whatever the scripts are doing
I'm on my way to check it...
I'll search it on lfs book, and its rebuilding again with # on linux,grub and syslinux
There is also something with syslinux... it can't build cause it can't link something... more old script analyzing on the go
regarding the missing GRUB build, it seems that one of the build scripts is messing with STDIN (which affects the
while readloop), and that's why it skips the grub line in build_order.txt. https://stackoverflow.com/questions/13800225/while-loop-stops-reading-after-the-first-line-in-bashI'm thinking one of the commands in
phase4/linux.shmust be reading STDIN and accidentally pulling "grub" out of the stream before the while loop gets to it.Possible fixes:
- manually run the linux script in chroot to find out which command is reading stdin
- change the while loop in
build_phaseto not rely on stdin, and thereby keep the loop safe from whatever the scripts are doing
Founded. it is on make command:
-
Enable legacy fbdev support for your modesetting driver (DRM_FBDEV_EMULATION) [Y/n/?] (NEW)1.1. ifY-Overallocation of the fbdev buffer (DRM_FBDEV_OVERALLOC) [100] (NEW).... -
Enable firmware EDID (FIRMWARE_EDID) [N/y/?] (NEW)- FB section is on so it is called -
Enable legacy fbcon hardware acceleration code (FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION)..... -
Bootup logo (LOGO) [N/y/?] (NEW) -
Select compiled-in fonts (FONTS) [N/y/?] (NEW)If you want i can check allKeyswith their default values that are needed to add.
@krglaws
Yoo-hoo.. having a progress with VM...
It loaded a Kernel-panic.... at least it loaded a vmz for it
I'll send some picks on discussion page
Awesome! I'm gonna be AFK most of today and tomorrow probably. But I'll be able to check in here and there. Seems like we are going to need to fix those prompts in the linux.sh script. I'll think about it in the meantime
One more edit on build_extension and i'll remove mainLFSbuild and set a build_extension lfs for it
The last one needs testing on that section...
Also, i must add checker if LFS built completely, or not... so extensions would not start if it is not...
Also, i think, it would be better if Build instructions for build_phase and build_package would be in config.sh or build.config.sh