Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error mounting "/etc/timezone" to rootfs at "/etc/timezone" #489

Closed
themysterian-sec opened this issue Feb 23, 2023 · 4 comments · Fixed by #494
Closed

Error mounting "/etc/timezone" to rootfs at "/etc/timezone" #489

themysterian-sec opened this issue Feb 23, 2023 · 4 comments · Fixed by #494
Assignees
Labels
bug Something isn't working Installation Installation issues

Comments

@themysterian-sec
Copy link

Hi,
I would like to test EMBA for the first time. I had to comment the "$DEBUG_SCRIPT" line in helpers/helpers_emba_load_strict_settings.sh
as it won't install properly (./helpers/helpers_emba_load_strict_settings.sh: line 24: DEBUG_SCRIPT: unbound variable
). But Setup finishes then without errors.
Installation on my Kali Linux up-to-date version 2022.4. It is a Intel 64Bit Laptop.

When starting emba with
./emba -l ./log -f /home/pentest/Downloads/Hirschmann/m100geL2P.bin
I receive an error and the process stops.

Error Message at the bottom:

[+] Dependency check

[*] Elementary:
user permissions
user permission - ok
configuration directory - ok

[*] Necessary utils on system:
docker - ok
docker-compose - ok
MongoDB - ok
Docker Interface - ok
cve-search - testing
cve-search - ok
inotifywait - ok
notify-send - ok

[] Started kernel downloader thread with PID 13234
[
] Original user: pentest
[] Notification process started with PID 13248
[
] Firmware binary detected.
EMBA starts with the pre-testing phase.
EMBA is running with 1 modules in parallel and 1 threads per module.

cve-search - testing

[*] EMBA sets up the docker environment.

[*] EMBA initializes docker container.

Creating emba_emba_run ... done
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/etc/timezone" to rootfs at "/etc/timezone": mount /etc/timezone:/etc/timezone (via /proc/self/fd/7), flags: 0x5001: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ERROR: 1
[-] EMBA failed in docker mode!
[] Final cleanup started.
[
] Stopping kernel downloader thread with PID 13234
[*] Stopping EMBA PID 13248

@m-1-k-3 m-1-k-3 added the Installation Installation issues label Feb 23, 2023
@m-1-k-3
Copy link
Member

m-1-k-3 commented Feb 23, 2023

The issue around the DEBUG_SCRIPT will be solved in #485

@m-1-k-3
Copy link
Member

m-1-k-3 commented Feb 23, 2023

What is your output of the following?

└─$ file /etc/timezone
/etc/timezone: ASCII text

For testing you could remove the entry from docker-compose.yml

        - /etc/timezone:/etc/timezone:ro

@themysterian-sec
Copy link
Author

themysterian-sec commented Feb 24, 2023

The output is

$ file /etc/timezone
/etc/timezone: directory

Directory itself is empty

└─$ ll /etc/timezone
total 0

In the settings it is also empty
image

Commenting the line does the trick.

Thanks a lot!

@m-1-k-3
Copy link
Member

m-1-k-3 commented Feb 24, 2023

ok, great to hear. Thank you for reporting. I will need to take a look at this issue again to fix it correctly.
Let's leave this issue open until we really fixed it.

@m-1-k-3 m-1-k-3 added the bug Something isn't working label Feb 24, 2023
@m-1-k-3 m-1-k-3 self-assigned this Feb 24, 2023
This was referenced Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Installation Installation issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants