Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loader list and partition issue with Xen server #398

Open
hant1311 opened this issue Jun 1, 2024 · 1 comment
Open

Loader list and partition issue with Xen server #398

hant1311 opened this issue Jun 1, 2024 · 1 comment

Comments

@hant1311
Copy link

hant1311 commented Jun 1, 2024

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
Copy link
Author

hant1311 commented Jun 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant