)]}'
{"make_swap.sh":[{"author":{"_account_id":4146,"name":"Clark Boylan","email":"cboylan@sapwetik.org","username":"cboylan"},"change_message_id":"42f7b5b8a71740f1f70bd4ce39eb9133fc4596de","unresolved":false,"context_lines":[{"line_number":23,"context_line":"    fi"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    # Avoid using config drive device for swap"},{"line_number":26,"context_line":"    if [ -n \"$DEV\" ] \u0026\u0026 ! blkid ${DEV}1 | grep TYPE ; then"},{"line_number":27,"context_line":"        MEMKB\u003d`grep MemTotal /proc/meminfo | awk \u0027{print $2; }\u0027`"},{"line_number":28,"context_line":"        # Use the nearest power of two in MB as the swap size."},{"line_number":29,"context_line":"        # This ensures that the partitions below are aligned properly."}],"source_content_type":"text/x-sh","patch_set":1,"id":"5f2577a7_fdefce84","line":26,"updated":"2017-09-11 18:52:22.000000000","message":"I think this works. It will match when $DEV1 does not exist and when $DEV1 does not have a filesystem.\n\nThe only other thing I have realized is that we may have more than one partition. So I think a more robust way to do this is to do:\n\n  ! blkid | grep $DEV | grep TRUE\n\nThis will check all the $DEV suffixes for both existing and having filesystems.","commit_id":"f49dfc0c27dc7dc5a199cd44983d21f197e10215"},{"author":{"_account_id":4146,"name":"Clark Boylan","email":"cboylan@sapwetik.org","username":"cboylan"},"change_message_id":"519af9a11dc96d17a4deb3552c3c9ce9d4d1b5a6","unresolved":false,"context_lines":[{"line_number":23,"context_line":"    fi"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    # Avoid using config drive device for swap"},{"line_number":26,"context_line":"    if [ -n \"$DEV\" ] \u0026\u0026 ! blkid ${DEV}1 | grep TYPE ; then"},{"line_number":27,"context_line":"        MEMKB\u003d`grep MemTotal /proc/meminfo | awk \u0027{print $2; }\u0027`"},{"line_number":28,"context_line":"        # Use the nearest power of two in MB as the swap size."},{"line_number":29,"context_line":"        # This ensures that the partitions below are aligned properly."}],"source_content_type":"text/x-sh","patch_set":1,"id":"5f2577a7_5daee22e","line":26,"in_reply_to":"5f2577a7_fdefce84","updated":"2017-09-11 18:55:23.000000000","message":"This should be | grep TYPE. Sorry.","commit_id":"f49dfc0c27dc7dc5a199cd44983d21f197e10215"}]}
