Skip to content

Commit 6d0efd0

Browse files
kenyonbangelicLennonka
committed
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 3f2eb92 commit 6d0efd0

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
@@ -43,5 +43,15 @@ Ensure the path in `/pub/` matches the path in your _Preseed default PXELinux Au
4343
# rm -f {iso_image}
4444
----
4545

46+
[TIP]
47+
====
48+
If you manage this with Puppet or a similar configuration management system, you can take an alternative approach.
49+
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.
50+
Keep the ISO image mounted so that it is accessible to HTTP clients.
51+
52+
Do not mount the ISO image directly under `/var/lib/foreman`.
53+
On Debian and Ubuntu, mounting under this directory causes the package `postinst` script to fail during the `chmod -Rf /var/lib/foreman` command.
54+
====
55+
4656
Use `\http://{foreman-example-com}/pub/installation_media/ubuntu/22.04-x86_64/` to set up your installation media entry in {Project}.
4757
For more information, see xref:adding-installation-media_{context}[].

0 commit comments

Comments
 (0)