chore: reorganize all files into board/shredos

It is more convenient to not have to search for configuration files in different directories, and also helpful to see the standard configuration files, so move all ShredOS configurations into board/shredos.

Signed-off-by: desertwitch <24509509+desertwitch@users.noreply.github.com>
This commit is contained in:
desertwitch
2025-11-20 14:15:43 +01:00
parent 589f08752a
commit d417261a76
18 changed files with 84 additions and 30 deletions

View File

@@ -911,15 +911,15 @@ The GRUB configuration that is embedded into the GRUB images at build-time.
It contains directions for GRUB to find the right volume and GRUB configuration.
This applies for both the USB images and ISO images, and both for BIOS and UEFI.
#### ../fs/iso9660/isolinux.cfg
#### ../board/shredos/iso/isolinux.cfg
The ISO image's ISOLINUX configuration, which the BIOS bootloader will use.
It contains the BIOS boot menu for the ISO image.
#### ../fs/iso9660/grub.cfg
#### ../board/shredos/iso/grub.cfg
The ISO image's GRUB configuration, which the UEFI bootloader will use.
It contains the UEFI boot menu for the ISO image.
#### ../fs/iso9660/efigrub.cfg
#### ../board/shredos/iso/efigrub.cfg
The GRUB configuration that is embedded into the ISO's UEFI partition.
It contains directions for GRUB to find the ISO9660 FS and GRUB configuration.

View File

@@ -1,3 +1,3 @@
search --file --set=root /boot/buildroot
search --file --set=root /boot/shredos.id
set prefix=($root)/boot/grub
configfile $prefix/grub.cfg

View File

@@ -4,7 +4,7 @@ image boot.vfat {
file boot/bzImage { image = 'bzImage' }
file boot/grub/grub.cfg { image = 'grub.cfg' }
file boot/version.txt { image = 'version.txt' }
file boot/buildroot { image = '/dev/null' }
file boot/shredos.id { image = '/dev/null' }
file EFI/BOOT/bootx64.efi { image = 'bootx64.efi' }
file EFI/BOOT/grub.cfg { image = 'grub.cfg' }
file shredos.ico { image = 'shredos.ico' }

View File

@@ -4,7 +4,7 @@ image boot.vfat {
file boot/bzImage { image = 'bzImage' }
file boot/grub/grub.cfg { image = 'grub.cfg' }
file boot/version.txt { image = 'version.txt' }
file boot/buildroot { image = '/dev/null' }
file boot/shredos.id { image = '/dev/null' }
file EFI/BOOT/bootia32.efi { image = 'bootia32.efi' }
file EFI/BOOT/grub.cfg { image = 'grub.cfg' }
file shredos.ico { image = 'shredos.ico' }

8
board/shredos/iso/README Normal file
View File

@@ -0,0 +1,8 @@
ISO9660 filesystem was updated to modern standards as of 20/11/2025.
The changes have - at the time of this writing - not been upstreamed.
Do compare (and port 'fs/iso9660' over) when updating the Buildroot release.
The following variables are filled in at build-time:
- __EFI_ID_FILE__
- __KERNEL_PATH__
- __INITRD_PATH__ (automatically removed if not used)

View File

@@ -0,0 +1,3 @@
search --file --set=root __EFI_ID_FILE__
set prefix=($root)/boot/grub
source $prefix/grub.cfg

View File

@@ -0,0 +1,12 @@
set default="0"
set timeout="5"
menuentry "ShredOS" {
linux __KERNEL_PATH__ console=tty3 loglevel=3
initrd __INITRD_PATH__
}
menuentry "ShredOS (nomodeset)" {
linux __KERNEL_PATH__ console=tty3 loglevel=3 nomodeset
initrd __INITRD_PATH__
}

View File

@@ -0,0 +1,15 @@
default menu.c32
prompt 0
timeout 50
menu title ShredOS
label shredos
menu label ShredOS
kernel __KERNEL_PATH__
append initrd=__INITRD_PATH__ console=tty3 loglevel=3
label shredos-nomodeset
menu label ShredOS (nomodeset)
kernel __KERNEL_PATH__
append initrd=__INITRD_PATH__ console=tty3 loglevel=3 nomodeset

View File

@@ -532,7 +532,7 @@ run_cmd rm -r dist || true
run_cmd mkdir -p dist
echo "Starting to build..."
trap 'print_summary_and_exit $?' EXIT
trap 'print_summary_and_exit $?' EXIT INT TERM
if [ ${#X64_CONFIGS[@]} -gt 0 ]; then
echo

View File

@@ -168,6 +168,10 @@ BR2_TARGET_ROOTFS_CPIO_LZMA=y
BR2_TARGET_ROOTFS_INITRAMFS=y
BR2_TARGET_ROOTFS_ISO9660=y
BR2_TARGET_ROOTFS_ISO9660_BOTH=y
BR2_TARGET_ROOTFS_ISO9660_ISOLINUX_BOOT_MENU="board/shredos/iso/isolinux.cfg"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_BOOT_MENU="board/shredos/iso/grub.cfg"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_EFI_BOOT_MENU="board/shredos/iso/efigrub.cfg"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_EFI_IDENT_FILE="/boot/shredos.id"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_EFI_PARTITION_SIZE="28M"
BR2_TARGET_ROOTFS_ISO9660_HYBRID=y
# BR2_TARGET_ROOTFS_TAR is not set

View File

@@ -165,6 +165,10 @@ BR2_TARGET_ROOTFS_CPIO_LZMA=y
BR2_TARGET_ROOTFS_INITRAMFS=y
BR2_TARGET_ROOTFS_ISO9660=y
BR2_TARGET_ROOTFS_ISO9660_BOTH=y
BR2_TARGET_ROOTFS_ISO9660_ISOLINUX_BOOT_MENU="board/shredos/iso/isolinux.cfg"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_BOOT_MENU="board/shredos/iso/grub.cfg"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_EFI_BOOT_MENU="board/shredos/iso/efigrub.cfg"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_EFI_IDENT_FILE="/boot/shredos.id"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_EFI_PARTITION_SIZE="28M"
BR2_TARGET_ROOTFS_ISO9660_HYBRID=y
# BR2_TARGET_ROOTFS_TAR is not set

View File

@@ -168,6 +168,10 @@ BR2_TARGET_ROOTFS_CPIO_LZMA=y
BR2_TARGET_ROOTFS_INITRAMFS=y
BR2_TARGET_ROOTFS_ISO9660=y
BR2_TARGET_ROOTFS_ISO9660_BOTH=y
BR2_TARGET_ROOTFS_ISO9660_ISOLINUX_BOOT_MENU="board/shredos/iso/isolinux.cfg"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_BOOT_MENU="board/shredos/iso/grub.cfg"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_EFI_BOOT_MENU="board/shredos/iso/efigrub.cfg"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_EFI_IDENT_FILE="/boot/shredos.id"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_EFI_PARTITION_SIZE="28M"
BR2_TARGET_ROOTFS_ISO9660_HYBRID=y
# BR2_TARGET_ROOTFS_TAR is not set

View File

@@ -165,6 +165,10 @@ BR2_TARGET_ROOTFS_CPIO_LZMA=y
BR2_TARGET_ROOTFS_INITRAMFS=y
BR2_TARGET_ROOTFS_ISO9660=y
BR2_TARGET_ROOTFS_ISO9660_BOTH=y
BR2_TARGET_ROOTFS_ISO9660_ISOLINUX_BOOT_MENU="board/shredos/iso/isolinux.cfg"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_BOOT_MENU="board/shredos/iso/grub.cfg"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_EFI_BOOT_MENU="board/shredos/iso/efigrub.cfg"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_EFI_IDENT_FILE="/boot/shredos.id"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_EFI_PARTITION_SIZE="28M"
BR2_TARGET_ROOTFS_ISO9660_HYBRID=y
# BR2_TARGET_ROOTFS_TAR is not set

View File

@@ -167,6 +167,10 @@ BR2_TARGET_ROOTFS_CPIO_LZMA=y
BR2_TARGET_ROOTFS_INITRAMFS=y
BR2_TARGET_ROOTFS_ISO9660=y
BR2_TARGET_ROOTFS_ISO9660_BOTH=y
BR2_TARGET_ROOTFS_ISO9660_ISOLINUX_BOOT_MENU="board/shredos/iso/isolinux.cfg"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_BOOT_MENU="board/shredos/iso/grub.cfg"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_EFI_BOOT_MENU="board/shredos/iso/efigrub.cfg"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_EFI_IDENT_FILE="/boot/shredos.id"
BR2_TARGET_ROOTFS_ISO9660_HYBRID=y
# BR2_TARGET_ROOTFS_TAR is not set
BR2_TARGET_GRUB2=y

View File

@@ -164,6 +164,10 @@ BR2_TARGET_ROOTFS_CPIO_LZMA=y
BR2_TARGET_ROOTFS_INITRAMFS=y
BR2_TARGET_ROOTFS_ISO9660=y
BR2_TARGET_ROOTFS_ISO9660_BOTH=y
BR2_TARGET_ROOTFS_ISO9660_ISOLINUX_BOOT_MENU="board/shredos/iso/isolinux.cfg"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_BOOT_MENU="board/shredos/iso/grub.cfg"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_EFI_BOOT_MENU="board/shredos/iso/efigrub.cfg"
BR2_TARGET_ROOTFS_ISO9660_GRUB2_EFI_IDENT_FILE="/boot/shredos.id"
BR2_TARGET_ROOTFS_ISO9660_HYBRID=y
# BR2_TARGET_ROOTFS_TAR is not set
BR2_TARGET_GRUB2=y

8
fs/iso9660/README Normal file
View File

@@ -0,0 +1,8 @@
ISO9660 filesystem was updated to modern standards as of 20/11/2025.
The changes have - at the time of this writing - not been upstreamed.
Do compare (and port 'fs/iso9660' over) when updating the Buildroot release.
The following variables are filled in at build-time:
- __EFI_ID_FILE__
- __KERNEL_PATH__
- __INITRD_PATH__ (automatically removed if not used)

View File

@@ -1,12 +1,7 @@
set default="0"
set timeout="5"
set timeout="10"
menuentry "ShredOS" {
linux __KERNEL_PATH__ console=tty3 loglevel=3
initrd __INITRD_PATH__
}
menuentry "ShredOS (nomodeset)" {
linux __KERNEL_PATH__ console=tty3 loglevel=3 nomodeset
initrd __INITRD_PATH__
menuentry "Buildroot" {
linux __KERNEL_PATH__ root=/dev/sr0
initrd __INITRD_PATH__
}

View File

@@ -1,15 +1,4 @@
default menu.c32
prompt 0
timeout 50
menu title ShredOS
label shredos
menu label ShredOS
default 1
label 1
kernel __KERNEL_PATH__
append initrd=__INITRD_PATH__ console=tty3 loglevel=3
label shredos-nomodeset
menu label ShredOS (nomodeset)
kernel __KERNEL_PATH__
append initrd=__INITRD_PATH__ console=tty3 loglevel=3 nomodeset
append initrd=__INITRD_PATH__ root=/dev/sr0