2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-22 07:10:16 -07:00

baseinit: Install from repository.

This commit is contained in:
Dylan Araps 2019-06-20 11:32:56 +03:00
parent 99b570cfbc
commit fec1edad8c
7 changed files with 11 additions and 49 deletions

View File

@ -1,8 +1,9 @@
#!/bin/sh -e
install -dm 755 "$1/etc"
mkdir -p "$1/etc/runit"
for f in inittab rc.boot; do
install -m 644 "$f" "$1/etc"
done
cp -R stages "$1/etc/runit"

View File

@ -1,2 +0,0 @@
c65d69ade8d0bf6d92d01545323acff68c43cb1296bae8efcbf03faa5b0c653c inittab
8e243f895741287fecd52a73b354c1bba846dd0312648be7656ea6d84c955e73 rc.boot

View File

@ -1,4 +0,0 @@
::sysinit:/etc/rc.boot
::respawn:/bin/runsvdir-start
::restart:/sbin/init
::shutdown:/etc/rc.shutdown

View File

@ -1,36 +0,0 @@
#!/bin/sh
PATH=/usr/bin:/usr/sbin
log() {
printf '\e[31;1m=>\e[m %s\n' "$@"
}
mnt() {
mountpoint -q "$1" || {
dir=$1
shift
mount "$@" "$dir"
}
}
log "Welcome to KISS!"
log "Mounting pseudo filesystems..."
mnt /proc -o nosuid,noexec,nodev -t proc proc
mnt /sys -o nosuid,noexec,nodev -t sysfs sys
mnt /run -o mode=0755,nosuid,nodev -t tmpfs run
mnt /dev -o mode=0755,nosuid -t devtmpfs dev
# shellcheck disable=2174
mkdir -pm 0755 /run/runit \
/run/lvm \
/run/user \
/run/lock \
/run/log \
/dev/pts \
/dev/shm
mnt /dev/pts -o mode=0620,gid=5,nosuid,noexec -nt devpts devpts
mnt /dev/shm -o mode=1777,nosuid,nodev -nt tmpfs shm
mnt /sys/kernel/security -nt securityfs securityfs

View File

@ -2,15 +2,19 @@
/var/db/kiss/baseinit/sources
/var/db/kiss/baseinit/manifest
/var/db/kiss/baseinit/licenses
/var/db/kiss/baseinit/files/rc.boot
/var/db/kiss/baseinit/files/inittab
/var/db/kiss/baseinit/files/
/var/db/kiss/baseinit/checksums
/var/db/kiss/baseinit/build
/var/db/kiss/baseinit/
/var/db/kiss/
/var/db/
/var/
/etc/runit/stages/04-sysctl.sh
/etc/runit/stages/03-misc.sh
/etc/runit/stages/02-filesystems.sh
/etc/runit/stages/01-mdev.sh
/etc/runit/stages/00-pseudo-filesystems.sh
/etc/runit/stages/
/etc/runit/
/etc/rc.boot
/etc/inittab
/etc/

View File

@ -1,2 +1 @@
files/inittab
files/rc.boot
git:https://github.com/kissx/kiss-init

View File

@ -1 +1 @@
1 1
git 1