mirror of
https://github.com/PartialVolume/shredos.x86_64.git
synced 2026-02-20 09:35:26 +00:00
feat(configs): make default configs build USB image and AIO hybrid ISO
The all-in-one ISO works well and is the jack-of-all-trades, covering all imaginable systems and scenarios, so include that in the default build configurations. Signed-off-by: desertwitch <24509509+desertwitch@users.noreply.github.com>
This commit is contained in:
12
README.md
12
README.md
@@ -807,12 +807,12 @@ $ dd if=shredos-20200412.img of=/dev/sdx (20200412 will be the day you compiled,
|
||||
|
||||
#### The following configurations are available to build different targets:
|
||||
|
||||
- `make shredos_defconfig` - build USB image and regular hybrid ISO (64-bit)
|
||||
- `make shredos_i586_defconfig` - build USB image and regular hybrid ISO (32-bit)
|
||||
- `make shredos_defconfig` - build USB image and AIO hybrid ISO (64-bit)
|
||||
- `make shredos_i586_defconfig` - build USB image and AIO hybrid ISO (32-bit)
|
||||
- `make shredos_img_defconfig` - build USB image only (64-bit)
|
||||
- `make shredos_img_i586_defconfig` - build USB image only (32-bit)
|
||||
- `make shredos_iso_defconfig` - build regular hybrid ISO only (64-bit)
|
||||
- `make shredos_iso_i586_defconfig` - build regular hybrid ISO only (32-bit)
|
||||
- `make shredos_iso_defconfig` - build legacy hybrid ISO only (64-bit)
|
||||
- `make shredos_iso_i586_defconfig` - build legacy hybrid ISO only (32-bit)
|
||||
- `make shredos_iso_aio_defconfig` - build AIO hybrid ISO only (64-bit)
|
||||
- `make shredos_iso_aio_i586_defconfig` - build AIO hybrid ISO only (32-bit)
|
||||
|
||||
@@ -824,7 +824,9 @@ Do note that loading a configuration should typically be the last step before `m
|
||||
>- can both be written to CD/DVD-ROM and USB flash drives
|
||||
>- have a writeable partition (when written to a USB flash drive)
|
||||
>
|
||||
>The regular hybrid ISOs do not have that writeable partition (but are smaller in size).
|
||||
>The **legacy** hybrid ISOs, however, do not have that writeable partition (but
|
||||
>are slightly smaller in size), which means that you cannot make modifications
|
||||
>or have any PDFs written out (when using them burned to an USB flash drive).
|
||||
|
||||
### Issues that you may get when building ShredOS
|
||||
- **Error: "Internal Size Too Big"** If you are compiling the vanilla version of ShredOS and have made no alterations or additions but it fails to build the .img with the error "Internal error: size too big" then you may have a version of mtools that has a version of mcopy which has a bug whenever the -b option is used. This bug is known to exist in mcopy version 4.0.32 and maybe others but is fixed in v4.0.42. The solution is to upgrade your copy of mtools to a later version. However, if you have altered ShredOS by adding more packages you may need to update the size of the fat32 partition. You can do this by increasing the 'size' in ../board/shredos/genimage.cfg. Depending on how much extra software you have added increase the size by 10MB or more. Currently as of March 2023 the current size is `size = 130000000`, this is in bytes, so adding 10MB will mean you need to edit this value so that it reads `size = 140000000`. After the edit, just run `make` which will result in a quicker build. You don't need to run `make clean` first as that would result in a full rebuild which is not neccessary when all you are doing is increasing the final image size. If your repository does not supply a later version of mtools, then you can obtain mtools packages for various distros from [here](https://www.gnu.org/software/mtools/#downloads)
|
||||
|
||||
@@ -15,6 +15,7 @@ BR2_GENERATE_LOCALE="en_US.UTF-8"
|
||||
BR2_SYSTEM_ENABLE_NLS=y
|
||||
BR2_TARGET_TZ_INFO=y
|
||||
BR2_ROOTFS_OVERLAY="board/shredos/fsoverlay"
|
||||
BR2_ROOTFS_POST_BUILD_SCRIPT="board/shredos/populate_efi_partition.sh"
|
||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/shredos/make_iso_file.sh board/shredos/make_img_file.sh"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
@@ -167,7 +168,7 @@ 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_INITRD is not set
|
||||
BR2_TARGET_ROOTFS_ISO9660_GRUB2_EFI_PARTITION_SIZE="28M"
|
||||
BR2_TARGET_ROOTFS_ISO9660_HYBRID=y
|
||||
# BR2_TARGET_ROOTFS_TAR is not set
|
||||
BR2_TARGET_GRUB2=y
|
||||
|
||||
@@ -13,6 +13,7 @@ BR2_GENERATE_LOCALE="en_US.UTF-8"
|
||||
BR2_SYSTEM_ENABLE_NLS=y
|
||||
BR2_TARGET_TZ_INFO=y
|
||||
BR2_ROOTFS_OVERLAY="board/shredos/fsoverlay"
|
||||
BR2_ROOTFS_POST_BUILD_SCRIPT="board/shredos/populate_efi_partition.sh"
|
||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/shredos/make_iso_file.sh board/shredos/make_img_file.sh"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
@@ -164,7 +165,7 @@ 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_INITRD is not set
|
||||
BR2_TARGET_ROOTFS_ISO9660_GRUB2_EFI_PARTITION_SIZE="28M"
|
||||
BR2_TARGET_ROOTFS_ISO9660_HYBRID=y
|
||||
# BR2_TARGET_ROOTFS_TAR is not set
|
||||
BR2_TARGET_GRUB2=y
|
||||
|
||||
Reference in New Issue
Block a user