Support #17609
closed
Discovery image does not extract .zip extension without network
Added by Mr Oleg Mcnoleg about 8 years ago.
Updated almost 8 years ago.
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
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.
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.
- Translation missing: en.field_release deleted (
207)
- 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 !
- Related to Bug #11852: Start embedded extensions without network and document it added
Also available in: Atom
PDF