Skip to content

Instantly share code, notes, and snippets.

@sameo
Last active January 8, 2018 13:26
Show Gist options
  • Select an option

  • Save sameo/6cb675f94ba11f3f9be2cbb5685fb068 to your computer and use it in GitHub Desktop.

Select an option

Save sameo/6cb675f94ba11f3f9be2cbb5685fb068 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e -v
losetup /dev/loop2 /usr/share/clear-containers/clear-containers.img -o $((2048*512))
mount /dev/loop2 $2
cp $1 $2/usr/bin/cc-agent
umount $2
losetup -d /dev/loop2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment