DOCTEAM-2206 Issue in "SETTING UP THE MAIN grub.cfg FILE"#676
DOCTEAM-2206 Issue in "SETTING UP THE MAIN grub.cfg FILE"#676sounix000 wants to merge 2 commits into
Conversation
mtomaschewski
left a comment
There was a problem hiding this comment.
Cannot see if it's correct in the output or not.
| <screen>menuentry 'SLES-16.0 Online Installation' { | ||
| linux (http,pxe.example.net)/boot/images/SLES-16.0/${arch}/linux showopts root=live:http://pxe.example.net/boot/images/SLES-16.0/${arch}/squashfs.img ${ipcfg} ${sconsole} ${autoinstall} | ||
| initrd (http,pxe.example.net)/boot/images/SLES-16.0/${arch}/initrd | ||
| }</screen> |
There was a problem hiding this comment.
Yes, you can do it, but this is IMO not required and counterproductive, because it always breaks one of the protocols. Grub automatically prepends the (http,...) or (tfp,...) root to the paths.
| <screen>&prompt.sudo;<command>cat > /srv/tftpboot/boot/config/aa:bb:cc:dd:ee:ff/grub.cfg << 'EOF'</command> | ||
| # Machine-specific configuration for aa:bb:cc:dd:ee:ff | ||
| set default='SLES-16.0 Full Installation' | ||
| set default='SLES-16.0 Local Installation' |
There was a problem hiding this comment.
Without the resulting output, cannot see if this is correct or not. It must match the menuentry title or an ID assigned to it, see info grub.
I were able to locate a menuentry 'SLES-16.0 Auto-Installation' only.
There was a problem hiding this comment.
It seems, I found menuentry 'SLES-16.0 Local Installation' at
https://susedoc.github.io/doc-modular/SLE16.0/single-html/SLES-PXE-server/#sles-pxe-server-configure-grub2-menu
| If nginx still cannot serve files from <filename>/srv/install</filename>, the | ||
| directory may require additional &selnx; file context configuration. Run the | ||
| following commands to equivalence <filename>/srv/install</filename> to | ||
| <filename>/srv/www</filename> and restore the file context: | ||
| </para> | ||
| <screen>&prompt.sudo;<command>semanage fcontext -e /srv/www -a /srv/install</command></screen> | ||
| <screen>&prompt.sudo;<command>restorecon -RFv /srv/install/</command></screen> | ||
| <note> | ||
| <title>&selnx; file context for <filename>/srv/install</filename></title> | ||
| <para> | ||
| This step may be required in addition to | ||
| <command>setsebool -P httpd_serve_cobbler_files=1</command>. Use | ||
| <command>ausearch -m avc -ts recent</command> to check for &selnx; denials | ||
| before and after applying these changes. |
There was a problem hiding this comment.
Please just adjust to copy/rsync the installation files to
/srv/www/htdocs/install instead of the custom /srv/install from my initial setup as we've agreed in https://bugzilla.suse.com/show_bug.cgi?id=1246539#c22 ff.
That is, just sed -e "s|/srv/install|/srv/www/htdocs/install|g" -i *.xml or similar.
-> No localtion /install {} in nginx.conf and no custom selinux policy needed any more.
18e537d to
7e32c0b
Compare
PR creator: Description
configvariable ingrub.cfggrub2-mknetdircommands with--directoryoptionshimpackage scope to supported architecturesPR creator: Are there any relevant issues/feature requests?
PR reviewer: Checklist for editorial review
Apart from the usual checks, please double-check also the following: