Commit graph

13 commits

Author SHA1 Message Date
Anders Ingemann
be96e4c13f Move code into proper package folder 2014-04-02 21:26:13 +02:00
Tiago Ilieve
c22c6fe69d Comment the usage of log_call()
Add two comments to the InstallGuestAdditions, explaining why its return
code will not be checked with `log_check_call()` or even manually
grabbing the status informed by `log_call()` itself.

Previously discussed on the #55 issue and 43e3d96 commit.
2014-04-02 11:43:13 -03:00
Tiago Ilieve
0fb8b38158 Remove status/out/err atribution from log_call 2014-04-02 00:31:22 -03:00
Tiago Ilieve
43e3d9678a Don't check Guest Additions installation status
I've been discussing that with Anders for over a week and we agreed that
checking the return code of the Guest Additions installation is just a
waste of time. It seems to return 1 no matter what happen, like:

- It has been launched without administrator privileges: OK
- Requirements like bzip2 and gcc are missing: OK
- Kernel headers or dkms are missing: OK
- It was installed successfully, but without X11 drivers: ???

There isn't even a way (at least until the current 4.3.x version) to
disable the X11 drivers installation. The `--nox11` option, just "Do not
spawn an xterm".

And the worst part: until the version 4.2.x, it returned 0 if it could
be installed with no errors beside this one about the missing X11
drivers. This means that this verification will most likely fail on any
other version older than 4.3.x, preventing the build from finishing in a
successful way. So, we can't really rely on its return code whatsoever.

That said, neither him or me likes the idea of ignoring the return code
of a command. It just happens that we can't do anything about that.
2014-04-01 23:37:45 -03:00
Tiago Ilieve
b09b1239f1 Avoid hard-coded command paths 2014-03-26 07:19:09 -03:00
Tiago Ilieve
5a9e76c89d Stop VBoxService after guest additions install 2014-03-25 23:47:04 -03:00
Anders Ingemann
851389da09 Rely on $PATH to resolve commands. Fixes #12 2014-02-27 23:03:23 +01:00
Anders Ingemann
45521b2377 Merge remote and local package array in manifest
This allows us to specify the order of installation for packages
Fixes #127
2014-01-12 12:46:59 +01:00
Anders Ingemann
0092e1c2c2 Don't instantiate tasks
In practice they are just typed functions with attributes, having a reference to an object is just confusing.
So: Task.run() is now a classmethod
2014-01-06 22:58:21 +01:00
Anders Ingemann
b1195c5c3b Fail when guest add. install exits with $? != 1 2014-01-05 02:25:25 +01:00
Anders Ingemann
2e6478f8bb Automatically install correct linux headers for guest additions 2014-01-05 02:25:25 +01:00
Anders Ingemann
1c93094833 Integrated package plugin with base system
New phase introduced "package installation" (fixes #114)
Apt source lines are now parsed, this allows to verify the target release of added packages.
All packages (except locales) are now installed *after* bootstrapping (fixes #123)
Added env argument to log_(check_)call
HostDependencies have been refactored a little
2013-12-29 20:58:06 +01:00
Anders Ingemann
d0ec90f491 Support installation of VirtualBox Guest Additions 2013-12-15 17:25:57 +01:00