Skip to content

Conversation

@imlk0
Copy link
Collaborator

@imlk0 imlk0 commented Dec 25, 2025

When --uki is specified, a separate /boot partition is no longer required. This change adjusts multiple steps in the conversion process to handle boot files directly from the root filesystem or skip boot partition setup entirely.

Key changes:

  • Skip extracting /boot to a separate partition when UKI mode is enabled
  • Do not create a physical boot partition on disk
  • Adjust LVM partition start sector: reuse original root partition number and layout when no boot partition is created
  • Conditionally update /etc/fstab only if not in UKI mode
  • Update chroot mount logic to skip mounting /boot if using UKI
  • Pass 'uki' flag through step:update_rootfs and other functions
  • Handle empty boot_part in step:update_initrd for UKI mode

This simplifies disk layout in UKI scenarios and aligns with modern single-image boot practices.

When --uki is specified, a separate /boot partition is no longer required.
This change adjusts multiple steps in the conversion process to handle
boot files directly from the root filesystem or skip boot partition setup
entirely.

Key changes:
- Skip extracting /boot to a separate partition when UKI mode is enabled
- Do not create a physical boot partition on disk
- Adjust LVM partition start sector: reuse original root partition number
  and layout when no boot partition is created
- Conditionally update /etc/fstab only if not in UKI mode
- Update chroot mount logic to skip mounting /boot if using UKI
- Pass 'uki' flag through step:update_rootfs and other functions
- Handle empty boot_part in step:update_initrd for UKI mode

This simplifies disk layout in UKI scenarios and aligns with modern
single-image boot practices.

Signed-off-by: Kun Lai <laikun@linux.alibaba.com>
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