mirror of
https://github.com/PartialVolume/shredos.x86_64.git
synced 2026-02-20 05:32:11 +00:00
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:
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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' }
|
||||
|
||||
@@ -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
8
board/shredos/iso/README
Normal 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)
|
||||
3
board/shredos/iso/efigrub.cfg
Normal file
3
board/shredos/iso/efigrub.cfg
Normal file
@@ -0,0 +1,3 @@
|
||||
search --file --set=root __EFI_ID_FILE__
|
||||
set prefix=($root)/boot/grub
|
||||
source $prefix/grub.cfg
|
||||
12
board/shredos/iso/grub.cfg
Normal file
12
board/shredos/iso/grub.cfg
Normal 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__
|
||||
}
|
||||
15
board/shredos/iso/isolinux.cfg
Normal file
15
board/shredos/iso/isolinux.cfg
Normal 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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
8
fs/iso9660/README
Normal 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)
|
||||
@@ -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__
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user