Advertising
- /usr/share/initramfs-tools/scrip
- Wednesday, December 19th, 2007 at 8:32:15pm UTC
- #!/bin/sh -e
- # initramfs premount script for udev
- PREREQ=""
- # Output pre-requisites
- prereqs()
- {
- echo "$PREREQ"
- }
- case "$1" in
- prereqs)
- prereqs
- exit 0
- ;;
- esac
- # Stop udevd, we'll miss a few events while we run init, but we catch up
- pkill udevd
- # udevd might have been in the middle of something when we killed it,
- # but it doesn't matter because we'll do everything again in userspace
- rm -rf /dev/.udev/queue
- # Move the real filesystem's /dev to beneath our tmpfs, then move it all
- # to the real filesystem
- mkdir -m 0700 -p /dev/.static/dev
- mount -n -o bind ${rootmnt}/dev /dev/.static/dev
- mount -n -o move /dev ${rootmnt}/dev
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.