Fix Dockerfile.image heredoc syntax to use printf instead

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-29 18:09:35 +00:00
parent d4f203f11f
commit f340afab35

View File

@@ -102,14 +102,14 @@ RUN mkdir -p /output /mnt/esp /mnt/root && \
\ \
# Create GRUB configuration # Create GRUB configuration
mkdir -p /mnt/esp/boot/grub && \ mkdir -p /mnt/esp/boot/grub && \
cat > /mnt/esp/boot/grub/grub.cfg << 'GRUB_EOF' && \ printf '%s\n' \
set timeout=3 'set timeout=3' \
set default=0 'set default=0' \
'' \
menuentry "SparkOS" { 'menuentry "SparkOS" {' \
linux /boot/vmlinuz root=LABEL=SparkOS rw init=/sbin/init console=tty1 quiet ' linux /boot/vmlinuz root=LABEL=SparkOS rw init=/sbin/init console=tty1 quiet' \
} '}' \
GRUB_EOF > /mnt/esp/boot/grub/grub.cfg && \
\ \
# Set up root filesystem # Set up root filesystem
echo "Setting up root filesystem..." && \ echo "Setting up root filesystem..." && \
@@ -139,28 +139,28 @@ GRUB_EOF
echo "spark:x:1000:" >> /mnt/root/etc/group && \ echo "spark:x:1000:" >> /mnt/root/etc/group && \
\ \
# Create README # Create README
cat > /mnt/root/README.txt << 'README_EOF' && \ printf '%s\n' \
SparkOS UEFI-Bootable Image 'SparkOS UEFI-Bootable Image' \
'' \
This is a UEFI-bootable disk image with: 'This is a UEFI-bootable disk image with:' \
- GPT partition table '- GPT partition table' \
- EFI System Partition (ESP) with FAT32 filesystem '- EFI System Partition (ESP) with FAT32 filesystem' \
- GRUB UEFI bootloader '- GRUB UEFI bootloader' \
- Linux kernel '- Linux kernel' \
- SparkOS init system '- SparkOS init system' \
- Busybox utilities '- Busybox utilities' \
'' \
The image can be written to a USB drive and booted on UEFI systems: 'The image can be written to a USB drive and booted on UEFI systems:' \
sudo dd if=sparkos.img of=/dev/sdX bs=4M status=progress ' sudo dd if=sparkos.img of=/dev/sdX bs=4M status=progress' \
sudo sync ' sudo sync' \
'' \
Boot options: 'Boot options:' \
- UEFI boot support (tested on x86_64 systems) '- UEFI boot support (tested on x86_64 systems)' \
- Automatic boot after 3 seconds '- Automatic boot after 3 seconds' \
- Console on tty1 '- Console on tty1' \
'' \
For more information, see: https://github.com/johndoe6345789/SparkOS 'For more information, see: https://github.com/johndoe6345789/SparkOS' \
README_EOF > /mnt/root/README.txt && \
\ \
# Sync and unmount # Sync and unmount
echo "Finalizing image..." && \ echo "Finalizing image..." && \