eudev initramfs-tools scripts from devuan
This commit is contained in:
1 parent
bcd1eb52bc
commit
537babea17
4 files changed
+141
-1
No files matched your search
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/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
|
||||
|
||||
Reference in new issue
Block a user