Works:
runs-on: ubuntu-24.04-arm
container:
image: ubuntu:latest
env:
DEBIAN_FRONTEND: noninteractive
steps:
- uses: actions/checkout@v4
- run: |
apt-get --assume-yes update
apt-get --assume-yes install linux-image-generic dracut binutils
- run: |
dracut --conf $(mktemp) \
--confdir $(mktemp --directory) \
--verbose \
--modules "base bash" \
--add-drivers "virtio-rng bcachefs btrfs virtiofs overlay xfs" \
--kernel-cmdline "console=hvc0" \
--no-early-microcode \
--no-hostonly \
--no-compress \
--no-uefi \
initramfs \
$(ls /lib/modules/)
- run: |
cp /boot/vmlinuz-$(ls /lib/modules/) vmlinuz
- uses: actions/upload-artifact@v4
with:
path: |
vmlinuz
initramfs
Will NOT work:
runs-on: ubuntu-24.04-arm
container:
image: ubuntu:latest
env:
DEBIAN_FRONTEND: noninteractive
steps:
- uses: actions/checkout@v4
- run: |
apt-get --assume-yes update
apt-get --assume-yes install linux-image-generic-64k dracut binutils
- run: |
dracut --conf $(mktemp) \
--confdir $(mktemp --directory) \
--verbose \
--modules "base bash" \
--add-drivers "virtio-rng bcachefs btrfs virtiofs overlay xfs" \
--kernel-cmdline "console=hvc0" \
--no-early-microcode \
--no-hostonly \
--no-compress \
--no-uefi \
initramfs \
$(ls /lib/modules/)
- run: |
cp /boot/vmlinuz-$(ls /lib/modules/) vmlinuz
- uses: actions/upload-artifact@v4
with:
path: |
vmlinuz
initramfs
You can try it on Github Actions