unix/fiss

moving etc/ to a different repository (faed4681b605a17046d13d3cbc33aa52514bcb0e)
Repositories | LICENSE

commit faed4681b605a17046d13d3cbc33aa52514bcb0e
parent 85b358db4afcecf30d9c37c2c231cb250bf74f4d
Author: Friedel Schön <[email protected]>
Date:   Sun, 25 Jun 2023 13:59:16 +0200

moving etc/ to a different repository

Diffstat:
Detc/rc.conf47-----------------------------------------------
Detc/rc.local5-----
Detc/rc.shutdown5-----
Detc/service.d/agetty-console/finish2--
Detc/service.d/agetty-console/params5-----
Detc/service.d/agetty-console/run2--
Detc/service.d/agetty-generic/finish3---
Detc/service.d/agetty-generic/run5-----
Detc/service.d/agetty-hvc0/finish2--
Detc/service.d/agetty-hvc0/params4----
Detc/service.d/agetty-hvc0/run2--
Detc/service.d/agetty-hvsi0/finish2--
Detc/service.d/agetty-hvsi0/params5-----
Detc/service.d/agetty-hvsi0/run2--
Detc/service.d/agetty-serial/finish2--
Detc/service.d/agetty-serial/params5-----
Detc/service.d/agetty-serial/run2--
Detc/service.d/agetty-tty1/finish2--
Detc/service.d/agetty-tty1/params5-----
Detc/service.d/agetty-tty1/run2--
Detc/service.d/agetty-tty1/up-default0
Detc/service.d/agetty-tty2/finish2--
Detc/service.d/agetty-tty2/params4----
Detc/service.d/agetty-tty2/run2--
Detc/service.d/agetty-tty2/up-default0
Detc/service.d/agetty-tty3/finish2--
Detc/service.d/agetty-tty3/params4----
Detc/service.d/agetty-tty3/run2--
Detc/service.d/agetty-tty3/up-default0
Detc/service.d/agetty-tty4/finish2--
Detc/service.d/agetty-tty4/params4----
Detc/service.d/agetty-tty4/run2--
Detc/service.d/agetty-tty4/up-default0
Detc/service.d/agetty-tty5/finish2--
Detc/service.d/agetty-tty5/params4----
Detc/service.d/agetty-tty5/run2--
Detc/service.d/agetty-tty5/up-default0
Detc/service.d/agetty-tty6/finish2--
Detc/service.d/agetty-tty6/params4----
Detc/service.d/agetty-tty6/run2--
Detc/service.d/agetty-tty6/up-default0
Detc/service.d/agetty-ttyAMA0/finish2--
Detc/service.d/agetty-ttyAMA0/params5-----
Detc/service.d/agetty-ttyAMA0/run2--
Detc/service.d/agetty-ttyS0/finish2--
Detc/service.d/agetty-ttyS0/params5-----
Detc/service.d/agetty-ttyS0/run2--
Detc/service.d/agetty-ttyUSB0/finish2--
Detc/service.d/agetty-ttyUSB0/params5-----
Detc/service.d/agetty-ttyUSB0/run2--
Detc/service.d/sulogin/run5-----
Detc/start.d/00-pseudofs.sh50--------------------------------------------------
Detc/start.d/01-static-devnodes.sh6------
Detc/start.d/02-kmods.sh9---------
Detc/start.d/02-udev.sh19-------------------
Detc/start.d/03-console-setup.sh26--------------------------
Detc/start.d/03-filesystems.sh80-------------------------------------------------------------------------------
Detc/start.d/04-swap.sh6------
Detc/start.d/05-misc.sh25-------------------------
Detc/start.d/08-sysctl.sh20--------------------
Detc/start.d/09-fiss.sh2--
Detc/start.d/97-dmesg.sh6------
Detc/start.d/98-sbin-merge.sh11-----------
Detc/start.d/99-cleanup.sh10----------
Detc/stop.d/20-rc-shutdown.sh1-
Detc/stop.d/30-seedrng.sh4----
Detc/stop.d/40-hwclock.sh3---
Detc/stop.d/50-wtmp.sh1-
Detc/stop.d/60-udev.sh4----
Detc/stop.d/70-pkill.sh5-----
Detc/stop.d/80-filesystems.sh14--------------
Detc/stop.d/90-kexec.sh7-------
72 files changed, 0 insertions(+), 490 deletions(-)

diff --git a/etc/rc.conf b/etc/rc.conf @@ -1,47 +0,0 @@ -# /etc/rc.conf - system configuration for void - -# Set the host name. -# -# NOTE: it's preferred to declare the hostname in /etc/hostname instead: -# - echo myhost > /etc/hostname -# -#HOSTNAME="void-live" - -# Set RTC to UTC or localtime. -#HARDWARECLOCK="UTC" - -# Set timezone, availables timezones can be found at /usr/share/zoneinfo. -# -# NOTE: it's preferred to set the timezone in /etc/localtime instead: -# - ln -sf /usr/share/zoneinfo/<timezone> /etc/localtime -# Setting the timezone here requires a reboot to apply any changes/fixes -# and read-write access to the filesystem. -# -#TIMEZONE="Europe/Madrid" - -# Keymap to load, see loadkeys(8). -#KEYMAP="es" - -# Console font to load, see setfont(8). -#FONT="lat9w-16" - -# Console map to load, see setfont(8). -#FONT_MAP= - -# Font unimap to load, see setfont(8). -#FONT_UNIMAP= - -# Amount of ttys which should be setup. -#TTYS= - -# Set the mode for cgroup mounts. -# hybrid: mount cgroup v1 under /sys/fs/cgroup and -# cgroup v2 under /sys/fs/cgroup/unified -# legacy: mount cgroup v1 /sys/fs/cgroup -# unified: mount cgroup v2 under /sys/fs/cgroup -#CGROUP_MODE=hybrid - -# Set this to true only if you do not want seed files to actually credit the -# RNG, for example if you plan to replicate this file system image and do not -# have the wherewithal to first delete the contents of /var/lib/seedrng. -#SEEDRNG_SKIP_CREDIT=false diff --git a/etc/rc.local b/etc/rc.local @@ -1,5 +0,0 @@ -#!/bin/sh -# Default rc.local for void; add your custom commands here. -# -# This is run by fiss in stage 2 before the services are executed -# (see /etc/fiss/2). diff --git a/etc/rc.shutdown b/etc/rc.shutdown @@ -1,5 +0,0 @@ -#!/bin/sh -# Default rc.shutdown for void; add your custom commands here. -# -# This is run by fiss in stage 3 after the services are stopped -# (see /etc/fiss/3). diff --git a/etc/service.d/agetty-console/finish b/etc/service.d/agetty-console/finish @@ -1 +0,0 @@ -../agetty-generic/finish -\ No newline at end of file diff --git a/etc/service.d/agetty-console/params b/etc/service.d/agetty-console/params @@ -1,5 +0,0 @@ --L --8 -console -38400 -linux diff --git a/etc/service.d/agetty-console/run b/etc/service.d/agetty-console/run @@ -1 +0,0 @@ -../agetty-generic/run -\ No newline at end of file diff --git a/etc/service.d/agetty-generic/finish b/etc/service.d/agetty-generic/finish @@ -1,3 +0,0 @@ -#!/bin/sh -tty=${PWD##*-} -exec utmpset -w $tty diff --git a/etc/service.d/agetty-generic/run b/etc/service.d/agetty-generic/run @@ -1,4 +0,0 @@ -#!/bin/sh - -[ -x /sbin/getty -o -x /bin/getty ] && exec getty $@ -[ -x /sbin/agetty -o -x /bin/agetty ] && exec agetty $@ -\ No newline at end of file diff --git a/etc/service.d/agetty-hvc0/finish b/etc/service.d/agetty-hvc0/finish @@ -1 +0,0 @@ -../agetty-generic/finish -\ No newline at end of file diff --git a/etc/service.d/agetty-hvc0/params b/etc/service.d/agetty-hvc0/params @@ -1,4 +0,0 @@ --L -hvc0 -9600 -vt100 diff --git a/etc/service.d/agetty-hvc0/run b/etc/service.d/agetty-hvc0/run @@ -1 +0,0 @@ -../agetty-serial/run -\ No newline at end of file diff --git a/etc/service.d/agetty-hvsi0/finish b/etc/service.d/agetty-hvsi0/finish @@ -1 +0,0 @@ -../agetty-generic/finish -\ No newline at end of file diff --git a/etc/service.d/agetty-hvsi0/params b/etc/service.d/agetty-hvsi0/params @@ -1,5 +0,0 @@ --L --8 -hvsi0 -19200 -vt100 diff --git a/etc/service.d/agetty-hvsi0/run b/etc/service.d/agetty-hvsi0/run @@ -1 +0,0 @@ -../agetty-serial/run -\ No newline at end of file diff --git a/etc/service.d/agetty-serial/finish b/etc/service.d/agetty-serial/finish @@ -1 +0,0 @@ -../agetty-generic/finish -\ No newline at end of file diff --git a/etc/service.d/agetty-serial/params b/etc/service.d/agetty-serial/params @@ -1,5 +0,0 @@ --L --8 -serial -115200 -vt100 diff --git a/etc/service.d/agetty-serial/run b/etc/service.d/agetty-serial/run @@ -1 +0,0 @@ -../agetty-generic/run -\ No newline at end of file diff --git a/etc/service.d/agetty-tty1/finish b/etc/service.d/agetty-tty1/finish @@ -1 +0,0 @@ -../agetty-generic/finish -\ No newline at end of file diff --git a/etc/service.d/agetty-tty1/params b/etc/service.d/agetty-tty1/params @@ -1,5 +0,0 @@ --L --8 -tty1 -38400 -linux diff --git a/etc/service.d/agetty-tty1/run b/etc/service.d/agetty-tty1/run @@ -1 +0,0 @@ -../agetty-generic/run -\ No newline at end of file diff --git a/etc/service.d/agetty-tty1/up-default b/etc/service.d/agetty-tty1/up-default diff --git a/etc/service.d/agetty-tty2/finish b/etc/service.d/agetty-tty2/finish @@ -1 +0,0 @@ -../agetty-generic/finish -\ No newline at end of file diff --git a/etc/service.d/agetty-tty2/params b/etc/service.d/agetty-tty2/params @@ -1,4 +0,0 @@ ---noclear -tty2 -38400 -linux diff --git a/etc/service.d/agetty-tty2/run b/etc/service.d/agetty-tty2/run @@ -1 +0,0 @@ -../agetty-generic/run -\ No newline at end of file diff --git a/etc/service.d/agetty-tty2/up-default b/etc/service.d/agetty-tty2/up-default diff --git a/etc/service.d/agetty-tty3/finish b/etc/service.d/agetty-tty3/finish @@ -1 +0,0 @@ -../agetty-generic/finish -\ No newline at end of file diff --git a/etc/service.d/agetty-tty3/params b/etc/service.d/agetty-tty3/params @@ -1,4 +0,0 @@ ---noclear -tty3 -38400 -linux diff --git a/etc/service.d/agetty-tty3/run b/etc/service.d/agetty-tty3/run @@ -1 +0,0 @@ -../agetty-generic/run -\ No newline at end of file diff --git a/etc/service.d/agetty-tty3/up-default b/etc/service.d/agetty-tty3/up-default diff --git a/etc/service.d/agetty-tty4/finish b/etc/service.d/agetty-tty4/finish @@ -1 +0,0 @@ -../agetty-generic/finish -\ No newline at end of file diff --git a/etc/service.d/agetty-tty4/params b/etc/service.d/agetty-tty4/params @@ -1,4 +0,0 @@ ---noclear -tty4 -38400 -linux diff --git a/etc/service.d/agetty-tty4/run b/etc/service.d/agetty-tty4/run @@ -1 +0,0 @@ -../agetty-generic/run -\ No newline at end of file diff --git a/etc/service.d/agetty-tty4/up-default b/etc/service.d/agetty-tty4/up-default diff --git a/etc/service.d/agetty-tty5/finish b/etc/service.d/agetty-tty5/finish @@ -1 +0,0 @@ -../agetty-generic/finish -\ No newline at end of file diff --git a/etc/service.d/agetty-tty5/params b/etc/service.d/agetty-tty5/params @@ -1,4 +0,0 @@ ---noclear -tty5 -38400 -linux diff --git a/etc/service.d/agetty-tty5/run b/etc/service.d/agetty-tty5/run @@ -1 +0,0 @@ -../agetty-generic/run -\ No newline at end of file diff --git a/etc/service.d/agetty-tty5/up-default b/etc/service.d/agetty-tty5/up-default diff --git a/etc/service.d/agetty-tty6/finish b/etc/service.d/agetty-tty6/finish @@ -1 +0,0 @@ -../agetty-generic/finish -\ No newline at end of file diff --git a/etc/service.d/agetty-tty6/params b/etc/service.d/agetty-tty6/params @@ -1,4 +0,0 @@ ---noclear -tty6 -38400 -linux diff --git a/etc/service.d/agetty-tty6/run b/etc/service.d/agetty-tty6/run @@ -1 +0,0 @@ -../agetty-generic/run -\ No newline at end of file diff --git a/etc/service.d/agetty-tty6/up-default b/etc/service.d/agetty-tty6/up-default diff --git a/etc/service.d/agetty-ttyAMA0/finish b/etc/service.d/agetty-ttyAMA0/finish @@ -1 +0,0 @@ -../agetty-generic/finish -\ No newline at end of file diff --git a/etc/service.d/agetty-ttyAMA0/params b/etc/service.d/agetty-ttyAMA0/params @@ -1,5 +0,0 @@ --L --8 -ttyAMA0 -115200 -vt100 diff --git a/etc/service.d/agetty-ttyAMA0/run b/etc/service.d/agetty-ttyAMA0/run @@ -1 +0,0 @@ -../agetty-serial/run -\ No newline at end of file diff --git a/etc/service.d/agetty-ttyS0/finish b/etc/service.d/agetty-ttyS0/finish @@ -1 +0,0 @@ -../agetty-generic/finish -\ No newline at end of file diff --git a/etc/service.d/agetty-ttyS0/params b/etc/service.d/agetty-ttyS0/params @@ -1,5 +0,0 @@ --L --8 -ttyS0 -115200 -vt100 diff --git a/etc/service.d/agetty-ttyS0/run b/etc/service.d/agetty-ttyS0/run @@ -1 +0,0 @@ -../agetty-serial/run -\ No newline at end of file diff --git a/etc/service.d/agetty-ttyUSB0/finish b/etc/service.d/agetty-ttyUSB0/finish @@ -1 +0,0 @@ -../agetty-generic/finish -\ No newline at end of file diff --git a/etc/service.d/agetty-ttyUSB0/params b/etc/service.d/agetty-ttyUSB0/params @@ -1,5 +0,0 @@ --L --8 -ttyUSB0 -115200 -vt100 diff --git a/etc/service.d/agetty-ttyUSB0/run b/etc/service.d/agetty-ttyUSB0/run @@ -1 +0,0 @@ -../agetty-serial/run -\ No newline at end of file diff --git a/etc/service.d/sulogin/run b/etc/service.d/sulogin/run @@ -1,5 +0,0 @@ -#!/bin/sh -[ -r conf ] && . ./conf -read -r tty < /sys/class/tty/console/active -tty=/dev/${tty##* } -exec setsid sulogin ${OPTS:=-p} < $tty >$tty 2>&1 diff --git a/etc/start.d/00-pseudofs.sh b/etc/start.d/00-pseudofs.sh @@ -1,50 +0,0 @@ -# vim: set ts=4 sw=4 et: - -msg "Mounting pseudo-filesystems..." -mountpoint -q /proc || mount -o nosuid,noexec,nodev -t proc proc /proc -mountpoint -q /sys || mount -o nosuid,noexec,nodev -t sysfs sys /sys -mountpoint -q /run || mount -o mode=0755,nosuid,nodev -t tmpfs run /run -mountpoint -q /dev || mount -o mode=0755,nosuid -t devtmpfs dev /dev -mkdir -p -m0755 /run/fiss /run/lvm /run/user /run/lock /run/log /dev/pts /dev/shm -mountpoint -q /dev/pts || mount -o mode=0620,gid=5,nosuid,noexec -n -t devpts devpts /dev/pts -mountpoint -q /dev/shm || mount -o mode=1777,nosuid,nodev -n -t tmpfs shm /dev/shm -mountpoint -q /sys/kernel/security || mount -n -t securityfs securityfs /sys/kernel/security - -if [ -d /sys/firmware/efi/efivars ]; then - mountpoint -q /sys/firmware/efi/efivars || mount -o nosuid,noexec,nodev -t efivarfs efivarfs /sys/firmware/efi/efivars -fi - -if [ -z "$VIRTUALIZATION" ]; then - _cgroupv1="" - _cgroupv2="" - - case "${CGROUP_MODE:-hybrid}" in - legacy) - _cgroupv1="/sys/fs/cgroup" - ;; - hybrid) - _cgroupv1="/sys/fs/cgroup" - _cgroupv2="${_cgroupv1}/unified" - ;; - unified) - _cgroupv2="/sys/fs/cgroup" - ;; - esac - - # cgroup v1 - if [ -n "$_cgroupv1" ]; then - mountpoint -q "$_cgroupv1" || mount -o mode=0755 -t tmpfs cgroup "$_cgroupv1" - while read -r _subsys_name _hierarchy _num_cgroups _enabled; do - [ "$_enabled" = "1" ] || continue - _controller="${_cgroupv1}/${_subsys_name}" - mkdir -p "$_controller" - mountpoint -q "$_controller" || mount -t cgroup -o "$_subsys_name" cgroup "$_controller" - done < /proc/cgroups - fi - - # cgroup v2 - if [ -n "$_cgroupv2" ]; then - mkdir -p "$_cgroupv2" - mountpoint -q "$_cgroupv2" || mount -t cgroup2 -o nsdelegate cgroup2 "$_cgroupv2" - fi -fi diff --git a/etc/start.d/01-static-devnodes.sh b/etc/start.d/01-static-devnodes.sh @@ -1,6 +0,0 @@ -# Some kernel modules must be loaded before starting udev(7). -# Load them by looking at the output of `kmod static-nodes`. - -for f in $(kmod static-nodes 2>/dev/null|awk '/Module/ {print $2}'); do - modprobe -bq $f 2>/dev/null -done diff --git a/etc/start.d/02-kmods.sh b/etc/start.d/02-kmods.sh @@ -1,9 +0,0 @@ -# vim: set ts=4 sw=4 et: - -[ -n "$VIRTUALIZATION" ] && return 0 -# Do not try to load modules if kernel does not support them. -[ ! -e /proc/modules ] && return 0 - -msg "Loading kernel modules..." -modules-load -v | tr '\n' ' ' | sed 's:insmod [^ ]*/::g; s:\.ko\(\.gz\)\? ::g' -echo diff --git a/etc/start.d/02-udev.sh b/etc/start.d/02-udev.sh @@ -1,19 +0,0 @@ -# vim: set ts=4 sw=4 et: - -[ -n "$VIRTUALIZATION" ] && return 0 - -if [ -x /usr/lib/systemd/systemd-udevd ]; then - _udevd=/usr/lib/systemd/systemd-udevd -elif [ -x /sbin/udevd -o -x /bin/udevd ]; then - _udevd=udevd -else - msg_warn "cannot find udevd!" -fi - -if [ -n "${_udevd}" ]; then - msg "Starting udev and waiting for devices to settle..." - ${_udevd} --daemon - udevadm trigger --action=add --type=subsystems - udevadm trigger --action=add --type=devices - udevadm settle -fi diff --git a/etc/start.d/03-console-setup.sh b/etc/start.d/03-console-setup.sh @@ -1,26 +0,0 @@ -# vim: set ts=4 sw=4 et: - -[ -n "$VIRTUALIZATION" ] && return 0 - -TTYS=${TTYS:-12} -if [ -n "$FONT" ]; then - msg "Setting up TTYs font to '${FONT}'..." - - _index=0 - while [ ${_index} -le $TTYS ]; do - setfont ${FONT_MAP:+-m $FONT_MAP} ${FONT_UNIMAP:+-u $FONT_UNIMAP} \ - $FONT -C "/dev/tty${_index}" - _index=$((_index + 1)) - done -fi - -if [ -n "$KEYMAP" ]; then - msg "Setting up keymap to '${KEYMAP}'..." - loadkeys -q -u ${KEYMAP} -fi - -if [ -n "$HARDWARECLOCK" ]; then - msg "Setting up RTC to '${HARDWARECLOCK}'..." - TZ=$TIMEZONE hwclock --systz \ - ${HARDWARECLOCK:+--$(echo $HARDWARECLOCK |tr A-Z a-z) --noadjfile} || emergency_shell -fi diff --git a/etc/start.d/03-filesystems.sh b/etc/start.d/03-filesystems.sh @@ -1,80 +0,0 @@ -# vim: set ts=4 sw=4 et: - -[ -n "$VIRTUALIZATION" ] && return 0 - -msg "Remounting rootfs read-only..." -mount -o remount,ro / || emergency_shell - -if [ -x /sbin/dmraid -o -x /bin/dmraid ]; then - msg "Activating dmraid devices..." - dmraid -i -ay -fi - -if [ -x /bin/mdadm ]; then - msg "Activating software RAID arrays..." - mdadm -As -fi - -if [ -x /bin/btrfs ]; then - msg "Activating btrfs devices..." - btrfs device scan || emergency_shell -fi - -if [ -x /sbin/vgchange -o -x /bin/vgchange ]; then - msg "Activating LVM devices..." - vgchange --sysinit -a ay || emergency_shell -fi - -if [ -e /etc/crypttab ]; then - msg "Activating encrypted devices..." - awk -f /usr/share/fiss/crypt.awk /etc/crypttab - - if [ -x /sbin/vgchange -o -x /bin/vgchange ]; then - msg "Activating LVM devices for dm-crypt..." - vgchange --sysinit -a ay || emergency_shell - fi -fi - -if [ -x /usr/bin/zpool -a -x /usr/bin/zfs ]; then - if [ -e /etc/zfs/zpool.cache ]; then - msg "Importing cached ZFS pools..." - zpool import -N -a -c /etc/zfs/zpool.cache - else - msg "Scanning for and importing ZFS pools..." - zpool import -N -a -o cachefile=none - fi - - msg "Mounting ZFS file systems..." - zfs mount -a -l - - msg "Sharing ZFS file systems..." - zfs share -a - - # NOTE(dh): ZFS has ZVOLs, block devices on top of storage pools. - # In theory, it would be possible to use these as devices in - # dmraid, btrfs, LVM and so on. In practice it's unlikely that - # anybody is doing that, so we aren't supporting it for now. -fi - -[ -f /fastboot ] && FASTBOOT=1 -[ -f /forcefsck ] && FORCEFSCK="-f" -for arg in $(cat /proc/cmdline); do - case $arg in - fastboot) FASTBOOT=1;; - forcefsck) FORCEFSCK="-f";; - esac -done - -if [ -z "$FASTBOOT" ]; then - msg "Checking filesystems:" - fsck -A -T -a -t noopts=_netdev $FORCEFSCK - if [ $? -gt 1 ]; then - emergency_shell - fi -fi - -msg "Mounting rootfs read-write..." -mount -o remount,rw / || emergency_shell - -msg "Mounting all non-network filesystems..." -mount -a -t "nosysfs,nonfs,nonfs4,nosmbfs,nocifs" -O no_netdev || emergency_shell diff --git a/etc/start.d/04-swap.sh b/etc/start.d/04-swap.sh @@ -1,6 +0,0 @@ -# vim: set ts=4 sw=4 et: - -[ -n "$VIRTUALIZATION" ] && return 0 - -msg "Initializing swap..." -swapon -a || emergency_shell diff --git a/etc/start.d/05-misc.sh b/etc/start.d/05-misc.sh @@ -1,25 +0,0 @@ -# vim: set ts=4 sw=4 et: - -install -m0664 -o root -g utmp /dev/null /run/utmp -halt -B # for wtmp - -if [ -z "$VIRTUALIZATION" ]; then - msg "Seeding random number generator..." - seedrng || true -fi - -msg "Setting up loopback interface..." -ip link set up dev lo - -[ -r /etc/hostname ] && read -r HOSTNAME < /etc/hostname -if [ -n "$HOSTNAME" ]; then - msg "Setting up hostname to '${HOSTNAME}'..." - printf "%s" "$HOSTNAME" > /proc/sys/kernel/hostname -else - msg_warn "Didn't setup a hostname!" -fi - -if [ -n "$TIMEZONE" ]; then - msg "Setting up timezone to '${TIMEZONE}'..." - ln -sf "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime -fi diff --git a/etc/start.d/08-sysctl.sh b/etc/start.d/08-sysctl.sh @@ -1,20 +0,0 @@ -# vim: set ts=4 sw=4 et: - -if [ -x /sbin/sysctl -o -x /bin/sysctl ]; then - msg "Loading sysctl(8) settings..." - mkdir -p /run/vsysctl.d - for i in /run/sysctl.d/*.conf \ - /etc/sysctl.d/*.conf \ - /usr/local/lib/sysctl.d/*.conf \ - /usr/lib/sysctl.d/*.conf; do - - if [ -e "$i" ] && [ ! -e "/run/vsysctl.d/${i##*/}" ]; then - ln -s "$i" "/run/vsysctl.d/${i##*/}" - fi - done - for i in /run/vsysctl.d/*.conf; do - sysctl -p "$i" - done - rm -rf -- /run/vsysctl.d - sysctl -p /etc/sysctl.conf -fi diff --git a/etc/start.d/09-fiss.sh b/etc/start.d/09-fiss.sh @@ -1,2 +0,0 @@ -# create files for controlling fiss -mkdir -p /run/fiss/log diff --git a/etc/start.d/97-dmesg.sh b/etc/start.d/97-dmesg.sh @@ -1,6 +0,0 @@ -dmesg >/var/log/dmesg.log -if [ $(sysctl -n kernel.dmesg_restrict 2>/dev/null) -eq 1 ]; then - chmod 0600 /var/log/dmesg.log -else - chmod 0644 /var/log/dmesg.log -fi diff --git a/etc/start.d/98-sbin-merge.sh b/etc/start.d/98-sbin-merge.sh @@ -1,11 +0,0 @@ -if [ -d /usr/sbin -a ! -L /usr/sbin ]; then - for f in /usr/sbin/*; do - if [ -f $f -a ! -L $f ]; then - msg "Detected $f file, can't create /usr/sbin symlink." - return 0 - fi - done - msg "Creating /usr/sbin -> /usr/bin symlink, moving existing to /usr/sbin.old" - mv /usr/sbin /usr/sbin.old - ln -sf bin /usr/sbin -fi diff --git a/etc/start.d/99-cleanup.sh b/etc/start.d/99-cleanup.sh @@ -1,10 +0,0 @@ -# vim: set ts=4 sw=4 et: - -if [ ! -e /var/log/wtmp ]; then - install -m0664 -o root -g utmp /dev/null /var/log/wtmp -fi -if [ ! -e /var/log/btmp ]; then - install -m0600 -o root -g utmp /dev/null /var/log/btmp -fi -install -dm1777 /tmp/.X11-unix /tmp/.ICE-unix -rm -f /etc/nologin /forcefsck /forcequotacheck /fastboot diff --git a/etc/stop.d/20-rc-shutdown.sh b/etc/stop.d/20-rc-shutdown.sh @@ -1 +0,0 @@ -[ -x /etc/rc.shutdown ] && /etc/rc.shutdown diff --git a/etc/stop.d/30-seedrng.sh b/etc/stop.d/30-seedrng.sh @@ -1,4 +0,0 @@ -if [ -z "$VIRTUALIZATION" ]; then - msg "Saving random number generator seed..." - seedrng -fi diff --git a/etc/stop.d/40-hwclock.sh b/etc/stop.d/40-hwclock.sh @@ -1,3 +0,0 @@ -if [ -z "$VIRTUALIZATION" -a -n "$HARDWARECLOCK" ]; then - hwclock --systohc ${HARDWARECLOCK:+--$(echo $HARDWARECLOCK |tr A-Z a-z)} -fi diff --git a/etc/stop.d/50-wtmp.sh b/etc/stop.d/50-wtmp.sh @@ -1 +0,0 @@ -halt -w diff --git a/etc/stop.d/60-udev.sh b/etc/stop.d/60-udev.sh @@ -1,4 +0,0 @@ -if [ -z "$VIRTUALIZATION" ]; then - msg "Stopping udev..." - udevadm control --exit -fi diff --git a/etc/stop.d/70-pkill.sh b/etc/stop.d/70-pkill.sh @@ -1,5 +0,0 @@ -msg "Sending TERM signal to processes..." -pkill --inverse -s0,1 -TERM -sleep 1 -msg "Sending KILL signal to processes..." -pkill --inverse -s0,1 -KILL diff --git a/etc/stop.d/80-filesystems.sh b/etc/stop.d/80-filesystems.sh @@ -1,14 +0,0 @@ -if [ -z "$VIRTUALIZATION" ]; then - msg "Unmounting filesystems, disabling swap..." - swapoff -a - umount -r -a -t nosysfs,noproc,nodevtmpfs,notmpfs - msg "Remounting rootfs read-only..." - mount -o remount,ro / -fi - -sync - -if [ -z "$VIRTUALIZATION" ]; then - deactivate_vgs - deactivate_crypt -fi diff --git a/etc/stop.d/90-kexec.sh b/etc/stop.d/90-kexec.sh @@ -1,7 +0,0 @@ -if [ -z "$VIRTUALIZATION" ]; then - if [ -e /run/fiss/reboot ] && command -v kexec >/dev/null; then - msg "Triggering kexec..." - kexec -e 2>/dev/null - # not reached when kexec was successful. - fi -fi