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