fix: resize for raid device, ensure vars like kiwi_RaidDev are loaded… #2872
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ensure var kiwi_RaidDev var is loaded before looking up disk.
Fixes # Resize operation with mirroring activated and oem-systemsize set.
The resize operation currently does not work for mirroring/raid root disks:
/run/initiramfs/log/kiwi.boot :
Because $kiwi_RaidDev is unset for the lookup_disk_device_from_root function:
/run/initiramfs/log/kiwi.boot excerpt during failed resize:
$RaidDev is empty in ['-z' ''] <--missing kiwi_RaidDev var
/run/initiramfs/log/kiwi.boot excerpt previously working, the disk was evaltued to vda:
Changes proposed in this pull request:
Lookup root disk device after loading partition id setup (with var kiwi_RaidDev).
This works for me, but I'm not sure if you even want to run lookup_disk_device_from_root without kiwi_RaidDev variable set in case partition_ids=/config.partids does not exit.
Maybe lookup_disk_device_from_root should not use vars from .config.partids.