mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
540 B

  1. #!/bin/sh
  2. # read root parameter from cmdline
  3. root=$(sed 's/.*\<root=\([^ ]*\).*/\1/' /proc/cmdline)
  4. # set $(< /proc/cmdline ) ; for arg ; do [[ ${arg} == root=* ]] && root=${arg#root=}
  5. if [ ! -e "$root" ]
  6. then
  7. echo "your root <$root> does not exist."
  8. else
  9. mount $root /real-root
  10. fi
  11. # thanks udevd. you did a great job.
  12. # now go away and let the real system do its work.
  13. killall udevd
  14. # if [ -e /real-root/dev ]
  15. # then
  16. # mount --move /dev /real-root/dev
  17. # mount --move /sys /real-root/sys
  18. # mount --move /proc /real-root/proc
  19. # fi