About This File
https://youtu.be/zOB8-Z7_1Og
#!/bin/bash # Menu clear utilisateur=`users` echo "" Hi, $utilisateur echo "" echo " ?" "Création de votre clef usb - Creating your Flash Drive ?" echo "" # Monter l'installateur echo "Sur quel Support?" echo "" echo "Glissez votre Support dans la fenêtre terminal" echo "" echo "On what media want to install?" echo "" echo "Drag and Drop your Flash Drive" read support echo "" echo "Glissez l'installer OS X dans la fenetre Terminal" echo "" echo "Drag and Drop your installer osx" read installer hdiutil attach "$installer"/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app # Creation d'une image temporaire of 7316mb hdiutil create -o /tmp/Osx -size 7316m -layout SPUD -fs HFS+J -type SPARSE # Monter l'image temporaire hdiutil attach /tmp/Osx.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build # Restorer Base System dans l'image temporaire asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase # Installation des fichiers rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/ # Copie des dépendances d'installation cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/BaseSystem.dmg # Restoration de l'image Systeme sur la clef Usb sudo asr restore -source /Volumes/OS\ X\ Base\ System/ -target "$support" -erase # Démonter l'Installateur hdiutil detach /Volumes/install_app # Démonter l'image Base Système hdiutil detach /Volumes/OS\ X\ Base\ System/ # Effacer l'image Temporaire rm -f /tmp/Osx.sparseimage diskutil rename /Volumes/OS\ X\ Base\ System\ 1 OSX\ Flash\ Drive
What's New in Version 1.1 See changelog
Released
- Simple yet
- osx install can be in any folder
- Good for all installers of the App Store
Recommended Comments