Thinstation / thinstation

A framework for making thin and light Linux based images for x86 based machines and thinclients.
https://www.thinstation.net/
775 stars 188 forks source link

Grub loader error #826

Closed AlexanderZhirov closed 1 month ago

AlexanderZhirov commented 1 month ago

After making changes to the build script, I get these messages and the result:

PXL_20240513_212340290

Making boot image for grub Type....

sed: can't read boot-images/grub/efi-source/boot/grub/grub.cfg: No such file or directory
sed: can't read boot-images/grub/efi-source/boot/grub/grub.cfg: No such file or directory
sed: can't read boot-images/grub/efi-source/boot/grub/grub.cfg: No such file or directory
sed: can't read boot-images/grub/efi-source/boot/grub/grub.cfg: No such file or directory
12612+0 records in
12612+0 records out
12914688 bytes (13 MB, 12 MiB) copied, 0.0498478 s, 259 MB/s
mkfs.fat 4.1 (2017-01-24)
GNU xorriso 1.4.8 : RockRidge filesystem manipulator, libburnia project.

Notes about build:
Kernel 6.8.9TS size is 10233K
Initrd size is 223553K

Build Complete!
[root@TS_chroot]/build# tree boot-images/grub
boot-images/grub
├── efi-source
│   ├── boot
│   │   ├── grub
│   │   │   ├── boot.img
│   │   │   ├── cdboot.img
│   │   │   ├── cd.cfg
│   │   │   ├── core.img
│   │   │   ├── default
│   │   │   │   └── grub.cfg
│   │   │   ├── devstation
│   │   │   │   ├── grub.cfg
│   │   │   │   └── theme
│   │   │   │       ├── background.jpg
│   │   │   │       ├── dejavu_32.pf2
│   │   │   │       ├── dejavu_sans_12.pf2
│   │   │   │       ├── dejavu_sans_14.pf2
│   │   │   │       ├── dejavu_sans_16.pf2
│   │   │   │       ├── dejavu_sans_24.pf2
│   │   │   │       ├── dejavu_sans_48.pf2
│   │   │   │       ├── icons
│   │   │   │       │   ├── antergos.png
│   │   │   │       │   ├── archlinux.png
│   │   │   │       │   ├── arch.png
│   │   │   │       │   ├── bash.png
│   │   │   │       │   ├── cancel.png
│   │   │   │       │   ├── chakra.png
│   │   │   │       │   ├── debian.png
│   │   │   │       │   ├── deepin.png
│   │   │   │       │   ├── driver.png
│   │   │   │       │   ├── edit.png
│   │   │   │       │   ├── efi.png
│   │   │   │       │   ├── elementary.png
│   │   │   │       │   ├── endeavouros.png
│   │   │   │       │   ├── fedora.png
│   │   │   │       │   ├── find.efi.png
│   │   │   │       │   ├── find.none.png
│   │   │   │       │   ├── gentoo.png
│   │   │   │       │   ├── gnu-linux.png
│   │   │   │       │   ├── help.png
│   │   │   │       │   ├── installer.png
│   │   │   │       │   ├── kali.png
│   │   │   │       │   ├── kaos.png
│   │   │   │       │   ├── kbd.png
│   │   │   │       │   ├── korora.png
│   │   │   │       │   ├── kubuntu.png
│   │   │   │       │   ├── lang.png
│   │   │   │       │   ├── lfs.png
│   │   │   │       │   ├── linuxmint.png
│   │   │   │       │   ├── linux.png
│   │   │   │       │   ├── lubuntu.png
│   │   │   │       │   ├── macosx.png
│   │   │   │       │   ├── mageia.png
│   │   │   │       │   ├── Manjaro.i686.png
│   │   │   │       │   ├── manjaro.png
│   │   │   │       │   ├── Manjaro.x86_64.png
│   │   │   │       │   ├── memtest.png
│   │   │   │       │   ├── opensuse.png
│   │   │   │       │   ├── recovery.png
│   │   │   │       │   ├── restart.png
│   │   │   │       │   ├── shutdown.png
│   │   │   │       │   ├── siduction.png
│   │   │   │       │   ├── solus.png
│   │   │   │       │   ├── steamos.png
│   │   │   │       │   ├── thinstation.png
│   │   │   │       │   ├── type.png
│   │   │   │       │   ├── tz.png
│   │   │   │       │   ├── ubuntu.png
│   │   │   │       │   ├── unknown.png
│   │   │   │       │   ├── unset.png
│   │   │   │       │   ├── void.png
│   │   │   │       │   ├── windows.png
│   │   │   │       │   └── xubuntu.png
│   │   │   │       ├── LICENSE
│   │   │   │       ├── select_c.png
│   │   │   │       ├── select_e.png
│   │   │   │       ├── select_w.png
│   │   │   │       ├── terminal_box_c.png
│   │   │   │       ├── terminal_box_e.png
│   │   │   │       ├── terminal_box_ne.png
│   │   │   │       ├── terminal_box_n.png
│   │   │   │       ├── terminal_box_nw.png
│   │   │   │       ├── terminal_box_se.png
│   │   │   │       ├── terminal_box_s.png
│   │   │   │       ├── terminal_box_sw.png
│   │   │   │       ├── terminal_box_w.png
│   │   │   │       ├── terminus-12.pf2
│   │   │   │       ├── terminus-14.pf2
│   │   │   │       ├── terminus-16.pf2
│   │   │   │       ├── terminus-18.pf2
│   │   │   │       └── theme.txt
│   │   │   ├── hd.cfg
│   │   │   ├── i386-pc
│   │   │   │   └── normal.mod
│   │   │   ├── installer
│   │   │   │   ├── grub.cfg
│   │   │   │   ├── i386-pc
│   │   │   │   │   └── normal.mod
│   │   │   │   └── theme
│   │   │   │       ├── background.jpg
│   │   │   │       ├── dejavu_32.pf2
│   │   │   │       ├── dejavu_sans_12.pf2
│   │   │   │       ├── dejavu_sans_14.pf2
│   │   │   │       ├── dejavu_sans_16.pf2
│   │   │   │       ├── dejavu_sans_24.pf2
│   │   │   │       ├── dejavu_sans_48.pf2
│   │   │   │       ├── icons
│   │   │   │       │   ├── antergos.png
│   │   │   │       │   ├── archlinux.png
│   │   │   │       │   ├── arch.png
│   │   │   │       │   ├── bash.png
│   │   │   │       │   ├── cancel.png
│   │   │   │       │   ├── chakra.png
│   │   │   │       │   ├── debian.png
│   │   │   │       │   ├── deepin.png
│   │   │   │       │   ├── driver.png
│   │   │   │       │   ├── edit.png
│   │   │   │       │   ├── efi.png
│   │   │   │       │   ├── elementary.png
│   │   │   │       │   ├── endeavouros.png
│   │   │   │       │   ├── fedora.png
│   │   │   │       │   ├── find.efi.png
│   │   │   │       │   ├── find.none.png
│   │   │   │       │   ├── gentoo.png
│   │   │   │       │   ├── gnu-linux.png
│   │   │   │       │   ├── help.png
│   │   │   │       │   ├── installer.png
│   │   │   │       │   ├── kali.png
│   │   │   │       │   ├── kaos.png
│   │   │   │       │   ├── kbd.png
│   │   │   │       │   ├── korora.png
│   │   │   │       │   ├── kubuntu.png
│   │   │   │       │   ├── lang.png
│   │   │   │       │   ├── lfs.png
│   │   │   │       │   ├── linuxmint.png
│   │   │   │       │   ├── linux.png
│   │   │   │       │   ├── lubuntu.png
│   │   │   │       │   ├── macosx.png
│   │   │   │       │   ├── mageia.png
│   │   │   │       │   ├── Manjaro.i686.png
│   │   │   │       │   ├── manjaro.png
│   │   │   │       │   ├── Manjaro.x86_64.png
│   │   │   │       │   ├── memtest.png
│   │   │   │       │   ├── opensuse.png
│   │   │   │       │   ├── recovery.png
│   │   │   │       │   ├── restart.png
│   │   │   │       │   ├── shutdown.png
│   │   │   │       │   ├── siduction.png
│   │   │   │       │   ├── solus.png
│   │   │   │       │   ├── steamos.png
│   │   │   │       │   ├── thinstation.png
│   │   │   │       │   ├── type.png
│   │   │   │       │   ├── tz.png
│   │   │   │       │   ├── ubuntu.png
│   │   │   │       │   ├── unknown.png
│   │   │   │       │   ├── unset.png
│   │   │   │       │   ├── void.png
│   │   │   │       │   ├── windows.png
│   │   │   │       │   └── xubuntu.png
│   │   │   │       ├── LICENSE
│   │   │   │       ├── select_c.png
│   │   │   │       ├── select_e.png
│   │   │   │       ├── select_w.png
│   │   │   │       ├── terminal_box_c.png
│   │   │   │       ├── terminal_box_e.png
│   │   │   │       ├── terminal_box_ne.png
│   │   │   │       ├── terminal_box_n.png
│   │   │   │       ├── terminal_box_nw.png
│   │   │   │       ├── terminal_box_se.png
│   │   │   │       ├── terminal_box_s.png
│   │   │   │       ├── terminal_box_sw.png
│   │   │   │       ├── terminal_box_w.png
│   │   │   │       ├── terminus-12.pf2
│   │   │   │       ├── terminus-14.pf2
│   │   │   │       ├── terminus-16.pf2
│   │   │   │       ├── terminus-18.pf2
│   │   │   │       └── theme.txt
│   │   │   ├── net.cfg
│   │   │   └── pxeboot.img
│   │   ├── image.md5
│   │   ├── initrd
│   │   └── vmlinuz
│   ├── EFI
│   │   ├── boot
│   │   │   ├── boot.efi
│   │   │   ├── bootx64.efi
│   │   │   ├── grubx64.efi
│   │   │   └── mmx64.efi
│   │   └── Microsoft
│   │       └── Boot
│   │           ├── bootmgfw.efi
│   │           ├── grubx64.efi
│   │           └── mmx64.efi
│   ├── favicon.ico
│   ├── rufus
│   │   └── rufus.exe
│   └── ThinStation-UEFI-CA.cer
└── thinstation-efi.iso

I returned the old state of the script - it is going to work without problems.

Thinstation commented 1 month ago

But why are you reporting that here?

AlexanderZhirov commented 1 month ago

I think this is due to the fact that the boot/grub/grub.cfg file is missing during the build process

sed: can't read boot-images/grub/efi-source/boot/grub/grub.cfg: No such file or directory
sed: can't read boot-images/grub/efi-source/boot/grub/grub.cfg: No such file or directory
sed: can't read boot-images/grub/efi-source/boot/grub/grub.cfg: No such file or directory
sed: can't read boot-images/grub/efi-source/boot/grub/grub.cfg: No such file or directory
Thinstation commented 1 month ago

Fixed. Theme was undefined

On Mon, May 13, 2024 at 3:41 PM Alexander Zhirov @.***> wrote:

I think this is due to the fact that the boot/grub/grub.cfg file is missing during the build process

sed: can't read boot-images/grub/efi-source/boot/grub/grub.cfg: No such file or directory sed: can't read boot-images/grub/efi-source/boot/grub/grub.cfg: No such file or directory sed: can't read boot-images/grub/efi-source/boot/grub/grub.cfg: No such file or directory sed: can't read boot-images/grub/efi-source/boot/grub/grub.cfg: No such file or directory

— Reply to this email directly, view it on GitHub https://github.com/Thinstation/thinstation/issues/826#issuecomment-2108849167, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVW47Q6E3UNSHZTE7AIUDDZCEXRJAVCNFSM6AAAAABHU6432SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBYHA2DSMJWG4 . You are receiving this because you modified the open/close state.Message ID: @.***>

AlexanderZhirov commented 1 month ago

My regards 👌

AlexanderZhirov commented 1 month ago

@Thinstation I have made some upgrades to compilers + libraries. I'll choose a time and try to form a PR. Maybe something will come in handy.