From 3047a7463e3c790cede5ce857effe7d8ce1113df Mon Sep 17 00:00:00 2001 From: Greyh4t <8017380+Greyh4t@users.noreply.github.com> Date: Sun, 7 Jan 2024 02:44:26 +0800 Subject: [PATCH 1/2] Update installer.sh --- userspace/ksud/src/installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/ksud/src/installer.sh b/userspace/ksud/src/installer.sh index 40138ae3b15a..c212d5a42bcf 100644 --- a/userspace/ksud/src/installer.sh +++ b/userspace/ksud/src/installer.sh @@ -313,7 +313,7 @@ handle_partition() { ui_print "- Handle partition /$1" # we create a symlink if module want to access $MODPATH/system/$1 # but it doesn't always work(ie. write it in post-fs-data.sh would fail because it is readonly) - mv -f $MODPATH/system/$1 $MODPATH/$1 && ln -sf ../$1 $MODPATH/system/$1 + mv -f $MODPATH/system/$1 $MODPATH/ && ln -sf ../$1 $MODPATH/system/$1 fi } From 2f9ddada9292d46f0f154c7c0d83c856cf6aa075 Mon Sep 17 00:00:00 2001 From: Greyh4t <8017380+Greyh4t@users.noreply.github.com> Date: Mon, 8 Jan 2024 13:38:37 +0800 Subject: [PATCH 2/2] Update installer.sh fix bug --- userspace/ksud/src/installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/ksud/src/installer.sh b/userspace/ksud/src/installer.sh index c212d5a42bcf..33e747a24119 100644 --- a/userspace/ksud/src/installer.sh +++ b/userspace/ksud/src/installer.sh @@ -313,7 +313,7 @@ handle_partition() { ui_print "- Handle partition /$1" # we create a symlink if module want to access $MODPATH/system/$1 # but it doesn't always work(ie. write it in post-fs-data.sh would fail because it is readonly) - mv -f $MODPATH/system/$1 $MODPATH/ && ln -sf ../$1 $MODPATH/system/$1 + cp -rf $MODPATH/system/$1 $MODPATH/ && rm -rf $MODPATH/system/$1 && ln -sf ../$1 $MODPATH/system/$1 fi }