From: Ralph Ronnquist Date: Mon, 28 Apr 2025 05:51:12 +0000 (+1000) Subject: Correction for better excalibur building X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=8f71d23470ee9cc48fabb6a34c86a9275199de97;p=rrq%2Ftiniest.git Correction for better excalibur building --- diff --git a/mkit.sh b/mkit.sh index c52cba2..2bb7ed5 100755 --- a/mkit.sh +++ b/mkit.sh @@ -17,7 +17,7 @@ DEPFILE=save/mapdepends.txt REPOS=( deb.devuan.org/merged_excalibur_main - deb.devuan.org/merged_ceres_main + #deb.devuan.org/merged_ceres_main ) ARCH="amd64" MBR=dos # gpt @@ -52,7 +52,7 @@ $1=="Filename:" {print P,$2 >> MAP;next } done # Append any additional saved deb files -for DEB in save/*.deb ; do +for DEB in $(ls save/*.deb 2>/dev/null); do P="${DEB%%_*}" P="${P#save/}" echo "$P save/$DEB" >> $MAPFILE @@ -208,13 +208,11 @@ echo "# Include some kernel modules in the initrd" MODULES=( # disk scsi_common scsi_mod libata ata_piix ata_generic cdrom sr_mod - crc32-pclmul crct10dif_common crc-t10dif crc64 crc64-rocksoft - t10-pi sd_mod sg - nls_cp437 nls_ascii fat vfat - crc32c_generic jbd2 mbcache crc16 ext4 + crc32-pclmul crc32c_generic crc16 + #crct10dif_common crc-t10dif crc64 crc64-rocksoft t10-pi + sd_mod sg nls_cp437 nls_ascii fat vfat jbd2 mbcache ext4 usb-storage usbcore usb-common xhci-pci xhci-hcd - isofs exfat loop - efivarfs + isofs exfat loop efivarfs # input psmouse evdev # network @@ -263,44 +261,56 @@ echo '### Step 3. create a 32 Mb fat filesystem with bios and UEFI boot' rm -f bootimage.raw dd if=/dev/zero of=bootimage.raw bs=32M count=1 +EFILDR="kernel/usr/lib/SYSLINUX.EFI/efi64/syslinux.efi" +EFIMODS="kernel/usr/lib/syslinux/modules/efi64/*" +LCYMODS="kernel/usr/lib/syslinux/modules/bios/*" +VMLINUZ="kernel/boot/vm*" + +SIZE=$(du -c $EFILDR $EFIMODS $LCYMODS $VMLINUZ \ + initrd.gz splash.png syslinux-legacy.cfg \ + muffin.lua syslinux-uefi.cfg | sed '$!d;s|\s.*||' ) +echo "du = $SIZE kb" +SIZE=$(( ( ( 2 * SIZE + 4096 ) / 2048 ) * 2048 )) +echo "SIZE = $SIZE sectors" + # Prepare a gpt/dos partition table with a first partition marked as EFI sfdisk bootimage.raw <