From 9f9fad29ae47bc51b06173ad9e69c07ffa284bab Mon Sep 17 00:00:00 2001 From: zyb Date: Fri, 19 Jul 2024 10:27:40 +0800 Subject: [PATCH] modified: .github/workflows/mikrotik_patch_6.yml modified: .github/workflows/mikrotik_patch_7.yml --- .github/workflows/mikrotik_patch_6.yml | 6 ++++-- .github/workflows/mikrotik_patch_7.yml | 12 ++++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/mikrotik_patch_6.yml b/.github/workflows/mikrotik_patch_6.yml index 6ec7be1..cdf8d62 100644 --- a/.github/workflows/mikrotik_patch_6.yml +++ b/.github/workflows/mikrotik_patch_6.yml @@ -135,8 +135,10 @@ jobs: sudo mkdir ./install sudo mount /dev/nbd0 ./install sudo extlinux --install -H 64 -S 32 ./install/ - sudo echo -e 'default system\nLABEL system\n\tKERNEL linux\n\tAPPEND load_ramdisk=1 initrd=initrd.rgz -hdd-install' \ - > ./install/syslinux.cfg + echo -e 'default system\nLABEL system\n\tKERNEL linux\n\tAPPEND load_ramdisk=1 initrd=initrd.rgz -hdd-install' \ + > syslinux.cfg + sudo cp syslinux.cfg ./install/ + sudo rm syslinux.cfg NPK_FILES=($(find ./all_packages/*.npk)) for ((i=1; i<=${#NPK_FILES[@]}; i++)) do diff --git a/.github/workflows/mikrotik_patch_7.yml b/.github/workflows/mikrotik_patch_7.yml index 7f5df3a..6d50277 100644 --- a/.github/workflows/mikrotik_patch_7.yml +++ b/.github/workflows/mikrotik_patch_7.yml @@ -243,11 +243,15 @@ jobs: sudo unzip refind-bin-0.14.2.zip refind-bin-0.14.2/refind/refind_x64.efi sudo cp refind-bin-0.14.2/refind/refind_x64.efi ./install/EFI/BOOT/BOOTX64.EFI sudo rm -rf refind-bin-0.14.2 - sudo echo -e 'timeout 0\ntextonly\ntextmode 0\nshowtools shutdown, reboot, exit\nmenuentry "Install RouterOS" {\n\tloader /linux\n\toptions "load_ramdisk=1 root=/dev/ram0 -install -hdd"\n}\ndefault_selection /EFI/BOOT/BOOTX64.EFI' \ - > ./install/EFI/BOOT/refind.conf + echo -e 'timeout 0\ntextonly\ntextmode 0\nshowtools shutdown, reboot, exit\nmenuentry "Install RouterOS" {\n\tloader /linux\n\toptions "load_ramdisk=1 root=/dev/ram0 -install -hdd"\n}\ndefault_selection /EFI/BOOT/BOOTX64.EFI' \ + > refind.conf + sudo cp refind.conf ./install/EFI/BOOT/ + sudo rm refind.conf sudo extlinux --install -H 64 -S 32 ./install/ - sudo echo -e 'default system\nLABEL system\n\tKERNEL linux\n\tAPPEND load_ramdisk=1 -install -hdd' \ - > ./install/syslinux.cfg + echo -e 'default system\nLABEL system\n\tKERNEL linux\n\tAPPEND load_ramdisk=1 -install -hdd' \ + > syslinux.cfg + sudo cp syslinux.cfg ./install/ + sudo rm syslinux.cfg sudo cp ./BOOTX64.EFI ./install/linux NPK_FILES=($(find ./all_packages/*.npk)) for ((i=1; i<=${#NPK_FILES[@]}; i++))