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.

36 lines
677 B

  1. #!/bin/bash
  2. mount -t proc none /proc
  3. mount -t tmpfs none /tmp
  4. mount -t devfs none /dev
  5. cd /dev ; rm -f fd
  6. ln -sf /proc/kcore core
  7. ln -sf /proc/self/fd fd
  8. ln -sf fd/0 stdin
  9. ln -sf fd/1 stdout
  10. ln -sf fd/2 stderr
  11. ln -sf misc/psaux mouse
  12. cd /
  13. exec < /dev/console > /dev/console 2> /dev/console ; cd /
  14. export PATH="/sbin:/bin:/usr/sbin:/usr/bin"
  15. for x in /etc/lvp/*.sh ; do
  16. if [ -f "$x" ] ; then
  17. echo ; echo "Running $x ..." ; sh $x
  18. echo "Setup script $x finished."
  19. fi
  20. done
  21. /sbin/startlvp
  22. exec 2>/dev/null
  23. for x in /mnt* ; do
  24. umount ${x}
  25. losetup -d /dev/loop/${x#/mnt}
  26. done
  27. umount /proc
  28. umount /tmp
  29. umount /dev