forked from ungleich-public/cdist
9ad2840600
Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
28 lines
638 B
Bash
Executable file
28 lines
638 B
Bash
Executable file
#!/bin/sh
|
|
|
|
#Create all the symlinks to /bin/busybox
|
|
/bin/busybox --install -s
|
|
|
|
#Mount things needed by this script
|
|
mount -t proc proc /proc
|
|
mount -t sysfs sysfs /sys
|
|
|
|
#Disable kernel messages from popping onto the screen
|
|
echo 0 > /proc/sys/kernel/printk
|
|
|
|
|
|
#Create device nodes
|
|
mknod /dev/null c 1 3
|
|
mknod /dev/tty c 5 0
|
|
mdev -s
|
|
|
|
# udev stuff
|
|
kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf
|
|
systemd-tmpfiles --prefix=/dev --create --boot
|
|
/usr/lib/systemd/systemd-udevd --daemon --resolve-names=never
|
|
udevadm trigger --action=add --type=subsystems
|
|
udevadm trigger --action=add --type=devices
|
|
udevadm settle
|
|
|
|
|
|
exec sh
|