Giter VIP home page Giter VIP logo

openvz-template-creator's People

Contributors

jrocho avatar rogersik avatar v1tzl1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

openvz-template-creator's Issues

Arch Linux Code

Hab ich hier von einen veraltetenTest Arch Branch wiedergefunden.

Den Code kann man noch wiederverwenden falls jemand mal irgendwann ArchLinux Support leisten würde.

case "$input_host_distri" in
      archlinux)
            echo "What distri want you install?"
            echo "Supported:"
            echo "* Arch Linux"
            read input_distri

            mkdir -p $input_path/{cache/pacman/pkg,lib/pacman}
            sed -e 's/x86\_64/i686/g' /etc/pacman.d/mirrorlist > $input_path/mirrorlist
            sed -e 's@/etc/pacman.d/mirrorlist@/opt/arch32/mirrorlist@g' /etc/pacman.conf > $input_path/pacman.conf
            pacman --root $input_path --cachedir $input_path/var/cache/pacman/pkg --config $input_path/pacman.conf -Sy
            pacman --root $input_path --cachedir $input_path/var/cache/pacman/pkg --config $input_path/pacman.conf -S base

Nicht alle Daten werden gelöscht

Erstellt man paar Textdateien in das gewünschte Verzeichnis wo die Distribution installiert werden soll so löscht 1_create_system.sh beim ausführen sie gar nicht.

Ubuntu Installation/Upgrade 11.10

/proc und /sys müssen gemountet werden

/etc/init/failsafe.conf

Einkommentieren: "console output"

Danke an Fäb der die Lösung gefunden hat.

3_cleanup_system.sh - Logs komfortabler löschen?

Also zur Zeit muss man jede einzelne Log Datei eingeben das sieht im Code so aus
http://github.com/RogerSik/OpenVZ-Template-Creator/blob/d6d63a4db5edfe46800c199c45b310b7c00ec52c/3_cleanup_system.sh#L46-51

Ein
> *.log;
funktioniert nicht da die Meldung
bash: *: Mehrdeutige Umlenkung.
rauskommt.

Martin hat vorggeschlagen den Code
find /var/log -type f -exec echo "" > {} ;
zu verwenden jedoch wird dabei nur eine leere Datei mit den Namen {} erstellt.

Einfach löschen kann man die Logs nicht, weil die Programme nicht die Befugnis haben Dateien unter /var/log/ zu erstellen weswegen sie mit einer Fehlermeldung abbrechen würden wenn die leere Logdatei nicht da ist.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.