mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-22 07:10:16 -07:00
baseinit: Started work on rc.boot.
This commit is contained in:
parent
af41ba7f40
commit
99b570cfbc
@ -1,2 +1,2 @@
|
||||
c65d69ade8d0bf6d92d01545323acff68c43cb1296bae8efcbf03faa5b0c653c inittab
|
||||
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 rc.boot
|
||||
8e243f895741287fecd52a73b354c1bba846dd0312648be7656ea6d84c955e73 rc.boot
|
||||
|
@ -0,0 +1,36 @@
|
||||
#!/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
|
Loading…
Reference in New Issue
Block a user