Skip to content

Conversation

@imlk0
Copy link
Collaborator

@imlk0 imlk0 commented Jan 21, 2026

No description provided.

The `objcopy` operation was failing with "No space left on device" when
patching the UKI file directly on a small EFI partition (/boot/efi).

Key changes:
1. Move dracut UKI generation and `objcopy` patching to `/tmp` to avoid
   partition size constraints.
2. Clean up existing EFI entries and `NvVars` earlier to release space.
3. Copy the finalized UKI image to the destination after patching is complete.

Signed-off-by: Kun Lai <laikun@linux.alibaba.com>
@imlk0 imlk0 force-pushed the fix-uki branch 2 times, most recently from cb2f780 to a4d0ac3 Compare January 21, 2026 13:27
- Mark the rootfs partition as read-only using `tune2fs -O read-only`.
- Automatically add `ro` and `noload` flags to the root partition in `/etc/fstab`.
- Ensure the fstab modification is idempotent and handles various formatting styles.

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