probonopd / SystemImageKit

Run (multiple) operating systems directly from image files. Add extensions, apps and configuration, which are one file each.
MIT License
158 stars 24 forks source link

Support Gentoo #34

Open probonopd opened 6 years ago

probonopd commented 6 years ago

Gentoo releases a live DVD livedvd-x86-amd64-32ul-20160704.iso at https://www.gentoo.org/downloads/. How can this be booted with GRUB2 using loop-mount?

https://gist.github.com/smoke/47f5250b9e6f59a5d172#file-grub-cfg-L67-L77 suggests

menuentry 'Gentoo LiveDVD amd64 multilib ISO' --class gentoo {
  set gfxpayload=keep
  set isofile='/livedvd-amd64-multilib-20140826.iso'
  loopback loop $isofile
  linux (loop)/isolinux/gentoo root=/dev/ram0 init=/linuxrc aufs looptype=squashfs loop=/image.squashfs cdroot isoboot=$isofile vga=791 splash=silent,theme:default vconsole.keymap=$bootkeymap locale=$bootlang $modeset_opt $nox $acpi_opt console=tty1 quiet --
  echo 'Loading initial ramdisk ...'
  initrd (loop)/isolinux/gentoo.igz
}

Needed as a prerequisite for https://github.com/AppImage/AppImages/issues/311.

liu-kan commented 6 years ago

I think you should try to use SystemRescueCd as live cd as Gentoo. Which is based on Gentoo and with much newer version libs. than livedvd-x86-amd64-32ul-20160704.iso. The official gentoo live dvd is just help you boot the box and chroot to new environment to install the system.

Please remember than Gentoo offer 2 options for user as the init tool, openrc & systemd. And many users choose openrc.