Support #17609
closedDiscovery image does not extract .zip extension without network
Description
I have downloaded fdi-image-3.2.0.tar from https://github.com/theforeman/foreman-discovery-image
Added a test.zip in the foreman-discovery-image-master folder (test.zip contains the below)
autostart.d/
autostart.d/01_zip.sh
bin/
facts/
lib/
I run ./build-livecd fdi-centos7.ks followed by ./build-livecd-root
I then boot the ISO, set an ssh password, login but I do not see my script in /opt/extension/autostart.d
Updated by Lukas Zapletal about 8 years ago
Thanks, fixing this might be tricky. We want to make sure these extensions are started after network initialization is finished (not when NetworkManager thinks it is online that is not reliable), but also started when network is not available.
Easiest thing to do is to split embedded extensions and dynamic extensions into two directories and run them via two separate services. This is cleaner otherwise we will end up in horrible systemd spagetti of dependencies.
Updated by Lukas Zapletal about 8 years ago
I suggest to move dynamic extensions into new dir /opt/extensions-zip
so all our documentation in regard to embedding stays correct. Feel free to send the patch, this is not often used scenario and I won't get to it soon.
Updated by Dominic Cleal about 8 years ago
- Translation missing: en.field_release deleted (
207)
Updated by Lukas Zapletal almost 8 years ago
- Tracker changed from Bug to Support
- Status changed from New to Resolved
Oleg, I mis-read your report. You are building is incorrectly, you do not put these ZIP files into root folder. This is our fault, we haven't described how to build the image with embedded extension correctly (tracked as #11852).
Create folder called root/opt/extension and unzip the contents of your ZIP there (again do not put the ZIP file itself but extract it). Then rebuild and it should work. I will create documentation for this soon.
I am marking this as resolved, please confirm or reopen if you need.
EDIT: Its root/opt/extension not extensions !
Updated by Lukas Zapletal almost 8 years ago
- Related to Bug #11852: Start embedded extensions without network and document it added
Updated by Lukas Zapletal almost 8 years ago
By the way you were right, extensions without network were not started properly, this patch solves this: https://github.com/theforeman/foreman-discovery-image/pull/83