logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

fiwix.sh (763B)


  1. #!/bin/sh
  2. #
  3. # SPDX-FileCopyrightText: 2023 fosslinux <fosslinux@aussies.space>
  4. #
  5. # SPDX-License-Identifier: GPL-3.0-or-later
  6. set -ex
  7. # Build the ext2 image
  8. # 1392640 = 1360 MB
  9. make_fiwix_initrd -s 1381376 /boot/fiwix.ext2
  10. # Boot Fiwix
  11. # 199680 = 195 MB
  12. # as of 2024-05-27, Initrd = ~183 MB, kernel = ~10.5MB for Linux
  13. if match x${BARE_METAL} xTrue; then
  14. kexec-fiwix /boot/fiwix -i /boot/fiwix.ext2 -m /e820 -c "fiwix console=/dev/tty1 root=/dev/ram0 initrd=fiwix.ext2 kexec_proto=linux kexec_size=199680 kexec_cmdline=\"init=/init consoleblank=0\""
  15. else
  16. kexec-fiwix /boot/fiwix -i /boot/fiwix.ext2 -m /e820 -c "fiwix console=/dev/ttyS0 root=/dev/ram0 initrd=fiwix.ext2 kexec_proto=linux kexec_size=199680 kexec_cmdline=\"init=/init console=ttyS0\""
  17. fi