diff --git a/Dockerfile b/Dockerfile index f06ee8f..eec50ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ WORKDIR /code # Removes any already existing binary so that when compilation fails the container stops RUN rm -f /code/nimd +RUN rm -f /code/main RUN nim -d:release --opt:size --passL:"-static" --gc:orc -d:useMalloc c -o:nimd src/main RUN cp /code/nimd /sbin/nimd diff --git a/src/util/disks.nim b/src/util/disks.nim index cc7a447..7a3a6d6 100644 --- a/src/util/disks.nim +++ b/src/util/disks.nim @@ -96,7 +96,7 @@ proc mountVirtualDisks*(logger: Logger) = ## such as /proc and /sys for entry in virtualFileSystems: logger.debug(&"Mounting filesystem {entry.source} ({entry.filesystemtype}) at {entry.target} with mount option(s) {entry.data}") - logger.trace(&"Calling mount({entry.source}, {entry.target}, {entry.filesystemtype}, {entry.mountflags}, '{entry.data}')") + logger.trace(&"Calling mount('{entry.source}', '{entry.target}', '{entry.filesystemtype}', {entry.mountflags}, '{entry.data}')") var retcode = mount(entry.source, entry.target, entry.filesystemtype, entry.mountflags, entry.data) logger.trace(&"mount('{entry.source}', '{entry.target}', '{entry.filesystemtype}', {entry.mountflags}, '{entry.data}') returned {retcode}") if retcode == -1: