Skip to content
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

Several improvements for alpine initramfs #484

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

Itxaka
Copy link
Member

@Itxaka Itxaka commented Oct 11, 2023

  • add real blkid to initramfs (otherwise busybox blkid does not work)
  • add dmsetup to initramfs for encryopted volumes
  • add /usr/lib/udev files which have uidev rules for dm devices
  • add openrc/openrc-run binaries to initramfs (needed for checks of init system by yip)
  • add cryptsetup to initramfs
  • add kms to initramfs
  • add mmc to initramfs
  • add xfs to initramfs
  • add missing kairos-agent to rpi kernel package
  • add missing packages to install
  • generate hwdb for udev
  • stop udev before switching root (openrc will launch udev service)
  • add more items to modprobe
  • add facility to drop on an emergency shell in different places of initramfs, dracut style. The following places are supported by setting the value rd.break=$STAGE to the kernel cmdline:
    • pre-modprobe
    • post-modprobe
    • pre-udev
    • post-udev
    • pre-network
    • post-network
    • pre-netboot
    • post-netboot
    • pre-livecd
    • post-livecd
    • pre-mounts
    • post-mounts
    • pre-immucore
    • post-immucore
    • pre-binds
    • post-binds
    • pre-console
    • post-console
    • pre-switch

Please check the initramfs script to see where exactly this points happen. They are presented in the order they are executed.

 - add real blkid to initramfs (otherwise busybox blkid does not work)
 - add dmsetup to initramfs for encryopted volumes
 - add /usr/lib/udev files which have uidev rules for dm devices
 - add openrc/openrc-run binaries to initramfs (needed for checks of
   init system by yip)
 - add cryptsetup to initramfs
 - add kms to initramfs
 - add mmc to initramfs
 - add xfs to initramfs
 - add missing kairos-agent to rpi kernel package
 - add missing packages to install
 - generate hwdb for udev
 - stop udev before switching root (openrc will launch udev service)
 - add more items to modprobe
 - add facility to drop on an emergency shell in different places of
   initramfs, dracut style. The following places are supported by
setting the value `rd.break=$STAGE` to the kernel cmdline:
   - pre-modprobe
   - post-modprobe
   - pre-udev
   - post-udev
   - pre-network
   - post-network
   - pre-netboot
   - post-netboot
   - pre-livecd
   - post-livecd
   - pre-mounts
   - post-mounts
   - pre-immucore
   - post-immucore
   - pre-binds
   - post-binds
   - pre-console
   - post-console
   - pre-switch

Please check the initramfs script to see where exactly this points
happen. They are presented in the order they are executed.

Signed-off-by: Itxaka <[email protected]>
@Itxaka Itxaka requested a review from a team October 11, 2023 14:18
@Itxaka
Copy link
Member Author

Itxaka commented Oct 11, 2023

merging directly, although important information tog ain by reading this cc @kairos-io/maintainers

@Itxaka Itxaka merged commit 030e223 into kairos-io:main Oct 11, 2023
1 of 3 checks passed
@Itxaka Itxaka deleted the extend_alpine_initramfs branch October 11, 2023 14:18
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.

1 participant