{"id":326,"date":"2015-03-09T12:33:18","date_gmt":"2015-03-09T12:33:18","guid":{"rendered":"http:\/\/www.flat-planet.net\/?p=326"},"modified":"2015-03-09T12:33:18","modified_gmt":"2015-03-09T12:33:18","slug":"customising-arista-eos","status":"publish","type":"post","link":"https:\/\/flat-planet.net\/?p=326","title":{"rendered":"Customising Arista EOS"},"content":{"rendered":"<p>Arista EOS is very customisable, but if you want to customise the image you are going to deploy it can take a little work. The SWI EOS image (the part we care about anyway) is basically a squash-fs file system wrapped up as an uncompressed zip image (store).<\/p>\n<p>To get at the interesting bits:<\/p>\n<ol>\n<li><code>unzip EOS-4.14.6M.swi<\/code><\/li>\n<li><code>unsquashfs rootfs-i386.sqsh<\/code> (as root)<\/li>\n<li>Make any changes you want (add files, edit the python files, whatever)<\/li>\n<li>Delete the original rootfs-i386.sqsh, and then make a new one <code>mksquashfs \u00a0squashfs-root\/ rootfs-i386.sqsh<\/code><\/li>\n<li>Zip everything back up again: <code>zip -Z store EOS-4.14.6M_custom.swi boot0 initrd-i386 linux-i386 rootfs-i386.sqsh version<\/code><\/li>\n<\/ol>\n<p>Of course it is worth noting that the this would violate the Arista license agreement:<\/p>\n<blockquote><p>Customer shall have no right and Customer specifically agrees not to:<br \/>\n&#8230;<br \/>\n(iii) decompile, decrypt, reverse engineer, disassemble or otherwise reduce the Software to human-readable form ..<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Arista EOS is very customisable, but if you want to customise the image you are going to deploy it can take a little work. The SWI EOS image (the part we care about anyway) is basically a squash-fs file system wrapped up as an uncompressed zip image (store). To get at the interesting bits: unzip [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,96],"tags":[42,97,106,165,166],"series":[],"class_list":["post-326","post","type-post","status-publish","format-standard","hentry","category-linux","category-arista","tag-linux-2","tag-arista-2","tag-eos","tag-customisation","tag-squashfs"],"_links":{"self":[{"href":"https:\/\/flat-planet.net\/index.php?rest_route=\/wp\/v2\/posts\/326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flat-planet.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/flat-planet.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/flat-planet.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flat-planet.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=326"}],"version-history":[{"count":1,"href":"https:\/\/flat-planet.net\/index.php?rest_route=\/wp\/v2\/posts\/326\/revisions"}],"predecessor-version":[{"id":327,"href":"https:\/\/flat-planet.net\/index.php?rest_route=\/wp\/v2\/posts\/326\/revisions\/327"}],"wp:attachment":[{"href":"https:\/\/flat-planet.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/flat-planet.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/flat-planet.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=326"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/flat-planet.net\/index.php?rest_route=%2Fwp%2Fv2%2Fseries&post=326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}