-
Notifications
You must be signed in to change notification settings - Fork 152
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
boot_clone/root_clone and partitions size #2463
Comments
by the way, image produced is not usable. |
Hmm, I have to check why the root clone differs, that's weird |
why ? does not boot ? |
Partitions are present but nothing inside. When try to mount it, I have an error:
|
Ok the problem why this is not bootable is not related to the cloning but related to the extra boot partition. See the following build test which also provides an explanation to the issue which is imho not related to kiwi but can be "fixed" as part of the image description. |
That part I don't see, everything is mountable in my test. I copy/paste your type and build my example
and I can mount all of them (except 0p1 which is expected) |
but the size for root is wrong, I'm looking into that part first |
looks expected |
ok I found the issue. The problem is that you did not had specified a size for the root partition. Without a size for the root part kiwi estimates the size needed for the root part and assigns the rest to the clone. It will never be the exact same and that's bad. Actually we should have a runtime check to indicate this issue. So if you specify your type as follows the cloning will be correct: <type image="oem" root_clone="1" boot_clone="1" firmware="uefi" filesystem="xfs" bootpartition="true" bootfilesystem="ext4">
<partitions>
<partition name="vti_data" size="1G" mountpoint="/opt/veintree" filesystem="xfs"/>
<partition name="vti_logs" size="2G" mountpoint="/var/log/veintree" filesystem="xfs"/>
</partitions>
<oemconfig>
<!-- set root partition to 2048MB -->
<oem-systemsize>2048</oem-systemsize>
<oem-resize>false</oem-resize>
</oemconfig>
<size unit="G">32</size>
</type> The system booted up looks like this then
The overall disk has 32G, the two root partitions have 2G this also means at the end of your disk there is plenty space free Hope this helps |
Also important to mention, if you clone root, we no longer support resize. This is because you can only resize the last partition of the root clone and the other would not be resizable without destroying data. Thus resize is disabled |
kiwi could also use half of the remaining space for each of the root clones. |
yes true, but needs a refactor and half of something could be an issue regarding the end of disk and the partition alignment |
if you want 100% clone exactly bytewise |
Problem description
when using boot_clone=1 and root_clone=1 size of the partition is not correct :
Expected behaviour
Steps to reproduce the behaviour
OS and Software information
The text was updated successfully, but these errors were encountered: