gen_rootfs.sh 972 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/sh
  2. export MPS_PATH=/opt/mps
  3. export MILIS_PATH=/tmp/sys/usr/milis
  4. git clone https://notabug.org/milislinux/mps $MPS_PATH
  5. cd $MPS_PATH
  6. bash derle.sh $MPS_PATH
  7. cd bin
  8. ./mps -v && ./mps -v
  9. nano ../conf/conf.lua
  10. ./mps --initfs --kok=/tmp/sys
  11. ./mps --ilk --kok=/tmp/sys
  12. ./mps -G --kok=/tmp/sys
  13. ./mps -GG --kok=/tmp/sys
  14. ./mps -BG --kok=/tmp/sys
  15. ./mps kur --dosya=/tmp/sys/usr/milis/talimatname/1/order --kurkos=0 --koskur=0 --kok=/tmp/sys
  16. cp -r $MPS_PATH /tmp/sys/usr/milis/mps
  17. # alttaki komutlar chroot içinde
  18. chmod +x enter-chroot
  19. ./enter-chroot /tmp/sys
  20. dracut -N --force --xz --add 'dmsquash-live pollcdrom' --omit systemd /boot/initrd_live `ls /usr/lib/modules`
  21. cd /usr/milis/mps
  22. bash derle.sh
  23. # gerekli servislerin kurulması
  24. cd /usr/milis/ayarlar/servisler
  25. make kur-random
  26. rm -rf /var/cache/mps/depo/*
  27. rm -f /root/.bash_history
  28. exit
  29. # iso yapma
  30. cd /opt
  31. git clone https://notabug.org/milislinux/imaj-uretici-2
  32. cd /opt/imaj-uretici-2.0
  33. bash iso_olustur.sh /tmp/sys