diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-11-17 21:51:32 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-11-17 21:51:32 -0600 |
commit | 3f3d176e2d3960b9c18589e64af2fbe9de435f0d (patch) | |
tree | b3da7478e5c8d9d13f38877a93ba704e9acace15 /diskman/diskman.hh | |
parent | 8801c9ccaeaab68174312cf025bce771e2ea77df (diff) | |
download | horizon-3f3d176e2d3960b9c18589e64af2fbe9de435f0d.tar.gz horizon-3f3d176e2d3960b9c18589e64af2fbe9de435f0d.tar.bz2 horizon-3f3d176e2d3960b9c18589e64af2fbe9de435f0d.tar.xz horizon-3f3d176e2d3960b9c18589e64af2fbe9de435f0d.zip |
Executor: Only stack runlevels if runlevels exist
If we are doing a mini-rootfs or container installation, we may not have
OpenRC at all. This would mean /etc/runlevels doesn't exist in the target.
In that case, we crash with:
boost::filesystem::directory_iterator::construct: No such file or directory
[system:2]: "/tmp/horizon-image/target/etc/runlevels"
Closes: #378
Fixes: a9ccd9bc7e ("hscript: Allow svcenable to create new runlevels")
Diffstat (limited to 'diskman/diskman.hh')
0 files changed, 0 insertions, 0 deletions