Skip to content

allow custom install/log/config path #1256

Open
@shrik3

Description

@shrik3

currently the paths to qkernel binary, log files and config files are hardcoded, among others:

pub const LOG_FILE_DEFAULT: &str = "/var/log/quark/quark.log";
pub const RAWLOG_FILE_DEFAULT: &str = "/var/log/quark/raw.log";
pub const LOG_FILE_FORMAT: &str = "/var/log/quark/{}.log";
pub const KERNEL_IMAGE: &'static str = "/usr/local/bin/qkernel_d.bin";
pub const KERNEL_IMAGE: &'static str = "/usr/local/bin/qkernel.bin";
pub const VDSO_PATH: &'static str = "/usr/local/bin/vdso.so";

to do this, we can pass install/log/config path as env variables and build the above path strings during compile time using rust's env! macro.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions