Project

General

Profile

Actions

Support #17609

closed

Discovery image does not extract .zip extension without network

Added by Mr Oleg Mcnoleg over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Image
Triaged:
Fixed in Releases:
Found in Releases:

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


Related issues 1 (0 open1 closed)

Related to Discovery - Bug #11852: Start embedded extensions without network and document itClosedLukas Zapletal09/16/2015Actions
Actions #1

Updated by Lukas Zapletal over 7 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.

Actions #2

Updated by Lukas Zapletal over 7 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.

Actions #3

Updated by Dominic Cleal over 7 years ago

  • translation missing: en.field_release deleted (207)
Actions #4

Updated by Lukas Zapletal about 7 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 !

Actions #5

Updated by Lukas Zapletal about 7 years ago

  • Related to Bug #11852: Start embedded extensions without network and document it added
Actions #6

Updated by Lukas Zapletal about 7 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

Actions

Also available in: Atom PDF