Skip to content

Commit 422f504

Browse files
kenyonbangelicLennonka
authored
Add tip for symlinking ISO image (#3847)
I ran into difficulties with mounting the Ubuntu ISO image under `/var/lib/foreman` since I manage foreman with puppet, and mounting the ISO is more doable with puppet compared with copying the content. This commit just adds a note for other people who might want to try the same thing. This note may help someone avoid this particular pitfall. Co-authored-by: Brian Angelica <[email protected]> Co-authored-by: Lena Ansorgová <[email protected]>
1 parent d9b6c9c commit 422f504

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

guides/common/modules/proc_creating-an-installation-medium-for-ubuntu-22-04.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,15 @@ Ensure the path in `/pub/` matches the path in your _Preseed default PXELinux Au
4545
# rm -f {iso_image}
4646
----
4747

48+
[TIP]
49+
====
50+
If you manage this with Puppet or a similar configuration management system, you can take an alternative approach.
51+
Instead of copying the ISO image content, you can create a symbolic link at `/var/www/html/pub/installation_media/ubuntu/22.04-x86_64` that points to the mounted image.
52+
Keep the ISO image mounted so that it is accessible to HTTP clients.
53+
54+
Do not mount the ISO image directly under `/var/lib/foreman`.
55+
On Debian and Ubuntu, mounting under this directory causes the package `postinst` script to fail during the `chmod -Rf /var/lib/foreman` command.
56+
====
57+
4858
Use `\http://{foreman-example-com}/pub/installation_media/ubuntu/22.04-x86_64/` to set up your installation media entry in {Project}.
4959
For more information, see xref:adding-installation-media_{context}[].

0 commit comments

Comments
 (0)