Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iPXE with multiple initrd permissions
2012-08-01, 15:18
Post: #2
RE: iPXE with multiple initrd permissions
As far as I know, setting ownership and/or permissions on the file loaded this way is not supported.

Most likely the most correct way to implement this is to make chown and chmod equivalent commands in iPXE, but I'm unsure how complicated that would be. I think this is a question more suited for the developer mailing-list.

A workaround is to create a script on the initrd that changes the permissions of /opt/bootlocal.sh before it tries to execute it, or invokes it explicitly with the shell, like this:

Code:
$ /bin/sh /opt/bootlocal.sh
$ /opt/bootlocal.sh # NOT THIS WAY

That should avoid the execute bit problem.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: iPXE with multiple initrd permissions - robinsmidsrod - 2012-08-01 15:18



User(s) browsing this thread: 1 Guest(s)