[11:15] vans163: If your shell supports <(...), that might work? === shardy is now known as shardy_lunch === shardy_lunch is now known as shardy [14:13] Odd_Bloke: I need to try but it needs user-data AND meta-data, does it just cat the two? [14:13] if it just needed one I would definetly try piping it in without thinking about it [14:14] I would expect: genisoimage ... <(cat user-data) <(cat meta-data) [14:33] Odd_Bloke: let me try that thats a good idea [18:57] vans163, you could just use cloud-localds too [18:57] which cleans up stuff, and provides the meta-data if you dont need it. [19:04] smoser: that is useful, so I can just pip the (cat user-data) into cloud-localds? http://ubuntu-smoser.blogspot.ca/2013/02/using-ubuntu-cloud-images-without-cloud.html this tutorial does not show how to account for the user-data supplied by user which can be a bash script [19:08] oh. i dont know if it supports user-data from - or not [19:08] let me see [19:08] seems like it does [19:09] smoser: where are you looking if you dont mind me asking, googling does not seem to reveal any documentation [19:09] $ printf '#!/bin/sh\necho hi mom\n' | cloud-localds -v my.img - [19:09] wrote my.img with filesystem=iso9660 and diskformat=raw [19:10] vans163, i looked at source code :) and source code I wrote even ;) [19:10] http://bazaar.launchpad.net/~cloud-utils-dev/cloud-utils/trunk/view/head:/bin/cloud-localds [19:10] http://bazaar.launchpad.net/~cloud-utils-dev/cloud-utils/trunk/view/head:/bin/cloud-localds#L206 [19:11] but as Odd_Bloke suggested above, bash with <() basically makes a temp file and then cleans it up i think. [19:12] smoser: ty is that () really critical? so in my case it would look like <("#cloud-config\npassword: ...") ? does () not mean execute whats inside? [19:15] vans163, see 'Process Substitution' in 'man bash' [19:16] $ bash -c 'for i in "$@"; do echo -n $i:; cat "$i"; done' -- <(echo first) <(echo another) [19:17] /dev/fd/63:first [19:17] /dev/fd/62:another [19:18] in your case, if you just need the one thing, then its sufficient to do like i did above with printf, or you could do a "here document" [19:18] $ cloud-localds -v my.img - < #!/bin/sh [19:18] > hi mom [19:18] > END [19:19] note, the '> ' are the prefix the shell added to m ulti line input. [19:19] sell, shoot. but the '#!/bin/sh' was on a new line too' p [19:19] better: http://paste.ubuntu.com/23476971/ [19:27] smoser: ah ty for that explain, i think if it works that way, geniso should do the trick, I do not see the benefit of cloud-localds for simple usecase like mine [22:04] smoser: why is there both a "set hostname (cc_set_hostname)" and an "update hostname (cc_update_hostname)" modules? They both use the same keys, so does that mean they both always get run when set? [22:10] powersj, remind me again if i dont answer. [22:10] i have to go now htough [22:11] smoser: will do thx