Skip to content

Instantly share code, notes, and snippets.

@dqminh
Created March 10, 2015 18:19
Show Gist options
  • Save dqminh/b63dea986033f714ba82 to your computer and use it in GitHub Desktop.
Save dqminh/b63dea986033f714ba82 to your computer and use it in GitHub Desktop.
Start(process *Process, hooks map[Event][]string)
-> Start(p, map[Event][]string{
"premount": {"/usr/local/bin/backup-tmp"}, // executed in mnt namespace, before setting any mount points
"postmount": {"/usr/local/bin/restore-tmp"}, // executed in mnt namespace, after setting any mount points, before pivot root
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment