WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Question: can I use the same file in a user initrd?  (Read 1504 times)

Offline lid

  • Jr. Member
  • **
  • Posts: 62
Question: can I use the same file in a user initrd?
« on: September 11, 2014, 03: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?


Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Question: can I use the same file in a user initrd?
« Reply #1 on: September 11, 2014, 03: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
« Last Edit: September 11, 2014, 03:54:44 PM by Misalf »
Download a copy and keep it handy: Core book ;)