Re: Shebang
On Fri, Feb 08, 2019 at 04:39:27PM -0700, Michal Jaegermann wrote: > On Fri, Feb 08, 2019 at 04:56:12PM -0500, pmkel...@frontier.com wrote: > > looks like a shebang is a way to make hard path > > reference to an executable like bash. Is this right or have I missed > > something? > > You missed something. Samuel Sieb already replied with > reference. You may use it like > > #!/usr/bin/env bash > > which will look for bash in your PATH and similar with > other interpreters. > > > I thought people were trying to get hard coded paths out of their > > code. > > Usually you DO NOT want to execute a program called > 'bash' found somewhere instead of /bin/bash. A script writer does not > control what will be found first in PATH. > > Besides in the above you need '#!/usr/bin/env' as kernel knows nothing > about PATH. You can more often encounter '#!/usr/bin/env python' > or something like that; this give more flexibility which 'python' > to use with trade-offs involved. Current Fedora packaging guidelines prohibit using tricks like #!/usr/bin/env perl, instead requiring #!/usr/bin/perl hardcoded paths for all scripts packaged and distributed with Fedora. In fact, the build process will fixup script shebang lines automatically. https://pagure.io/packaging-committee/issue/700 https://docs.fedoraproject.org/en-US/packaging-guidelines/#_shebang_lines ___ test mailing list -- test@lists.fedoraproject.org To unsubscribe send an email to test-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/test@lists.fedoraproject.org
Re: proposal: drop optical media from release criteria
On Thu, Sep 20, 2018 at 05:13:42PM -0400, Robert Moskowitz wrote: > > > On 9/20/18 5:05 PM, Anderson, Charles R wrote: > > On Thu, Sep 20, 2018 at 04:48:25PM -0400, Robert Moskowitz wrote: > > > > > > On 9/20/18 4:34 PM, Anderson, Charles R wrote: > > > > On Thu, Sep 20, 2018 at 08:29:24PM +, Rick Stevens wrote: > > > > > Some of these beasties are of, well, "older" vintage and are unable to > > > > > boot USB media natively. They can boot some USB-based and most > > > > > IDE-based > > > > > CD/DVD drives. I'd love to replace them with newer systems but am > > > > > unable > > > > > to unless they actually die an ugly and permanent death. I have to > > > > > justify the cost and replacing them "just because they're old" doesn't > > > > > fly with our cost accountants. I'm stuck with them. > > > > Do they not support PXE booting? If not, can you boot a CD that > > > > contains a PXE boot loader? > > > > > > > PXE boot Set up a PXE server? And that has to be on the local subnet > > > or you have to set up forwarding on your router? YIKES! > > No it does not have to be on the same subnet, nor does it need any special > > forwarding on the router. All you need is a couple DHCP options set on > > your DHCP server and a TFTP server anywhere on your network to hold the > > pxelinux.0 and vmlinuz/initrd images. > > Oh yes. DHCP option. Shows how long ago I did it and forgot this. My bad. > > > > > > But then I have avoided PXE boot for a decade or more for the above > > > reasons. > > You've been missing out. I love being able to boot today's rawhide without > > waiting for any media to burn. > > When I get an affordable armv8 board, I will revisit this. There is also iPXE which can boot over the Internet from a CD-ROM: http://ipxe.org/start And this, but I'm not sure it is being updated anymore: https://boot.fedoraproject.org/index ___ test mailing list -- test@lists.fedoraproject.org To unsubscribe send an email to test-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/test@lists.fedoraproject.org
Re: proposal: drop optical media from release criteria
On Thu, Sep 20, 2018 at 04:48:25PM -0400, Robert Moskowitz wrote: > > > On 9/20/18 4:34 PM, Anderson, Charles R wrote: > > On Thu, Sep 20, 2018 at 08:29:24PM +, Rick Stevens wrote: > > > Some of these beasties are of, well, "older" vintage and are unable to > > > boot USB media natively. They can boot some USB-based and most IDE-based > > > CD/DVD drives. I'd love to replace them with newer systems but am unable > > > to unless they actually die an ugly and permanent death. I have to > > > justify the cost and replacing them "just because they're old" doesn't > > > fly with our cost accountants. I'm stuck with them. > > Do they not support PXE booting? If not, can you boot a CD that contains a > > PXE boot loader? > > > > PXE boot Set up a PXE server? And that has to be on the local subnet > or you have to set up forwarding on your router? YIKES! No it does not have to be on the same subnet, nor does it need any special forwarding on the router. All you need is a couple DHCP options set on your DHCP server and a TFTP server anywhere on your network to hold the pxelinux.0 and vmlinuz/initrd images. > But then I have avoided PXE boot for a decade or more for the above reasons. You've been missing out. I love being able to boot today's rawhide without waiting for any media to burn. ___ test mailing list -- test@lists.fedoraproject.org To unsubscribe send an email to test-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/test@lists.fedoraproject.org
Re: proposal: drop optical media from release criteria
On Thu, Sep 20, 2018 at 08:29:24PM +, Rick Stevens wrote: > Some of these beasties are of, well, "older" vintage and are unable to > boot USB media natively. They can boot some USB-based and most IDE-based > CD/DVD drives. I'd love to replace them with newer systems but am unable > to unless they actually die an ugly and permanent death. I have to > justify the cost and replacing them "just because they're old" doesn't > fly with our cost accountants. I'm stuck with them. Do they not support PXE booting? If not, can you boot a CD that contains a PXE boot loader? ___ test mailing list -- test@lists.fedoraproject.org To unsubscribe send an email to test-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/test@lists.fedoraproject.org