mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
static env
This commit is contained in:
@@ -107,5 +107,6 @@ RUN mkdir -p \
|
||||
COPY testenv/fakes/vcgencmd /opt/vc/bin/
|
||||
COPY testenv/fakes/sys /fake_sysfs/sys
|
||||
COPY testenv/fakes/proc /fake_procfs/proc
|
||||
COPY testenv/fakes/etc /fake_etc/etc
|
||||
|
||||
CMD /bin/bash
|
||||
|
||||
26
testenv/env.py
Normal file
26
testenv/env.py
Normal file
@@ -0,0 +1,26 @@
|
||||
# ========================================================================== #
|
||||
# #
|
||||
# KVMD - The main PiKVM daemon. #
|
||||
# #
|
||||
# Copyright (C) 2018-2022 Maxim Devaev <mdevaev@gmail.com> #
|
||||
# #
|
||||
# This program is free software: you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation, either version 3 of the License, or #
|
||||
# (at your option) any later version. #
|
||||
# #
|
||||
# This program is distributed in the hope that it will be useful, #
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
# GNU General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
# ========================================================================== #
|
||||
|
||||
|
||||
# =====
|
||||
ETC_PREFIX = "/fake_etc"
|
||||
SYSFS_PREFIX = "/fake_sysfs"
|
||||
PROCFS_PREFIX = "/fake_procfs"
|
||||
2
testenv/fakes/etc/fstab
Normal file
2
testenv/fakes/etc/fstab
Normal file
@@ -0,0 +1,2 @@
|
||||
LABEL=PIPST /var/lib/kvmd/pst ext4 nodev,nosuid,noexec,ro,errors=remount-ro,data=journal,X-kvmd.pst-user=kvmd-pst 0 0
|
||||
LABEL=PIMSD /var/lib/kvmd/msd ext4 nodev,nosuid,noexec,ro,errors=remount-ro,data=journal,X-kvmd.otgmsd-user=kvmd 0 0
|
||||
Reference in New Issue
Block a user