Richard W.M. Jones
9521422ce6
daemon: command: Copy appliance /etc/resolv.conf in before running commands.
...
When you try to run commands for an Ubuntu guest, they fail because in
Ubuntu /etc/resolv.conf is a symlink to /run/... and this turns out
to be a dangling symlink when the Ubuntu guest is mounted up under the
appliance.
Therefore even if the network is enabled, any command which tries to
do name resolution will fail.
Ideally we would like to bind-mount the appliance /etc/resolv.conf
into the sysroot. However this is not possible because mount is buggy
(see comment). So instead we use a complex hack to achieve the same
ends.
Note this is only done if the network is enabled and if /etc in the
guest actually exists. The original /etc/resolv.conf is restored
as soon as the command has run.
2013-10-07 22:01:02 +01:00
..
2013-02-06 13:14:07 +00:00
2012-12-10 16:20:34 +00:00
2013-09-02 19:37:57 +01:00
2013-04-02 12:38:50 +01:00
2013-04-29 15:27:21 +01:00
2013-07-22 13:52:23 +01:00
2013-01-28 18:01:43 +00:00
2013-02-12 13:39:14 +00:00
2013-07-29 14:37:50 +01:00
2013-02-06 13:14:07 +00:00
2013-01-28 18:01:43 +00:00
2013-10-07 22:01:02 +01:00
2013-04-03 12:33:24 +01:00
2013-04-04 14:58:32 +01:00
2013-05-09 15:35:08 +01:00
2013-10-07 22:01:02 +01:00
2013-01-28 18:01:43 +00:00
2013-08-22 19:48:05 +01:00
2013-08-11 19:49:46 +01:00
2013-01-28 18:01:43 +00:00
2013-01-28 18:01:43 +00:00
2013-01-28 18:01:43 +00:00
2011-11-08 14:43:07 +00:00
2013-02-02 13:56:19 +00:00
2013-01-28 18:01:43 +00:00
2013-08-22 19:48:05 +01:00
2012-03-14 19:30:46 +00:00
2013-08-22 19:48:05 +01:00
2012-08-17 16:08:14 +01:00
2013-02-11 13:21:51 +00:00
2013-01-28 18:01:43 +00:00
2013-01-28 18:01:43 +00:00
2013-01-28 18:01:43 +00:00
2012-03-08 14:30:10 +00:00
2013-01-28 18:01:43 +00:00
2013-02-02 13:56:19 +00:00
2013-10-07 22:01:02 +01:00
2013-10-07 22:01:02 +01:00
2013-01-28 18:01:43 +00:00
2013-01-28 18:01:43 +00:00
2013-08-20 18:28:25 +01:00
2013-01-28 18:01:43 +00:00
2009-11-26 11:52:44 +00:00
2013-08-22 19:48:05 +01:00
2013-02-02 13:56:19 +00:00
2012-01-21 21:31:50 +00:00
2013-10-07 17:10:14 +01:00
2013-01-28 18:01:43 +00:00
2013-08-20 18:28:02 +01:00
2013-08-29 11:43:31 +01:00
2013-08-11 17:41:09 +01:00
2013-02-11 13:21:51 +00:00
2013-08-22 19:48:05 +01:00
2013-01-28 18:01:43 +00:00
2013-02-11 13:21:51 +00:00
2013-02-02 13:56:19 +00:00
2013-07-28 19:16:03 +01:00
2013-08-13 15:46:54 +01:00
2013-07-18 14:36:25 +01:00
2012-12-10 16:20:34 +00:00
2012-10-17 11:12:07 +01:00
2013-08-13 15:46:54 +01:00
2013-08-07 14:54:10 +01:00
2013-02-12 17:09:44 +00:00
2013-02-02 13:56:19 +00:00
2013-02-06 13:14:07 +00:00
2013-08-07 12:28:10 +01:00
2011-11-08 14:43:07 +00:00
2013-02-23 20:32:33 +00:00
2012-03-13 08:23:56 +00:00
2013-02-11 13:21:51 +00:00
2013-01-21 17:00:04 +00:00
2013-01-28 18:01:43 +00:00
2013-01-28 18:01:43 +00:00
2012-12-10 16:20:34 +00:00
2013-01-28 18:01:43 +00:00
2011-11-08 14:43:07 +00:00
2012-08-17 16:08:13 +01:00
2013-01-28 18:01:43 +00:00
2013-01-28 18:01:43 +00:00
2013-02-04 21:54:15 +00:00
2013-08-11 19:49:46 +01:00
2013-04-04 18:31:41 +01:00
2013-08-29 13:27:40 +01:00
2012-03-14 19:30:46 +00:00
2011-11-08 14:43:07 +00:00
2013-02-06 13:27:26 +00:00
2011-12-08 11:39:58 +00:00
2012-07-30 15:16:45 +01:00
2013-07-22 13:52:23 +01:00
2013-01-28 18:01:43 +00:00
2013-08-22 19:48:05 +01:00
2013-10-03 18:17:39 +01:00
2013-08-31 21:29:16 +01:00
2013-01-28 18:01:43 +00:00