Open hant1311 opened 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
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.