aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-10-12 09:03:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-10-12 09:03:03 +0200
commitc15d3d5be4011f9bfc7e36fb1629529c1eb2e009 (patch)
treeb9795c693cbbd7d1ee2d6af666981ac861d57517 /init
parent86f6a19d36b1738c1e9d4a95a1c7e7d310f9960c (diff)
Various fixes and cleanups for base upgrade
systemd 234 qemu 2.10 linux 4.13
Diffstat (limited to 'init')
-rwxr-xr-xinit12
1 files changed, 8 insertions, 4 deletions
diff --git a/init b/init
index 031b015..bbc0343 100755
--- a/init
+++ b/init
@@ -3,7 +3,7 @@
# Init script for build2 Build OS.
#
# Loosely based on the one that comes in Debian initrd.img (since we are
-# using its kernel image as is).
+# using its kernel image).
#
trap "exit 1" ERR
set -o errtrace # Trap in functions.
@@ -52,8 +52,7 @@ mount -t tmpfs -o "nodev,nosuid,size=10%,mode=1777" tmpfs /tmp
# Start udev.
#
-# Based on Debian initrd's init-top/udev. Note that we don't stop it at
-# at the end of init.
+# Based on Debian initrd's init-{top,bottom}/udev
#
info "starting udev..."
@@ -63,7 +62,8 @@ fi
SYSTEMD_LOG_LEVEL=info /lib/systemd/systemd-udevd --daemon --resolve-names=never
-udevadm trigger --action=add
+udevadm trigger --type=subsystems --action=add
+udevadm trigger --type=devices --action=add
udevadm settle || true
# Initialize KVM.
@@ -467,6 +467,10 @@ cat <<EOF >/etc/systemd/system/getty@tty1.service.d/noclear.conf
TTYVTDisallocate=no
EOF
+# Stop udev daemon (systemd will start its own).
+#
+udevadm control --exit
+
# Get rid of klibc tools.
#
export PATH=/sbin:/usr/sbin:/bin:/usr/bin