mirror of
https://github.com/pygos/build.git
synced 2024-11-22 19:19:46 +01:00
077f72f529
- Dedicate home directory for root user (classic /root) - Root homedirectory is overlay mounted - Allows us to have an empty user directory that we directly mount, i.e. without using overlay fs Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
27 lines
745 B
Text
27 lines
745 B
Text
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"
|
|
}
|