mirror of
https://github.com/johndoe6345789/SparkOS.git
synced 2026-04-24 13:34:56 +00:00
Remove redundant conditional for initrd copying in old script
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -124,12 +124,9 @@ echo "Copying bootloader files..."
|
|||||||
guestfish -a /output/sparkos.img -m /dev/sda1 <<EOF
|
guestfish -a /output/sparkos.img -m /dev/sda1 <<EOF
|
||||||
copy-in /staging/esp/EFI/BOOT/BOOTX64.EFI /EFI/BOOT/
|
copy-in /staging/esp/EFI/BOOT/BOOTX64.EFI /EFI/BOOT/
|
||||||
copy-in /staging/esp/boot/vmlinuz /boot/
|
copy-in /staging/esp/boot/vmlinuz /boot/
|
||||||
|
copy-in /staging/esp/boot/initrd.img /boot/
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [ -f "/staging/esp/boot/initrd.img" ]; then
|
|
||||||
guestfish -a /output/sparkos.img -m /dev/sda1 copy-in /staging/esp/boot/initrd.img /boot/
|
|
||||||
fi
|
|
||||||
|
|
||||||
guestfish -a /output/sparkos.img -m /dev/sda1 <<EOF
|
guestfish -a /output/sparkos.img -m /dev/sda1 <<EOF
|
||||||
copy-in /staging/esp/boot/grub/grub.cfg /boot/grub/
|
copy-in /staging/esp/boot/grub/grub.cfg /boot/grub/
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user