← Back to team overview

marionnet-dev team mailing list archive

[Branch ~marionnet-drivers/marionnet/trunk] Rev 431: Added an hook mecanism in order to dynamically patch virtual machines built (and installed) after...

 

------------------------------------------------------------
revno: 431
committer: Jean-Vincent Loddo <loddo@xxxxxxxxxxxxxxxxxxxx>
branch nick: marionnet
timestamp: Sun 2013-07-07 22:34:45 +0200
message:
  Added an hook mecanism in order to dynamically patch virtual machines built (and installed) after July 2013. When the user selects a machine, for instance `machine-debian-wheezy-42007', marionnet searches for a related file ending with the suffix ".relay", for instance `machine-debian-wheezy-42007.relay'. If such file is found, marionnet makes a copy of this file into the guest directory /mnt/hostfs/. In this way, the file will be sourced as final step of the script `/etc/init.d/marionnet_relay' during the bootstrap process of the virtual machine. Example: if a new feature that requires the existence of /dev/tty12 on VM is developed in marionnet but our `machine-debian-wheezy-42007' doesn't have /dev/tty12, we can simply create a file `machine-debian-wheezy-42007.relay' with the following lines:  
  ---
  [[ -e /dev/tty12 ]] || mknod /dev/tty12 c 4 12
  chown -v root:tty /dev/tty12 
  ---
added:
  share/filesystems/machine-template.relay
modified:
  disk.ml
  disk.mli
  machine.ml
  router.ml
  simulation_level.ml
  simulation_level.mli
  user_level.ml


--
lp:marionnet
https://code.launchpad.net/~marionnet-drivers/marionnet/trunk

Your team marionnet-dev is subscribed to branch lp:marionnet.
To unsubscribe from this branch go to https://code.launchpad.net/~marionnet-drivers/marionnet/trunk/+edit-subscription