installgentoo.sh 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ##########
  2. ##########
  3. ##########
  4. ##########
  5. ### gentoo
  6. ## this section might be included in a seperate file.
  7. read -p "enter the name of your new distro (anything you like - but keep it short and sweet): " DISTRONAME
  8. echo $DISTRONAME > $WITCH/config.base.txt #1st line
  9. METADISTRO=GENTOO #for further revisions, there's sense in sort-of modularising this with even more functions, so each option can be called from a series of options. make sense? good.
  10. #ARCH="uname -m" #setting this bellow ~ remove if it's all good.
  11. PACKAGEMGR=portage # will need to get this bit made paludis savvy, giving the user the choice, but for now, just telling it to be portage, will do.
  12. #read -p "what is the name of the package manager you want? portage/paludis?" PACKAGEMGR
  13. #echo $PACKAGEMGR was selected as the package manager you want to have installed
  14. #^ but will leave that as the simple form until we've got some headway with paludis (and thus, likely once got some exherbo stuff working too
  15. echo $METADISTRO >> $WITCH/config.base.txt #2nd line
  16. uname -m >> $WITCH/config.base.txt #3rd line
  17. echo $PACKAGEMGR >> $WITCH/config.base.txt #4th line
  18. echo "======================"
  19. DISTRONAME=$(sed -n '1p' $WITCH/config.base.txt)
  20. METADISTRO=$(sed -n '2p' $WITCH/config.base.txt)
  21. ARCH=$(sed -n '3p' $WITCH/config.base.txt)
  22. PACKAGEMGR=$(sed -n '4p' $WITCH/config.base.txt)
  23. echo "DISTRONAME: $DISTRONAME"
  24. echo "METADISTRO: $METADISTRO"
  25. echo "ARCH: $ARCH"
  26. echo "PACKAGEMGR: $PACKAGEMGR"
  27. echo "======================"
  28. sleep 1
  29. clear && $WITCH/procedure.d/driveprep.sh
  30. clear && $WITCH/procedure.d/stageinstall.sh
  31. clear && $WITCH/procedure.d/installpackagemanager.sh
  32. clear && $WITCH/procedure.d/initialmakeconf.sh
  33. # wichroot is only required for actual systems
  34. # for Learnix systems it's not required.
  35. if [ "$DIMG_RUN" == "true" ]; then
  36. echo "The creation of your system has finished."
  37. else
  38. clear && $WITCH/procedure.d/prechroot.sh
  39. clear && $WITCH/procedure.d/wichroot.sh
  40. fi
  41. #...and there we hit the end of the gentoo installation portion of witchcraft
  42. #job done. what's next... u want the deskfigselector() now dont you?
  43. #good, cos it should already be lined up to run, thnx to the stage3 function (as a top level option from cauldren), which calls it straight after running the distroselector function.
  44. #first you get run the witchcraft, thn you choose the cauldren, then you choose a proper stage3 install, then you get the distro, then you get the desktop. ^_^
  45. #... is how this path rolls. ^_^