From 8cd7142d9725251a39a203816f3cd26bc644b36b Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Tue, 17 Jan 2023 11:48:50 -0800 Subject: [PATCH] remove iso/ prefix from disk filename Signed-off-by: Arthur Lu --- scripts/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config.js b/scripts/config.js index 867295b..3d53cf9 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -220,7 +220,7 @@ function parseDisk (disk) { // disk in format: STORAGE: FILENAME, ARG1=..., ARG2 let parsed = {}; let kvpairs = disk.split(","); parsed.storage = kvpairs[0].split(":")[0]; - parsed.filename = kvpairs[0].split(":")[1]; + parsed.filename = kvpairs[0].split(":")[1].replace("iso/", ""); kvpairs.shift(); kvpairs.forEach((element) => { let key = element.split("=")[0];