pocopico / tinycore-redpill

GNU General Public License v3.0
2.17k stars 636 forks source link

Loader list and partition issue with Xen server #398

Open hant1311 opened 4 months ago

hant1311 commented 4 months ago

Describe the bug Code to detect the loader disk is not correct with VM run on Xen (Xcp-ng) server.

To Reproduce Boot to the loader, run rploader.sh and saw many error show that now partion mount, access denied (because wrong path)....

Expected behavior Everything run well.

Screenshots If applicable, add screenshots to help explain your problem.

hant1311 commented 4 months ago

I debugged by myself and saw the script to create the loaderdisk variable is not correct

loaderdisk="$(mount | grep -i optional | grep cde | awk -F / '{print $3}' | uniq | cut -c 1-3)"

it should be

loaderdisk="$(mount | grep -i optional | grep cde | awk -F / '{print $3}' | uniq | cut -c 1-4)"

because the partions in the Xen VM is something like this /dev/xdc -> /mnt/xdca1