Skip to content

Instantly share code, notes, and snippets.

@pavoldomin
Created January 29, 2013 18:02
Show Gist options
  • Save pavoldomin/adbaca2ba03c4f9ae85e to your computer and use it in GitHub Desktop.
Save pavoldomin/adbaca2ba03c4f9ae85e to your computer and use it in GitHub Desktop.
2013-01-29 18:37:42 Including output/ISO/Linux-i386/90_transfer_image.sh
+ . /usr/share/rear/output/ISO/Linux-i386/90_transfer_image.sh
++ [[ -s /var/lib/rear/output/rear-eahlx01.iso ]]
++ StopIfError 'Image /var/lib/rear/output/rear-eahlx01.iso is missing or empty.'
++ (( 0 != 0 ))
++ [[ -z nfs://eahlx-rear/rear-test/iso ]]
+++ url_scheme nfs://eahlx-rear/rear-test/iso
+++ local url=nfs://eahlx-rear/rear-test/iso
+++ local scheme=nfs
+++ echo nfs
+++ grep -q :
+++ echo nfs
++ local scheme=nfs
+++ url_host nfs://eahlx-rear/rear-test/iso
+++ local url=nfs://eahlx-rear/rear-test/iso
+++ local host=eahlx-rear/rear-test/iso
+++ echo eahlx-rear
++ local server=eahlx-rear
+++ url_path nfs://eahlx-rear/rear-test/iso
+++ local url=nfs://eahlx-rear/rear-test/iso
+++ local path=eahlx-rear/rear-test/iso
+++ echo /rear-test/iso
++ local path=/rear-test/iso
++ case "$scheme" in
++ [[ DP != \N\E\T\F\S ]]
+++ output_path nfs /rear-test/iso
+++ local scheme=nfs
+++ local path=/rear-test/iso
+++ case $scheme in
+++ path=/tmp/rear.VWuEgiTSfpFZNdP/outputfs/eahlx01
+++ echo /tmp/rear.VWuEgiTSfpFZNdP/outputfs/eahlx01
++ local opath=/tmp/rear.VWuEgiTSfpFZNdP/outputfs/eahlx01
++ LogPrint 'Transferring ISO image to nfs://eahlx-rear/rear-test/iso.'
++ Log 'Transferring ISO image to nfs://eahlx-rear/rear-test/iso.'
++ test 1 -gt 0
+++ Stamp
+++ date '+%Y-%m-%d %H:%M:%S '
++ echo '2013-01-29 18:37:42 Transferring ISO image to nfs://eahlx-rear/rear-test/iso.'
2013-01-29 18:37:42 Transferring ISO image to nfs://eahlx-rear/rear-test/iso.
++ Print 'Transferring ISO image to nfs://eahlx-rear/rear-test/iso.'
++ test 1
++ echo -e 'Transferring ISO image to nfs://eahlx-rear/rear-test/iso.'
++ cp -v /var/lib/rear/output/rear-eahlx01.iso /tmp/rear.VWuEgiTSfpFZNdP/outputfs/eahlx01/
`/var/lib/rear/output/rear-eahlx01.iso' -> `/tmp/rear.VWuEgiTSfpFZNdP/outputfs/eahlx01/'
cp: cannot create regular file `/tmp/rear.VWuEgiTSfpFZNdP/outputfs/eahlx01/': Not a directory
+ test 1
+ set +x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment