Skip to content

Conversation

@mchf
Copy link
Contributor

@mchf mchf commented Apr 10, 2025

Problem

NVMe devices not properly discovered after installation and reboot to the target

bsc#1238038

Solution

Copy needed pieces of the configuration to the target

Testing

  • Tested manually
  • updated testsuite

@mchf mchf force-pushed the nvme_copy_files branch from 5eb32d2 to 948994c Compare April 10, 2025 08:50
@mchf mchf force-pushed the nvme_copy_files branch from 50cefa3 to cc8e410 Compare April 10, 2025 18:26
@mchf mchf requested a review from ancorgs April 10, 2025 18:29
Copy link
Contributor

@ancorgs ancorgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, this looks good. Just some trivial requests on my side:

  • Squash all the current commits into one
  • Add some pointer somewhere to bug#1238038, either in a comment next to the filenames or in the commit message. So we can track why we started to copy these files.
  • Add changelog entry and version bump

@mchf mchf force-pushed the nvme_copy_files branch from cc8e410 to 8452b6f Compare April 11, 2025 09:09
@mchf mchf force-pushed the nvme_copy_files branch from 8452b6f to 7e7ffa7 Compare April 11, 2025 09:13
@mchf mchf requested a review from ancorgs April 11, 2025 09:14
@mchf
Copy link
Contributor Author

mchf commented Apr 11, 2025

In general, this looks good. Just some trivial requests on my side:

  • Squash all the current commits into one
  • Add some pointer somewhere to bug#1238038, either in a comment next to the filenames or in the commit message. So we can track why we started to copy these files.
  • Add changelog entry and version bump

Updated & rebased. However I'm not sure about raising the version ... you mean in rubygem*.spec 12.devel16 -> 12.devel17 ?

@ancorgs
Copy link
Contributor

ancorgs commented Apr 11, 2025

  • Add changelog entry and version bump

Updated & rebased. However I'm not sure about raising the version ... you mean in rubygem*.spec 12.devel16 -> 12.devel17 ?

Never mind. It's not really needed. My fault.

Copy link
Contributor

@ancorgs ancorgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mchf mchf requested a review from ancorgs April 13, 2025 16:59
@mchf
Copy link
Contributor Author

mchf commented Apr 13, 2025

There was a bug in destination directory (was hardcoded) ... fixed & updated testsuite to cover that

@mchf mchf force-pushed the nvme_copy_files branch from 6304ac6 to 1dca627 Compare April 13, 2025 17:38
@mchf mchf force-pushed the nvme_copy_files branch from 1dca627 to 7e6a335 Compare April 13, 2025 17:56
Copy link
Contributor

@ancorgs ancorgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

FileUtils.mkdir_p(target)
FileUtils.cp(glob_files, target)
glob_files.each do |file|
target = File.dirname(file).sub(root_dir, dest_dir)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This relies in the fact that dest_dir includes a final slash. That is, is "/mnt/". It would not work if dest_dir is "/mnt" (without the trailing slash). But I guess we can live with that.

@mchf mchf merged commit 4d94f97 into master Apr 14, 2025
11 checks passed
@mchf mchf deleted the nvme_copy_files branch April 14, 2025 07:40
@imobachgs imobachgs mentioned this pull request Apr 22, 2025
imobachgs added a commit that referenced this pull request Apr 22, 2025
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Apr 23, 2025
https://build.opensuse.org/request/show/1272126
by user IGonzalezSosa + anag_factory
- Version 14

- Fixed detection of iBFT (bsc#1239046).
- Removed offload_card from iSCSI (bsc#1231385).

- bsc#1238038
  - copy NVMe configuration files from inst-sys to target
    (gh#agama-project/agama#2257).

- Allow to specify extra kernel parameters for bootloader
  (jsc#PED-10810)

- Add auto-installation support for iSCSI
 (gh#agama-project/agama#2231).

- Write the registration URL to the installed system (bsc#1239316).

- Make the extension version attribute optional, search the version
  automatically if it is missing (related to jsc#AGM-100)

- Allow to specify bootloader timeout in profile (jsc#PED-10810)

- Copy the hostname to the installed system if it exists
  (gh#agama-project/agama#2226).

- Properly map AutoYaST scripts "source" to "content"
- Always display the patterns
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.

3 participants