diff options
author | Cem Keylan <cem@ckyln.com> | 2021-07-23 18:45:30 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-07-23 18:45:30 +0300 |
commit | e4eeebc9a613b18c2b6d6d6c4c848d22db33df99 (patch) | |
tree | a430a0b02f493cdb79d30c7bba02d36fc29747c0 /core/baselayout/build | |
parent | 77ba5b46fb92db36a11e1d4dc45cb7d6a4a9a340 (diff) | |
download | repository-e4eeebc9a613b18c2b6d6d6c4c848d22db33df99.tar.gz |
baselayout: use clinst, remove install-sv
Diffstat (limited to 'core/baselayout/build')
-rwxr-xr-x | core/baselayout/build | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/core/baselayout/build b/core/baselayout/build index d55a8d0f..b194829d 100755 --- a/core/baselayout/build +++ b/core/baselayout/build @@ -5,12 +5,6 @@ # The fallback is for backwards compatibility, this will be dropped later. sys_arch=${3:-$(uname -m)} -kinstall_t() { - mod=$1 dir=$2; mkdir -p "$2" - shift 2 - for file do cp "$file" "$dir"; chmod "$mod" "$file"; done -} - # Setup base directories. for d in boot dev etc home mnt usr var opt run; do mkdir -pm 755 "$1/$d" @@ -66,10 +60,9 @@ done ln -s ../man "$1/usr/local/share/man" # /etc skeleton files. -kinstall_t 644 "$1/etc" fstab group host.conf hosts issue keymap os-release \ - passwd profile securetty shells mime.types -kinstall_t 600 "$1/etc" crypttab shadow - -kinstall_t 755 "$1/usr/bin" install-sv +clinst -Dm644 -t "$1/etc" +clinst -Dm644 -t "$1/etc" fstab group host.conf hosts issue keymap os-release \ + passwd profile securetty shells mime.types +clinst -Dm600 -t "$1/etc" crypttab shadow ln -s /proc/self/mounts "$1/etc/mtab" |