=== alexpilotti_ is now known as alexpilotti | ||
PedroAlvarez | Hi! How can I know if cloud-init is installed on my OS? | 10:10 |
---|---|---|
PedroAlvarez | btw,. smoser, I hacked the setup script to support an older grep version. | 10:15 |
PedroAlvarez | The grep commands on the script are using perl regular expressions | 10:16 |
kwadronaut | PedroAlvarez: which OS are you using? | 11:20 |
PedroAlvarez | kwadronaut: custom core linux distro | 11:21 |
kwadronaut | i don't know that one, i'd say use your package manager and see if it's installed, have a look in /etc/cloud* /var/log/cloud* do a find for CloudConfig on your filesystem. | 11:31 |
PedroAlvarez | kwadronaut: Sorry, you miss understood me, Is not a distro. | 11:32 |
PedroAlvarez | It wasn't installed. Now I have it working in my OS, time to solve dependencies! :) thanks! | 11:33 |
smoser | PedroAlvarez, so 'tools/read-dependencies' wsa giving you grief? if you have a suitable replacement for that grep, that is fine. | 12:48 |
PedroAlvarez | smoser: the grep commands in 'tools/read-dependencies' works fine without the '-P' option. | 12:54 |
PedroAlvarez | smoser: but I had to change the 'tools/read-version' grep's regular expression, using '[0-9][0-9]*' instead '\d+'. | 12:56 |
smoser | PedroAlvarez, does this work for you: http://paste.ubuntu.com/6070291/ | 12:58 |
PedroAlvarez | smoser: I did this and it worked: http://paste.ubuntu.com/6070304/ | 13:01 |
smoser | http://paste.ubuntu.com/6070306/ | 13:02 |
smoser | can you try that diff, pedro ? | 13:02 |
smoser | PedroAlvarez, | 13:02 |
smoser | or i could do them both with sed. does your sed have '-n' ? | 13:04 |
smoser | VERSION=$(sed -n '/^[0-9]\+[.][0-9]\+[.][0-9]\+:/ { s/://; p; :a;n; ba}' "$CHNG_LOG") | 13:08 |
PedroAlvarez | sorry smoser: I cannot send you diff now. | 13:10 |
PedroAlvarez | I used this and worked fine | 13:11 |
PedroAlvarez | VERSION=$(grep "[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*:" "$CHNG_LOG" | cut -f1 -d ":" | head -n 1) | 13:11 |
smoser | well, if youcould tell me if this works, i'd appreciate it. | 13:11 |
smoser | http://paste.ubuntu.com/6070331/ | 13:11 |
smoser | i suspect it does | 13:11 |
smoser | sed -n is nothing new. | 13:11 |
PedroAlvarez | -nSuppress automatic printing of pattern space | 13:11 |
PedroAlvarez | supported here ;) | 13:11 |
smoser | right. | 13:11 |
smoser | it was supported on aix in 1999, so i figure its pretty safe. | 13:12 |
PedroAlvarez | smoser: I will tell you later if it work, thanks for helping | 13:13 |
PedroAlvarez | s/work/works/ | 13:13 |
smoser | http://paste.ubuntu.com/6071174/ | 17:01 |
smoser | harlowja, ^ is a "shell parser" | 17:01 |
smoser | http://paste.ubuntu.com/6071190/ | 17:05 |
smoser | and there it runs with 'bash -r' | 17:05 |
smoser | https://gist.github.com/smoser/6466708 | 17:09 |
harlowja | holy crap | 17:15 |
harlowja | your shell foo is better than mine, ha | 17:16 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!