diff options
author | Simon Rettberg | 2013-04-02 21:46:45 +0200 |
---|---|---|
committer | sr | 2013-04-12 19:11:40 +0200 |
commit | b2b7e63a42f01e766b6567f83c5597534e2de500 (patch) | |
tree | 8d21636393492252d97beec7d33d160eeb7cf847 /mltk | |
parent | Remove old remote_builds dir, update .gitignore (diff) | |
download | tm-scripts-b2b7e63a42f01e766b6567f83c5597534e2de500.tar.gz tm-scripts-b2b7e63a42f01e766b6567f83c5597534e2de500.tar.xz tm-scripts-b2b7e63a42f01e766b6567f83c5597534e2de500.zip |
Target 'server' expects remote machine's IP/Hostname as parameter. Add fake remote machine 'local' for local usage.
Diffstat (limited to 'mltk')
-rwxr-xr-x | mltk | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -57,7 +57,7 @@ print_usage() { echo -e "" echo -e "Toolkit for creating preboot mini-linux for OpenSLX NG (mltk)" echo -e "Usage: $(basename ${SELF}) remote <target> [-d] [-c [module]*] [-b [module]*] [-p profile]" - echo -e " $(basename ${SELF}) server [-s] [<target>] [-e stage31|stage32|addons] [-d] [-c]" + echo -e " $(basename ${SELF}) server <remotehost> [-s] [<target>] [-e stage31|stage32|addons] [-d] [-c]" echo -e "" echo -e " Mode:" echo -e " server \t server mode: packs stage3.1, stage3.2 or addons as initramfs/squashfs." @@ -78,14 +78,16 @@ print_usage() { echo -e " remote stage31 -c -b (clean all modules and build all linked modules in remote/targets/stage31 to remote/builds/stage31)" echo -e " remote stage32 -c -b rootfs_stage31 sshd (clean all modules, build base, policykit and sshd in remote/builds/stage32)" echo -e " remote stage32 -c base sshd -b sshd ldm -d (clean base and sshd, build sshd and ldm, be verbose)" - echo -e " server stage32 -e stage32 (pack stage32 as squashfs+initramfs)" - echo -e " server stage31 -c (clean stage31 build under server/remote_builds and initramfs under server/boot)" - echo -e " server addons-eexam -e addons (pack eexam-addons as squashfs)" + echo -e " server 1.2.3.4 -s (sync all builds from remote system 1.2.3.4)" + echo -e " server 1.2.3.4 stage32 -e stage32 (pack stage32 as squashfs+initramfs from remote system 1.2.3.4)" + echo -e " server 1.2.3.4 stage31 -c (clean stage31 build under server/remote_builds and initramfs under server/boot)" + echo -e " server 1.2.3.4 addons-eexam -e addons (pack eexam-addons as squashfs)" echo -e "" echo -e " Existing targets for remote are:" echo -e " $(echo $(ls ${ROOT_DIR}/remote/targets 2>/dev/null || echo "No targets for remote found."))" echo -e " Existing targets for server are:" echo -e "<TODO: Scan mirrored remote machines and the targets they contain>" + echo -e "*** Use 'local' as the remotehost if you're running the server part on the same machine as the remote part ***" echo -e "" } @@ -116,6 +118,9 @@ read_params() { case "$1" in server) MODE="SERVER" + [ "$#" -lt "2" ] && perror "Missing argument to -s (expecting remote host)" + REMOTE_IP="$2" + shift ;; remote) MODE="REMOTE" |