1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-05-20 12:36:14 +02:00
build/pkg/base-files/build
David Oberhollenzer ffacb26218 Remove depends file
Instead of having a "depends" file with a list of packages, add a
"DEPENDS" variable to the build script.

Generate the rootfs dependencies from a config file stored in the
cfg directory.

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-01-30 14:02:09 +01:00

30 lines
757 B
Plaintext

DEPENDS=""
build() {
return
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
# home directory of root user
mkdir -p "$DEPLOY/root"
chmod 750 "$DEPLOY/root"
cp "$SCRIPTDIR/pkg/base-files/bash_profile" "$DEPLOY/root/.bash_profile"
cp "$SCRIPTDIR/pkg/base-files/bashrc" "$DEPLOY/root/.bashrc"
# /etc base files
mkdir -p "$DEPLOY/etc/skel"
cp "$SCRIPTDIR/pkg/base-files/bash_profile" "$DEPLOY/etc/skel/.bash_profile"
cp "$SCRIPTDIR/pkg/base-files/bashrc" "$DEPLOY/etc/skel/.bashrc"
cp "$SCRIPTDIR/pkg/base-files/hostname" "$DEPLOY/etc/hostname"
cp "$SCRIPTDIR/pkg/base-files/hosts" "$DEPLOY/etc/hosts"
cp "$SCRIPTDIR/pkg/base-files/passwd" "$DEPLOY/etc/passwd"
cp "$SCRIPTDIR/pkg/base-files/group" "$DEPLOY/etc/group"
}