2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-15 11:10:08 -07:00
repo/core/baselayout/build

65 lines
1.2 KiB
Plaintext
Raw Normal View History

2019-06-18 04:43:54 -06:00
#!/bin/sh -e
2021-07-01 10:47:52 -06:00
mkdir -m 755 \
"$1/boot" \
"$1/dev" \
"$1/etc" \
"$1/home" \
"$1/mnt" \
"$1/opt" \
"$1/run" \
"$1/usr" \
"$1/usr/bin" \
"$1/usr/include" \
"$1/usr/lib" \
"$1/usr/share" \
"$1/usr/share/man" \
"$1/usr/share/man/man1" \
"$1/usr/share/man/man2" \
"$1/usr/share/man/man3" \
"$1/usr/share/man/man4" \
"$1/usr/share/man/man5" \
"$1/usr/share/man/man6" \
"$1/usr/share/man/man7" \
"$1/usr/share/man/man8" \
"$1/var/cache" \
"$1/var/local" \
"$1/var/opt" \
"$1/var/log" \
"$1/var/log/old" \
"$1/var/lib" \
"$1/var/lib/misc" \
"$1/var/empty" \
"$1/var/service" \
"$1/var/spool"
mkdir -m 555 \
"$1/proc" \
"$1/sys"
mkdir -m 0750 \
"$1/root"
mkdir -m 1777 \
"$1/tmp" \
"$1/var/tmp" \
"$1/var/spool/mail"
ln -sf usr/bin "$1/bin"
ln -sf usr/bin "$1/sbin"
ln -sf bin "$1/usr/sbin"
ln -sf usr/lib "$1/lib"
ln -sf usr/lib "$1/lib64"
ln -sf lib "$1/usr/lib64"
ln -sf spool/mail "$1/var/mail"
ln -sf ../run "$1/var/run"
ln -sf ../run/lock "$1/var/lock"
ln -sf /proc/self/mounts "$1/etc/mtab"
2021-08-19 02:05:55 -06:00
cp -f ./* "$1/etc"
2021-07-01 10:47:52 -06:00
chmod 600 \
"$1/etc/crypttab" \
"$1/etc/shadow"