Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions template_debian/distribution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,15 @@ function removeDivertPolicy() {
# Create system mount points
# ==============================================================================
function prepareChroot() {
# # Make sure nothing is mounted within $INSTALL_DIR
# umount_kill "${INSTALL_DIR}" || true

mount -t tmpfs none "${INSTALL_DIR}/run"
mount -t proc proc "${INSTALL_DIR}/proc"
mount -t sysfs sys "${INSTALL_DIR}/sys"
if ! mountpoint -q "${INSTALL_DIR}/run"; then
mount -t tmpfs none "${INSTALL_DIR}/run"
fi
if ! mountpoint -q "${INSTALL_DIR}/proc"; then
mount -t proc proc "${INSTALL_DIR}/proc"
fi
if ! mountpoint -q "${INSTALL_DIR}/sys"; then
mount -t sysfs sys "${INSTALL_DIR}/sys"
fi
createDbusUuid
addDivertPolicy
}
Expand Down