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

Fix failure when booting KIS via NBD #2329

Merged
merged 1 commit into from
Jul 20, 2023
Merged

Conversation

Glidos
Copy link
Contributor

@Glidos Glidos commented Jul 20, 2023

In the NBD booting case, the function initGlobalDevices in kiwi-overlay-root.sh runs the command ndb-client to connect the remote NBD share to the device /dev/nbd0. The script parse-kiwi-overlay.sh, on the other hand, incorrectly parses overlay:nbd=ip:export to /dev/ip/export, leading to the system waiting for /dev/ip/export to appear. This commit corrects the problem.

With this change NDB booting of KIS images now succeeds, although only if the ndb package is added to the appliance description.

In the NBD booting case, the function initGlobalDevices in
kiwi-overlay-root.sh runs the command ndb-client to connect the remote NBD
share to the device /dev/nbd0. The script parse-kiwi-overlay.sh, on the
other hand, incorrectly parses overlay:nbd=ip:export to /dev/ip/export,
leading to the system waiting for /dev/ip/export to appear. This commit
corrects the problem.

With this change NDB booting of KIS images now succeeds, although only if
the ndb package is added to the appliance description.
@schaefi
Copy link
Collaborator

schaefi commented Jul 20, 2023

yeah good catch 👍

as we explicitly set read_only_partition="/dev/nbd0" the direct device assignment is good. Thanks much

@schaefi schaefi merged commit e0c3451 into OSInside:master Jul 20, 2023
12 checks passed
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

Successfully merging this pull request may close these issues.

2 participants