s6-base: remove tty3-6 and ttyS

This commit is contained in:
Luis 2024-02-19 04:38:07 +01:00
parent fbc41dec81
commit 58454cd0ee
4 changed files with 268 additions and 0 deletions

1
s6-base/.checksums Normal file
View File

@ -0,0 +1 @@
051ff4d49cc0568143a24a61a54a8c1a2a0b8c643ce2ad3326d2afb0b3e2b95eda5c4b3c0b57c31f33e5c1e0f2202cf03750ea30ce0cc588e7f3dcf54359632a s6-base-20240216.tar.bz2

233
s6-base/.pkgfiles Normal file
View File

@ -0,0 +1,233 @@
s6-base-20240216-1
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/s6/
drwxr-xr-x root/root etc/s6/adminsv/
drwxr-xr-x root/root etc/s6/adminsv/default/
drwxr-xr-x root/root etc/s6/adminsv/default/contents.d/
-rw-r--r-- root/root etc/s6/adminsv/default/contents.d/boot
-rw-r--r-- root/root etc/s6/adminsv/default/type
drwxr-xr-x root/root etc/s6/config/
-rw-r--r-- root/root etc/s6/config/convfile
-rw-r--r-- root/root etc/s6/config/dmesg.conf.spkgnew
-rw-r--r-- root/root etc/s6/config/hwclock.conf.spkgnew
-rw-r--r-- root/root etc/s6/config/mount-cgroups.conf.spkgnew
-rw-r--r-- root/root etc/s6/config/mount-tmpfs.conf.spkgnew
-rw-r--r-- root/root etc/s6/config/network-detection.conf
-rw-r--r-- root/root etc/s6/config/tty1.conf.spkgnew
-rw-r--r-- root/root etc/s6/config/tty2.conf.spkgnew
-rw-r--r-- root/root etc/s6/config/udevd.conf.spkgnew
-rw-r--r-- root/root etc/s6/log-service-reload.sh
-rw-r--r-- root/root etc/s6/rc.local.spkgnew
drwxr-xr-x root/root etc/s6/sv/
drwxr-xr-x root/root etc/s6/sv/boot/
drwxr-xr-x root/root etc/s6/sv/boot/contents.d/
-rw-r--r-- root/root etc/s6/sv/boot/contents.d/misc
-rw-r--r-- root/root etc/s6/sv/boot/contents.d/mount
-rw-r--r-- root/root etc/s6/sv/boot/contents.d/setup
-rw-r--r-- root/root etc/s6/sv/boot/contents.d/udev
-rw-r--r-- root/root etc/s6/sv/boot/type
drwxr-xr-x root/root etc/s6/sv/cleanup/
drwxr-xr-x root/root etc/s6/sv/cleanup/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/cleanup/dependencies.d/remount-root
-rw-r--r-- root/root etc/s6/sv/cleanup/type
-rw-r--r-- root/root etc/s6/sv/cleanup/up
drwxr-xr-x root/root etc/s6/sv/console-setup/
drwxr-xr-x root/root etc/s6/sv/console-setup/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/console-setup/dependencies.d/mount-devfs
-rw-r--r-- root/root etc/s6/sv/console-setup/dependencies.d/remount-root
-rw-r--r-- root/root etc/s6/sv/console-setup/dependencies.d/tty1
-rw-r--r-- root/root etc/s6/sv/console-setup/shell_up
-rw-r--r-- root/root etc/s6/sv/console-setup/type
-rw-r--r-- root/root etc/s6/sv/console-setup/up
drwxr-xr-x root/root etc/s6/sv/dmesg-log/
-rw-r--r-- root/root etc/s6/sv/dmesg-log/consumer-for
-rw-r--r-- root/root etc/s6/sv/dmesg-log/notification-fd
-rw-r--r-- root/root etc/s6/sv/dmesg-log/pipeline-name
-rw-r--r-- root/root etc/s6/sv/dmesg-log/run
-rw-r--r-- root/root etc/s6/sv/dmesg-log/type
drwxr-xr-x root/root etc/s6/sv/dmesg-srv/
drwxr-xr-x root/root etc/s6/sv/dmesg-srv/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/dmesg-srv/dependencies.d/mount-procfs
-rw-r--r-- root/root etc/s6/sv/dmesg-srv/producer-for
-rw-r--r-- root/root etc/s6/sv/dmesg-srv/run
-rw-r--r-- root/root etc/s6/sv/dmesg-srv/type
drwxr-xr-x root/root etc/s6/sv/getty/
drwxr-xr-x root/root etc/s6/sv/getty/contents.d/
-rw-r--r-- root/root etc/s6/sv/getty/contents.d/tty1
-rw-r--r-- root/root etc/s6/sv/getty/contents.d/tty2
-rw-r--r-- root/root etc/s6/sv/getty/type
drwxr-xr-x root/root etc/s6/sv/hostname/
drwxr-xr-x root/root etc/s6/sv/hostname/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/hostname/dependencies.d/mount-procfs
-rw-r--r-- root/root etc/s6/sv/hostname/type
-rw-r--r-- root/root etc/s6/sv/hostname/up
drwxr-xr-x root/root etc/s6/sv/hwclock/
-rw-r--r-- root/root etc/s6/sv/hwclock/down
-rw-r--r-- root/root etc/s6/sv/hwclock/type
-rw-r--r-- root/root etc/s6/sv/hwclock/up
drwxr-xr-x root/root etc/s6/sv/locale/
drwxr-xr-x root/root etc/s6/sv/locale/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/locale/dependencies.d/mount-devfs
-rw-r--r-- root/root etc/s6/sv/locale/dependencies.d/remount-root
-rw-r--r-- root/root etc/s6/sv/locale/dependencies.d/tty1
-rw-r--r-- root/root etc/s6/sv/locale/type
-rw-r--r-- root/root etc/s6/sv/locale/up
drwxr-xr-x root/root etc/s6/sv/misc/
drwxr-xr-x root/root etc/s6/sv/misc/contents.d/
-rw-r--r-- root/root etc/s6/sv/misc/contents.d/hostname
-rw-r--r-- root/root etc/s6/sv/misc/contents.d/hwclock
-rw-r--r-- root/root etc/s6/sv/misc/contents.d/modules
-rw-r--r-- root/root etc/s6/sv/misc/contents.d/network-detection
-rw-r--r-- root/root etc/s6/sv/misc/contents.d/rc-local
-rw-r--r-- root/root etc/s6/sv/misc/type
drwxr-xr-x root/root etc/s6/sv/modules/
drwxr-xr-x root/root etc/s6/sv/modules/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/modules/dependencies.d/mount-procfs
-rw-r--r-- root/root etc/s6/sv/modules/dependencies.d/udevadm
-rw-r--r-- root/root etc/s6/sv/modules/type
-rw-r--r-- root/root etc/s6/sv/modules/up
drwxr-xr-x root/root etc/s6/sv/mount-cgroups/
-rw-r--r-- root/root etc/s6/sv/mount-cgroups/cgroup-release-agent.sh
drwxr-xr-x root/root etc/s6/sv/mount-cgroups/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/mount-cgroups/dependencies.d/mount-devfs
-rw-r--r-- root/root etc/s6/sv/mount-cgroups/dependencies.d/mount-procfs
-rw-r--r-- root/root etc/s6/sv/mount-cgroups/dependencies.d/mount-sysfs
-rw-r--r-- root/root etc/s6/sv/mount-cgroups/shell_up
-rw-r--r-- root/root etc/s6/sv/mount-cgroups/type
-rw-r--r-- root/root etc/s6/sv/mount-cgroups/up
drwxr-xr-x root/root etc/s6/sv/mount-devfs/
drwxr-xr-x root/root etc/s6/sv/mount-devfs/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/mount-devfs/dependencies.d/mount-procfs
-rw-r--r-- root/root etc/s6/sv/mount-devfs/type
-rw-r--r-- root/root etc/s6/sv/mount-devfs/up
drwxr-xr-x root/root etc/s6/sv/mount-filesystems/
drwxr-xr-x root/root etc/s6/sv/mount-filesystems/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/mount-filesystems/dependencies.d/modules
-rw-r--r-- root/root etc/s6/sv/mount-filesystems/dependencies.d/mount-sysfs
-rw-r--r-- root/root etc/s6/sv/mount-filesystems/dependencies.d/mount-tmpfs
-rw-r--r-- root/root etc/s6/sv/mount-filesystems/type
-rw-r--r-- root/root etc/s6/sv/mount-filesystems/up
drwxr-xr-x root/root etc/s6/sv/mount-net/
drwxr-xr-x root/root etc/s6/sv/mount-net/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/mount-net/dependencies.d/mount-filesystems
-rw-r--r-- root/root etc/s6/sv/mount-net/dependencies.d/udevadm
-rw-r--r-- root/root etc/s6/sv/mount-net/down
-rw-r--r-- root/root etc/s6/sv/mount-net/type
-rw-r--r-- root/root etc/s6/sv/mount-net/up
drwxr-xr-x root/root etc/s6/sv/mount-procfs/
-rw-r--r-- root/root etc/s6/sv/mount-procfs/type
-rw-r--r-- root/root etc/s6/sv/mount-procfs/up
drwxr-xr-x root/root etc/s6/sv/mount-sysfs/
drwxr-xr-x root/root etc/s6/sv/mount-sysfs/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/mount-sysfs/dependencies.d/mount-procfs
-rw-r--r-- root/root etc/s6/sv/mount-sysfs/type
-rw-r--r-- root/root etc/s6/sv/mount-sysfs/up
drwxr-xr-x root/root etc/s6/sv/mount-tmpfs/
-rw-r--r-- root/root etc/s6/sv/mount-tmpfs/type
-rw-r--r-- root/root etc/s6/sv/mount-tmpfs/up
drwxr-xr-x root/root etc/s6/sv/mount/
drwxr-xr-x root/root etc/s6/sv/mount/contents.d/
-rw-r--r-- root/root etc/s6/sv/mount/contents.d/mount-cgroups
-rw-r--r-- root/root etc/s6/sv/mount/contents.d/mount-devfs
-rw-r--r-- root/root etc/s6/sv/mount/contents.d/mount-filesystems
-rw-r--r-- root/root etc/s6/sv/mount/contents.d/mount-procfs
-rw-r--r-- root/root etc/s6/sv/mount/contents.d/mount-sysfs
-rw-r--r-- root/root etc/s6/sv/mount/contents.d/mount-tmpfs
-rw-r--r-- root/root etc/s6/sv/mount/contents.d/remount-root
-rw-r--r-- root/root etc/s6/sv/mount/type
drwxr-xr-x root/root etc/s6/sv/net-lo/
-rw-r--r-- root/root etc/s6/sv/net-lo/type
-rw-r--r-- root/root etc/s6/sv/net-lo/up
drwxr-xr-x root/root etc/s6/sv/network-detection/
drwxr-xr-x root/root etc/s6/sv/network-detection/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/network-detection/dependencies.d/mount-devfs
-rw-r--r-- root/root etc/s6/sv/network-detection/dependencies.d/mount-sysfs
-rw-r--r-- root/root etc/s6/sv/network-detection/dependencies.d/net-lo
-rw-r--r-- root/root etc/s6/sv/network-detection/shell_up
-rw-r--r-- root/root etc/s6/sv/network-detection/type
-rw-r--r-- root/root etc/s6/sv/network-detection/up
drwxr-xr-x root/root etc/s6/sv/network/
drwxr-xr-x root/root etc/s6/sv/network/contents.d/
-rw-r--r-- root/root etc/s6/sv/network/contents.d/mount-net
-rw-r--r-- root/root etc/s6/sv/network/type
drwxr-xr-x root/root etc/s6/sv/random-seed/
drwxr-xr-x root/root etc/s6/sv/random-seed/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/random-seed/dependencies.d/remount-root
-rw-r--r-- root/root etc/s6/sv/random-seed/down
-rw-r--r-- root/root etc/s6/sv/random-seed/type
-rw-r--r-- root/root etc/s6/sv/random-seed/up
drwxr-xr-x root/root etc/s6/sv/rc-local/
drwxr-xr-x root/root etc/s6/sv/rc-local/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/rc-local/down
-rw-r--r-- root/root etc/s6/sv/rc-local/type
-rw-r--r-- root/root etc/s6/sv/rc-local/up
drwxr-xr-x root/root etc/s6/sv/remount-root/
drwxr-xr-x root/root etc/s6/sv/remount-root/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/remount-root/dependencies.d/mount-filesystems
-rw-r--r-- root/root etc/s6/sv/remount-root/type
-rw-r--r-- root/root etc/s6/sv/remount-root/up
drwxr-xr-x root/root etc/s6/sv/setup/
drwxr-xr-x root/root etc/s6/sv/setup/contents.d/
-rw-r--r-- root/root etc/s6/sv/setup/contents.d/cleanup
-rw-r--r-- root/root etc/s6/sv/setup/contents.d/console-setup
-rw-r--r-- root/root etc/s6/sv/setup/contents.d/dmesg
-rw-r--r-- root/root etc/s6/sv/setup/contents.d/getty
-rw-r--r-- root/root etc/s6/sv/setup/contents.d/locale
-rw-r--r-- root/root etc/s6/sv/setup/contents.d/net-lo
-rw-r--r-- root/root etc/s6/sv/setup/contents.d/random-seed
-rw-r--r-- root/root etc/s6/sv/setup/contents.d/swap
-rw-r--r-- root/root etc/s6/sv/setup/contents.d/sysctl
-rw-r--r-- root/root etc/s6/sv/setup/type
drwxr-xr-x root/root etc/s6/sv/swap/
drwxr-xr-x root/root etc/s6/sv/swap/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/swap/dependencies.d/remount-root
-rw-r--r-- root/root etc/s6/sv/swap/down
-rw-r--r-- root/root etc/s6/sv/swap/type
-rw-r--r-- root/root etc/s6/sv/swap/up
drwxr-xr-x root/root etc/s6/sv/sysctl/
drwxr-xr-x root/root etc/s6/sv/sysctl/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/sysctl/dependencies.d/mount-procfs
-rw-r--r-- root/root etc/s6/sv/sysctl/dependencies.d/mount-sysfs
-rw-r--r-- root/root etc/s6/sv/sysctl/dependencies.d/udev
-rw-r--r-- root/root etc/s6/sv/sysctl/type
-rw-r--r-- root/root etc/s6/sv/sysctl/up
drwxr-xr-x root/root etc/s6/sv/tty1/
drwxr-xr-x root/root etc/s6/sv/tty1/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/tty1/dependencies.d/hostname
-rw-r--r-- root/root etc/s6/sv/tty1/dependencies.d/mount-devfs
-rw-r--r-- root/root etc/s6/sv/tty1/run
-rw-r--r-- root/root etc/s6/sv/tty1/type
drwxr-xr-x root/root etc/s6/sv/tty2/
drwxr-xr-x root/root etc/s6/sv/tty2/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/tty2/dependencies.d/hostname
-rw-r--r-- root/root etc/s6/sv/tty2/dependencies.d/mount-devfs
-rw-r--r-- root/root etc/s6/sv/tty2/run
-rw-r--r-- root/root etc/s6/sv/tty2/type
drwxr-xr-x root/root etc/s6/sv/udev/
drwxr-xr-x root/root etc/s6/sv/udev/contents.d/
-rw-r--r-- root/root etc/s6/sv/udev/contents.d/udevadm
-rw-r--r-- root/root etc/s6/sv/udev/contents.d/udevd
-rw-r--r-- root/root etc/s6/sv/udev/type
drwxr-xr-x root/root etc/s6/sv/udevadm/
drwxr-xr-x root/root etc/s6/sv/udevadm/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/udevadm/dependencies.d/udevd
-rw-r--r-- root/root etc/s6/sv/udevadm/type
-rw-r--r-- root/root etc/s6/sv/udevadm/up
drwxr-xr-x root/root etc/s6/sv/udevd-log/
-rw-r--r-- root/root etc/s6/sv/udevd-log/consumer-for
-rw-r--r-- root/root etc/s6/sv/udevd-log/notification-fd
-rw-r--r-- root/root etc/s6/sv/udevd-log/pipeline-name
-rw-r--r-- root/root etc/s6/sv/udevd-log/run
-rw-r--r-- root/root etc/s6/sv/udevd-log/type
drwxr-xr-x root/root etc/s6/sv/udevd-srv/
drwxr-xr-x root/root etc/s6/sv/udevd-srv/dependencies.d/
-rw-r--r-- root/root etc/s6/sv/udevd-srv/dependencies.d/mount-cgroups
-rw-r--r-- root/root etc/s6/sv/udevd-srv/producer-for
-rw-r--r-- root/root etc/s6/sv/udevd-srv/run
-rw-r--r-- root/root etc/s6/sv/udevd-srv/type
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/modules-load
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/sysctl.d/
-rw-r--r-- root/root usr/lib/sysctl.d/50-default.conf.spkgnew

4
s6-base/post-install.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
# Compile service db
s6-db-reload -r

30
s6-base/spkgbuild Normal file
View File

@ -0,0 +1,30 @@
# description : A collection of s6 convenience scripts
# homepage : https://codeberg.org/lumaro/s6-base
# depends : s6-rc
name=s6-base
version=20240216
release=1
commit=137e7847e360c911883aa9c87763f77877e3589b
backup="etc/s6/rc.local
etc/s6/config/tty1.conf
etc/s6/config/tty2.conf
etc/s6/config/dmesg.conf
etc/s6/config/hwclock.conf
etc/s6/config/mount-cgroups.conf
etc/s6/config/mount-tmpfs.conf
etc/s6/config/udevd.conf
usr/lib/sysctl.d/50-default.conf"
source="$name-$version.tar.bz2::https://gitlab.com/venomlinux/s6-system/s6-base/-/archive/$commit.tar.bz2"
build() {
cd $name-$commit
DESTDIR=$PKG make install
# remove tty3-6 and ttyS
for i in 3 4 5 6 S; do
rm -rf $PKG/etc/s6/config/tty$i* \
$PKG/etc/s6/sv/getty/contents.d/tty$i \
$PKG/etc/s6/sv/tty$i
done
}