From eb48f87f3a37715bb86ef65fb6673e6f78b1623f Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 31 Aug 2024 14:13:28 -0400 Subject: [PATCH] ramdisk: fix Signed-off-by: AuxXxilium --- files/initrd/opt/arc/ramdisk-patch.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/files/initrd/opt/arc/ramdisk-patch.sh b/files/initrd/opt/arc/ramdisk-patch.sh index 06a94c5d8..f607cfb71 100755 --- a/files/initrd/opt/arc/ramdisk-patch.sh +++ b/files/initrd/opt/arc/ramdisk-patch.sh @@ -148,6 +148,7 @@ gzip -dc "${LKMS_PATH}/rp-${PLATFORM}-${KVERP}-${LKM}.ko.gz" >"${RAMDISK_PATH}/u # Addons echo "Create addons.sh" >"${LOG_FILE}" +rm -rf "${RAMDISK_PATH}/addons" >/dev/null 2>&1 || true mkdir -p "${RAMDISK_PATH}/addons" echo "#!/bin/sh" >"${RAMDISK_PATH}/addons/addons.sh" echo 'echo "addons.sh called with params ${@}"' >>"${RAMDISK_PATH}/addons/addons.sh"