mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
Add basic system files
- passwd and group files with entries for "root" - user directory for "root" - hosts and hostname files Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
8230c3996b
commit
b363b49a56
9 changed files with 46 additions and 0 deletions
3
pkg/base-files/bash_profile
Normal file
3
pkg/base-files/bash_profile
Normal file
|
@ -0,0 +1,3 @@
|
|||
if [ -f ~/.bashrc ]; then
|
||||
. ~/.bashrc
|
||||
fi
|
3
pkg/base-files/bashrc
Normal file
3
pkg/base-files/bashrc
Normal file
|
@ -0,0 +1,3 @@
|
|||
if [ -f /etc/bashrc ]; then
|
||||
. /etc/bashrc
|
||||
fi
|
27
pkg/base-files/build
Normal file
27
pkg/base-files/build
Normal file
|
@ -0,0 +1,27 @@
|
|||
build() {
|
||||
return
|
||||
}
|
||||
|
||||
deploy() {
|
||||
local SOURCE="$1"
|
||||
local BUILD="$2"
|
||||
local DEPLOY="$3"
|
||||
|
||||
# home directory of root user
|
||||
mkdir -p "$DEPLOY/usr/root"
|
||||
chmod 750 "$DEPLOY/usr/root"
|
||||
|
||||
cp "$SCRIPTDIR/pkg/base-files/bash_profile" "$DEPLOY/usr/root/.bash_profile"
|
||||
cp "$SCRIPTDIR/pkg/base-files/bashrc" "$DEPLOY/usr/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"
|
||||
}
|
1
pkg/base-files/group
Normal file
1
pkg/base-files/group
Normal file
|
@ -0,0 +1 @@
|
|||
root:x:0:
|
1
pkg/base-files/hostname
Normal file
1
pkg/base-files/hostname
Normal file
|
@ -0,0 +1 @@
|
|||
blank
|
8
pkg/base-files/hosts
Normal file
8
pkg/base-files/hosts
Normal file
|
@ -0,0 +1,8 @@
|
|||
127.0.0.1 localhost
|
||||
::1 localhost ipv6-localhost ipv6-loopback
|
||||
fe00::0 ipv6-localnet
|
||||
|
||||
ff00::0 ipv6-mcastprefix
|
||||
ff02::1 ipv6-allnodes
|
||||
ff02::2 ipv6-allrouters
|
||||
ff02::3 ipv6-allhosts
|
1
pkg/base-files/passwd
Normal file
1
pkg/base-files/passwd
Normal file
|
@ -0,0 +1 @@
|
|||
root:x:0:0:root:/usr/root:/bin/bash
|
|
@ -1,3 +1,4 @@
|
|||
base-files
|
||||
coreutils
|
||||
bash
|
||||
nano
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
base-files
|
||||
coreutils
|
||||
bash
|
||||
linux_modules
|
||||
|
|
Loading…
Reference in a new issue