void-packages/srcpkgs/systemd/files/udev.initramfs-bottom

28 lines
352 B
Bash

#!/bin/sh -e
# initramfs premount script for udev
PREREQ=""
# Output pre-requisites
prereqs()
{
echo "$PREREQ"
}
case "$1" in
prereqs)
prereqs
exit 0
;;
esac
# Make the udev daemon exit.
udevadm control --exit
# Clean up udev state stuff.
udevadm info --cleanup-db
# Move /dev to the real filesystem
mount -n -o move /dev ${rootmnt}/dev