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 KaOS #24

Open probonopd opened 7 years ago

probonopd commented 7 years ago

https://forum.kaosx.us/d/1365-how-to-boot-iso-from-hdd

Seems straightforward:

menuentry "KaOS ISO from HDD" { set isofile="/iso/KaOS-2016.01-x86_64.iso" loopback loop (hd0,1)$isofile linux (loop)/kdeos/boot/x86_64/kdeosiso kdeosisolabel=KAOS_20160112 img_dev=/dev/sda1 img_loop=$isofile initrd (loop)/kdeos/boot/x86_64/kdeosiso.img }

Seemingly this is a 1-person distribution which has its own(!) custom boot system, and even supports loop-booting in a no-nonsense way. Yay!

https://github.com/KaOSx/live-uefi

probonopd commented 7 years ago

@ShalokShalom want to try implementing it?

ShalokShalom commented 7 years ago

Sure sure

probonopd commented 7 years ago

Also see https://github.com/aguslr/multibootusb/blob/master/mbusb.d/kaos.d/generic.inc

probonopd commented 7 years ago

But there it says

menuentry "KaOS" { bootoptions="img_dev=$imgdevpath img_loop=$iso_path kdeosisodevice=/dev/loop0 earlymodules=loop kdeisolabel=$cd_label" linux (loop)/kdeos/boot/$arch/kdeosiso $bootoptions initrd (loop)/kdeos/boot/$arch/kdeosiso.img }

ShalokShalom commented 7 years ago

The implementation of this multi-boot USB installer is one month young. While the forums post is from one year ago. Both implementations are from people which are less involved into KaOS, from what I see.

probonopd commented 7 years ago

Official documentation seems to be lacking on the subject.

ShalokShalom commented 7 years ago

Who ever implements this:

Remember that there is no GNOME in KaOS, so implement solid mounting and blocking :-)

https://github.com/probonopd/SystemImageKit/blob/master/boot/42_liveiso#L41 https://github.com/probonopd/SystemImageKit/blob/master/boot/42_liveiso#L465

Solid will automount also, so a qdbus call to do the same like for GNOME is recommended.

probonopd commented 7 years ago

Can you explain a bit what you mean by "implement solid mounting and blocking"?

probonopd commented 7 years ago

Might probably be able to use udisks --inhibit-all-polling instead of gsettings set org.gnome.desktop.media-handling automount 'false'