Commit ba53ea3
committed
feat(container): add finalize-rootfs subcommand for building base images
Add bootc container finalize-rootfs and bootc container post-chroot-cleanup
subcommands that transform a dnf --installroot rootfs into a bootc-compatible
layout without requiring rpm-ostree.
Transforms: toplevel symlinks, /var->tmpfiles.d, rpmdb relocation, config
injection (prepare-root.conf, dracut.conf.d, kernel install.conf).
Validated end-to-end: Fedora 42 image boots to login in 41s, bootc status
works, reboot succeeds, 12/12 lint checks pass.
Signed-off-by: Andrew Dunn <andrew@dunn.dev>1 parent 5cbb111 commit ba53ea3
3 files changed
Lines changed: 626 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
466 | 495 | | |
467 | 496 | | |
468 | 497 | | |
| |||
1712 | 1741 | | |
1713 | 1742 | | |
1714 | 1743 | | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
1715 | 1750 | | |
1716 | 1751 | | |
1717 | 1752 | | |
| |||
0 commit comments