illiliti / tinyramfs

Tiny initramfs written in POSIX shell
GNU General Public License v3.0
102 stars 20 forks source link

live hooks #17

Closed eudaldgr closed 10 months ago

eudaldgr commented 3 years ago

First try to merge this with tinyramfs. It only add support for overlayfs, but maybe works with aufs.

illiliti commented 3 years ago

Thanks for the PR. This change requires adding appropriate docs to man pages. Would you mind doing this ?

eudaldgr commented 3 years ago

I want to do, but before i would know your opinion or if i miss something or you don't want my hook. Now i will work with the man pages, if you agree.

eudaldgr commented 3 years ago

Well, man pages modified, what do you think about this PR?

illiliti commented 3 years ago

That's much better! There are some nitpicks that need to be fixed before i merge this

eudaldgr commented 3 years ago

Well, in fact i don't use this hook anymore for my kiss livecd so i won't maintain this anymore, but i believe that there is a lot to do to improve it.

EDIT: it works as it is, but I think there is room for improvement.

apprehensions commented 2 years ago

@eudaldgr , your kiss livecd is mounted from a cdrom. tinyramfs does not include cdrom kernel drivers, how does it get mounted?

eudaldgr commented 2 years ago

@eudaldgr , your kiss livecd is mounted from a cdrom. tinyramfs does not include cdrom kernel drivers, how does it get mounted?

The modules are copied from host kernel modules, you need to compile your kernel with cdrom enabled as a module. This hook are unmantained, I made a live hook diskless for tinyramfs more simple, check it here

apprehensions commented 2 years ago

my workaround was having a hook do copy_kmod cdrom.

eudaldgr commented 2 years ago

my workaround was having a hook do copy_kmod cdrom.

When I opened this PR the implementation of tinyramfs was copy_module $_mod now it seems to be copy_kmod $_mod.

It needs improvement from conception.

firasuke commented 8 months ago

This is a very interesting PR for tinyramfs, and its approach for getting live boot to work is more distro-agnostic than what kiss-live is doing (which is having base tarballs and extracting them upon booting, which is slow...).

@eudaldgr I am wondering if you might consider opening it again, as I have written a similar proposal for booster, because apparently having an initramfs that works in live environments is hard, and I am interested in trying to get this working with your help.

eudaldgr commented 8 months ago

This is a very interesting PR for tinyramfs, and its approach for getting live boot to work is more distro-agnostic than what kiss-live is doing (which is having base tarballs and extracting them upon booting, which is slow...).

@eudaldgr I am wondering if you might consider opening it again, as I have written a similar proposal for booster, because apparently having an initramfs that works in live environments is hard, and I am interested in trying to get this working with your help.

I am no longer working on this, feel free to (re-)open a similar pull request yourself if you are so interested.