Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: lid on September 11, 2014, 06:42:54 PM

Title: Question: can I use the same file in a user initrd?
Post by: lid on September 11, 2014, 06:42:54 PM
Hi,

Here is what I want to do:

I have an user-defined initrd (call it 2ndinitrd) and I pxebooted it along with the core.gz. Now I would like to add more starting commands in bootlocal.sh to configure some applications.
I would rather not touch the original core.gz. So I wonder if it's possible to add another /opt/bootlocal.sh in the 2ndinitrd. Will this create any conflict with the original bootlocal.sh?

Title: Re: Question: can I use the same file in a user initrd?
Post by: Misalf on September 11, 2014, 06:50:45 PM
Well, your edited bootlocal.sh will overwrite the original in RAM. So no conflict. You can do that with any file.
But a bootlocal.sh from a user backup will overwrite it, too. Also /opt will be included in backup by default