mirror of
https://git.proxmox.com/git/systemd
synced 2026-02-02 20:42:05 +00:00
Upstream has removed support for a configurable UDEV_ROOT in udev 176
when devtmpfs became mandatory. We already removed this from the SysV
init script in commit dbad4c2a8d.
24 lines
403 B
Bash
24 lines
403 B
Bash
#!/bin/sh -e
|
|
|
|
PREREQS=""
|
|
|
|
prereqs() { echo "$PREREQS"; }
|
|
|
|
case "$1" in
|
|
prereqs)
|
|
prereqs
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
# Stop udevd, we'll miss a few events while we run init, but we catch up
|
|
udevadm control --exit
|
|
|
|
# move the /dev tmpfs to the rootfs
|
|
mount -n -o move /dev ${rootmnt}/dev
|
|
|
|
# create a temporary symlink to the final /dev for other initramfs scripts
|
|
nuke /dev
|
|
ln -s ${rootmnt}/dev /dev
|
|
|