aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/make_dualboot_image.sh
Commit message (Collapse)AuthorAgeFilesLines
* Refine boot process of build target and allow config of /boot fstype and ↵Sven Gothel2021-07-221-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mount-options - Add env-vars BOOT_FSTYPE and BOOT_FSOPTIONS, supporting customizing the boot filesystem type and options - FAT_CODEPAGE (if using BOOT_FSTYPE vfat, default) is hardcoded '437' - Add 'lsof', allowing to check open listening ports (besides netstat) - On Raspi: Use plymouth splash screen for all configurations, theme 'pix' - Add systemd resize2fs_once.service to have it start very early to resize the rootfs partition for RW rootfs - No kernel argument 'rootwait' for initramfs/grub root=file boot loop_rootfs (initram): - kill spawn-off pipe copy process (LOOP_ROOTFS_LOG_PIDS) - Use BOOT_FSTYPE, BOOT_FSOPTIONS (incl mounting /boot).. - Use dedicated fsck.BOOT_FSTYPE if possible (and quiet) - Log fsck and mount attempts, failure and success - Stage2 01-sys-tweaks fixes: - Only disable systemd-remount-fs for ROOTFS_RO - Only generate /boot/loop_rootfs.id for ROOTFS_RO - Kernel Modules: Add codepage 437 and 850, drm and vc4 (raspi only) - Use TARGET_ARCH in all situations - On RW rootfs, grub-install with ext2 module -
* Fix stage3b (split to stage3b_lxde and stage3b_kde alternatives); Misc changes:Sven Gothel2021-07-181-3/+4
| | | | | - GRUB image rename to declare architecture: data/grub-image01.bin -> data/grub-i386-image01.bin - scripts/make_dualboot_image.sh: Let user chose denomination, i.e. G for GiB or M for MiB
* multi-arch/boot: Handle GRUB boot-code images, showcase full feature via ↵Sven Gothel2021-07-181-0/+61
'make_dualboot_image' 'make_dualboot_image' creates a new raw image file: - creating one vfat partition covering whole size - formating partition with vfat - provision GRUB boot-code (expecting 'grub' folder on vfat partition) - copy custom files to vfat partition using image file handling via NBD (updated imagetool.sh). The custom files are sourced from two sdcard diskimages folder generated with our pi-gen branch: - raspi arm64 - debian amd64 Simply copied both content into one merge folder, passed as last argument 'provisioning-dir' to this script. +++ Grub file handling takes care of both boot-code image locations, 446 bytes in MBR and the MBR gap from [512 bytes - partition-start[