Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

/usr/share/initramfs-tools/scrip
Wednesday, December 19th, 2007 at 8:32:15pm UTC 

  1. #!/bin/sh -e
  2. # initramfs premount script for udev
  3.  
  4. PREREQ=""
  5.  
  6. # Output pre-requisites
  7. prereqs()
  8. {
  9.         echo "$PREREQ"
  10. }
  11.  
  12. case "$1" in
  13.     prereqs)
  14.         prereqs
  15.         exit 0
  16.         ;;
  17. esac
  18.  
  19.  
  20. # Stop udevd, we'll miss a few events while we run init, but we catch up
  21. pkill udevd
  22.  
  23. # udevd might have been in the middle of something when we killed it,
  24. # but it doesn't matter because we'll do everything again in userspace
  25. rm -rf /dev/.udev/queue
  26.  
  27. # Move the real filesystem's /dev to beneath our tmpfs, then move it all
  28. # to the real filesystem
  29. mkdir -m 0700 -p /dev/.static/dev
  30. mount -n -o bind ${rootmnt}/dev /dev/.static/dev
  31. 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.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



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.

comments powered by Disqus
worth-right
worth-right