mirror of
https://github.com/clearlinux/koji-setup-scripts.git
synced 2026-04-28 11:03:50 +00:00
swupd should only be run during setup when on an officially released version of Clear that has an upadate stream. Development versions are usually indicated when the VERSION_ID is equal to 1 and do not have an update stream. In these cases, the assumption is that all required software is already installed prior to setup. However, add checks for only the most critical dependencies before continuing with the setup so that it more obvious to the user that these are missing when they are. Signed-off-by: George T Kramer <george.t.kramer@intel.com>
19 lines
479 B
Bash
Executable File
19 lines
479 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (C) 2019 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set -xe
|
|
SCRIPT_DIR="$(dirname "$(realpath "$0")")"
|
|
source "$SCRIPT_DIR"/globals.sh
|
|
source "$SCRIPT_DIR"/parameters.sh
|
|
|
|
swupd bundle-add nfs-utils || :
|
|
check_dependency rpcbind
|
|
check_dependency rpc.nfsd
|
|
|
|
# Export server directory to be mounted by clients
|
|
echo "$KOJI_DIR $KOJI_SLAVE_FQDN(ro,no_root_squash)" >> /etc/exports
|
|
|
|
systemctl enable --now rpcbind
|
|
systemctl enable --now nfs-server
|