#52 align boot partition with correct MiB value
Merged 6 months ago by ngompa. Opened 6 months ago by leifliddy.
Unknown source rawhide  into  rawhide

align boot partition with GiB
Leif Liddy • 6 months ago  
file modified
+1 -1
@@ -6,7 +6,7 @@

  		</profile>

  	</profiles>

  	<preferences profiles="Minimal">

- 		<type image="oem" filesystem="btrfs" kernelcmdline="" target_blocksize="4096" bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" efipartsize="500" firmware="uefi" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" rootfs_label="fedora" fsmountoptions="x-systemd.growfs,compress=zstd:1">

+ 		<type image="oem" filesystem="btrfs" kernelcmdline="" target_blocksize="4096" bootpartition="true" bootpartsize="1024" bootfilesystem="ext4" efipartsize="500" firmware="uefi" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" rootfs_label="fedora" fsmountoptions="x-systemd.growfs,compress=zstd:1">

  			<bootloader name="grub2" console="none" timeout="5" timeout_style="menu"/>

  			<systemdisk name="fedora">

  				<volume name="@root=root"/>

file modified
+1 -1
@@ -6,7 +6,7 @@

  		</profile>

  	</profiles>

  	<preferences profiles="Server">

- 		<type image="oem" filesystem="btrfs" kernelcmdline="" target_blocksize="4096" bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" efipartsize="500" firmware="uefi" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" rootfs_label="fedora" fsmountoptions="x-systemd.growfs,compress=zstd:1">

+ 		<type image="oem" filesystem="btrfs" kernelcmdline="" target_blocksize="4096" bootpartition="true" bootpartsize="1024" bootfilesystem="ext4" efipartsize="500" firmware="uefi" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" rootfs_label="fedora" fsmountoptions="x-systemd.growfs,compress=zstd:1">

  			<bootloader name="grub2" console="none" timeout="5" timeout_style="menu"/>

  			<systemdisk name="fedora">

  				<volume name="@root=root"/>

file modified
+1 -1
@@ -14,7 +14,7 @@

  		</profile>

  	</profiles>

  	<preferences profiles="WorkstationCommon">

- 		<type image="oem" filesystem="btrfs" kernelcmdline="rhgb quiet" target_blocksize="4096" bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" efipartsize="500" firmware="uefi" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" rootfs_label="fedora" fsmountoptions="x-systemd.growfs,compress=zstd:1">

+ 		<type image="oem" filesystem="btrfs" kernelcmdline="rhgb quiet" target_blocksize="4096" bootpartition="true" bootpartsize="1024" bootfilesystem="ext4" efipartsize="500" firmware="uefi" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" rootfs_label="fedora" fsmountoptions="x-systemd.growfs,compress=zstd:1">

  			<bootloader name="grub2" console="console" timeout="1" timeout_style="hidden"/>

  			<systemdisk name="fedora">

  				<volume name="@root=root"/>

Currently the boot partitions are set at 1000MiB ie
bootpartsize="1000"

When it should be 1024 MiB
1000 MiB is not equal to to 1GiB (but 1024 Mib is)

This is the logic that anaconda has been using for ages.

Pull-Request has been merged by ngompa

6 months ago

Does this mean you need to fix the efi size too?

No 500MiB is equal to 524288000 -- which is what's in installer_data.json -- so we're good there.