File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 4949 make INSTALL_MOD_PATH=${{ github.workspace }}/iso/boot INSTALL_PATH=${{ github.workspace }}/iso/boot modules_install install
5050 ls -l ${{ github.workspace }}/iso/boot
5151
52+ # https://docs.kernel.org/filesystems/ramfs-rootfs-initramfs.html
53+ # https://docs.kernel.org/filesystems/ramfs-rootfs-initramfs.html#contents-of-initramfs
54+ - name : Create initramfs image
55+ run : |
56+ mkdir initramfs
57+ cat > hello.c << EOF
58+ #include <stdio.h>
59+ #include <unistd.h>
60+
61+ int main(int argc, char *argv[])
62+ {
63+ printf("Hello world!\n");
64+ sleep(999999999);
65+ }
66+ EOF
67+ gcc -static hello.c -o initramfs/init
68+ (cd initramfs; find . | cpio -o -H newc | gzip) > iso/boot/initramfs.cpio.gz
69+
5270 # https://www.gnu.org/software/grub/manual/grub/html_node/Making-a-GRUB-bootable-CD_002dROM.html
5371 - name : Make a GRUB bootable CD-ROM
5472 run : |
You can’t perform that action at this time.
0 commit comments