iPXE with multiple initrd permissions
|
2012-07-31, 22:15
Post: #1
|
|||
|
|||
iPXE with multiple initrd permissions
I've been messing around with iPXE for a little while now, trying to get various aspects figured out, and one thing I'm having trouble with is booting with multiple initrd commands...
Code: #!ipxe If anyone could point me in the right direction on permissions with extra files loaded with initrd I'd appreciate it. |
|||
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 That should avoid the execute bit problem. |
|||
2012-08-01, 17:27
Post: #3
|
|||
|
|||
RE: iPXE with multiple initrd permissions
It looks like I'll have to use that sort of workaround for the time being. After some digging it appears that when you pull down a file with initrd it does not preserve the meta-data, so everything is just being reset by the umask of the system that boots. I'll write something up in the dev mailing list just to see if this is something that might make its way into production.
|
|||
2012-08-03, 15:12
Post: #4
|
|||
|
|||
RE: iPXE with multiple initrd permissions
The dev mailing list did an amazing job of exceeding my expectations and Michael Brown resolved the issue by adding the mode=755 feature to the initrd command. http://git.ipxe.org/ipxe.git/commitdiff/d97c6a3
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)