|
986 | 986 | fi
|
987 | 987 | fi
|
988 | 988 |
|
| 989 | + ls -la "$BUILD_OUTPUT/boot/dtbs/" |
| 990 | + |
989 | 991 | # we need to set "$BOOTID" before we invoke adjust_boot_files for the
|
990 | 992 | # first time, being inside grub_setup below
|
991 | 993 | if [ -n "$NO_BOOTID" ] ; then
|
@@ -1058,6 +1060,10 @@ else
|
1058 | 1060 |
|
1059 | 1061 | mkdir -p "${BUILD_OUTPUT}"/boot/addons
|
1060 | 1062 |
|
| 1063 | + mkdir -p "${BUILD_OUTPUT}"/boot/extlinux |
| 1064 | + cp "${TEMPLATE_DIRECTORY}"/boot/extlinux/extlinux.conf "${BUILD_OUTPUT}"/boot/extlinux/ |
| 1065 | + adjust_boot_files "${BUILD_OUTPUT}"/boot/extlinux/extlinux.conf |
| 1066 | + |
1061 | 1067 | if [ "$ARCH" != "arm64" ] ; then
|
1062 | 1068 | # copy _required_ isolinux files
|
1063 | 1069 | mkdir -p "${BUILD_OUTPUT}"/boot/isolinux
|
@@ -1476,7 +1482,7 @@ generate_build_info() {
|
1476 | 1482 |
|
1477 | 1483 | # ISO_OUTPUT - mkisofs {{{
|
1478 | 1484 | [ -n "$ISO_OUTPUT" ] || ISO_OUTPUT="$OUTPUT/grml_isos"
|
1479 |
| -[ -n "$ISO_NAME" ] || ISO_NAME="${GRML_NAME}_${VERSION}.iso" |
| 1485 | +[ -n "$ISO_NAME" ] || ISO_NAME="${GRML_NAME}_${VERSION}.img" |
1480 | 1486 |
|
1481 | 1487 | BOOT_ARGS="-no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -isohybrid-mbr ${CHROOT_OUTPUT}/usr/lib/ISOLINUX/isohdpfx.bin"
|
1482 | 1488 | EFI_ARGS="-eltorito-alt-boot -e boot/efi.img -no-emul-boot -isohybrid-gpt-basdat"
|
@@ -1515,14 +1521,20 @@ else
|
1515 | 1521 |
|
1516 | 1522 | cap_timestamps "$BUILD_OUTPUT"
|
1517 | 1523 |
|
1518 |
| - log "$MKISOFS -V '${GRML_NAME} ${VERSION}' -publisher 'grml-live | grml.org' -l -r -J $BOOT_ARGS $EFI_ARGS -o ${ISO_OUTPUT}/${ISO_NAME} ." |
1519 |
| - einfo "Generating ISO file..." |
1520 |
| - touch -d @"$SOURCE_DATE_EPOCH" "$BUILD_OUTPUT"/ |
1521 |
| - # shellcheck disable=SC2086 # BOOT_ARGS and EFI_ARGS need splitting |
1522 |
| - $MKISOFS -V "${GRML_NAME} ${VERSION}" -publisher 'grml-live | grml.org' \ |
1523 |
| - -l -r -J $BOOT_ARGS $EFI_ARGS \ |
1524 |
| - -o "${ISO_OUTPUT}/${ISO_NAME}" "$BUILD_OUTPUT"/ ; RC=$? |
1525 |
| - eend $RC |
| 1524 | + einfo "Generating ext4 disk image..." |
| 1525 | + /sbin/mke2fs -q -F -o Linux -E offset=16777216 -T ext4 -b 4096 -d "$BUILD_OUTPUT"/ "${ISO_OUTPUT}/${ISO_NAME}" 260000 |
| 1526 | + eend $? |
| 1527 | + einfo "Resizing disk image to make space for MBR..." |
| 1528 | + truncate --size=+512 "${ISO_OUTPUT}/${ISO_NAME}" |
| 1529 | + eend $? |
| 1530 | + einfo "Making MBR ..." |
| 1531 | + MBRTMP=$(mktemp) |
| 1532 | + echo 'label: dos |
| 1533 | + start=32768, size=2080000, type=83' > "$MBRTMP" |
| 1534 | + cat "$MBRTMP" |
| 1535 | + /sbin/sfdisk "${ISO_OUTPUT}/${ISO_NAME}" < "$MBRTMP" |
| 1536 | + eend $? |
| 1537 | + rm -f "$MBRTMP" |
1526 | 1538 |
|
1527 | 1539 | # do not continue on errors, otherwise we might generate/overwrite the ISO with dd if=... stuff
|
1528 | 1540 | if [ "$RC" != 0 ] ; then
|
|
0 commit comments