rogersik / openvz-template-creator Goto Github PK
View Code? Open in Web Editor NEWThe OpenVZ-Template-Creator help you to create easy OpenVZ Templates.
License: Other
The OpenVZ-Template-Creator help you to create easy OpenVZ Templates.
License: Other
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
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.
Am Ende von 1_create_system.sh kriegt man die Fehlermeldung
mount: No such file or directory
bzw bei raus chrooten
umount: .: not mounted
Dadurch sind auch keine Dateien in /tmp/openvz-tc.org
Könnte das jemand mal bitte überprüfen?
/proc und /sys müssen gemountet werden
/etc/init/failsafe.conf
Einkommentieren: "console output"
Danke an Fäb der die Lösung gefunden hat.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.