Commit graph

1095 commits

Author SHA1 Message Date
Anders Ingemann
31b9cb5caa The dmsetup function still divided self.size by 512, which is not necessary any longer since we are calculating in actual sectors now 2015-04-16 22:21:43 +02:00
Anders Ingemann
44dcdec0ec No need to skip jessie/extlinux tests any longer 2015-04-16 22:21:43 +02:00
Anders Ingemann
744001a9ab grub now works on jessie 2015-04-16 22:21:43 +02:00
Anders Ingemann
8d8a823092 Properly detect successful boot on jessie 2015-04-16 22:21:43 +02:00
Anders Ingemann
6b6b636f3b extlinux is now running on jessie 2015-04-16 22:21:43 +02:00
Anders Ingemann
f6e4903a8e Update the kernel image after package installation 2015-04-16 22:21:43 +02:00
Anders Ingemann
ac7e32d35e Preserve stacktraces when reraising exceptions 2015-04-16 22:21:43 +02:00
Anders Ingemann
b67b174eb5 Extend build server logging when downloading an image 2015-04-16 22:21:43 +02:00
Anders Ingemann
149db4c989 Add new task: DeterminKernelVersion, this can potentially fix a lot of small problems 2015-04-16 22:21:43 +02:00
Anders Ingemann
767b32d20e Improve read_from_socket, a lot... 2015-04-16 22:21:43 +02:00
Anders Ingemann
7ef88d284d Don't try unlocking the machine before locking it
If it's already locked, that should be an error.
2015-04-16 22:21:43 +02:00
Anders Ingemann
0fe3c9e984 Cleanup adfter keyboard interrupts (also do a better job of cleaning up) 2015-04-16 22:21:42 +02:00
Anders Ingemann
87f2d889b7 Delete image after use, apparently the vbox version of delete is to do nothing 2015-04-16 22:21:42 +02:00
Anders Ingemann
bd4cf250a2 Fix spelling 2015-04-16 22:21:42 +02:00
Anders Ingemann
e1946fcb68 Simpler check for whether to create image or use image in prebootstrapped plugin 2015-04-16 22:21:42 +02:00
Anders Ingemann
eaf8f8ea0f Remove leftover pprint 2015-04-16 22:21:42 +02:00
Anders Ingemann
5383811ecc Allow serialization of PartitionGap class 2015-04-16 22:21:42 +02:00
Anders Ingemann
16eaade09a Fix sectors/bytes type problem with single partition 2015-04-16 22:21:42 +02:00
Anders Ingemann
f43e2480a5 Allow serialization of Sectors class 2015-04-16 22:21:42 +02:00
Anders Ingemann
b537f2d987 Remove __abs__ from bytes and sectors, one should convert to int instead 2015-04-16 22:21:42 +02:00
Anders Ingemann
7f84e405f0 Cast to int before comparing in ec2 validate_manifest() 2015-04-16 22:21:42 +02:00
Anders Ingemann
7310129f4e Disable getty processes on jessie through logind config 2015-04-16 22:21:42 +02:00
Anders Ingemann
4be7e8966c Add {posargs} to nosetest commands 2015-04-16 22:21:42 +02:00
Anders Ingemann
1cca37985d Mov tox main config to top of tox file 2015-04-16 22:21:13 +02:00
Anders Ingemann
a476248ed6 Partition volumes by sectors instead of bytes
This allows for finer grained control over the partition sizes and gaps
2015-04-16 22:21:13 +02:00
Anders Ingemann
3ff1c57980 Don't require qemu for raw volumes, use truncate instead 2015-04-16 22:21:13 +02:00
Anders Ingemann
9a6975ce7d Add new Sectors unit, enhance Bytes unit, add unit tests for both 2015-04-16 22:21:12 +02:00
Anders Ingemann
456a68ea25 Remove unneccessary import 2015-04-16 22:21:12 +02:00
Anders Ingemann
6ade2a90c2 More verbose image name 2015-04-16 22:21:12 +02:00
Anders Ingemann
7b77b484f2 Fix #179 2015-04-16 22:21:12 +02:00
Anders Ingemann
5823c9119b Split grub and extlinux installs into separate modules 2015-04-16 22:21:12 +02:00
Anders Ingemann
ce8dd02cbf Fix dict merge conflict in test_unpartitioned_extlinux_unstable 2015-04-16 22:18:58 +02:00
Anders Ingemann
a241842ef9 Better dict merging (less side-effectful) 2015-04-16 22:18:58 +02:00
Anders Ingemann
b6976eb6e9 Lowercase L for InstallExlinux taskname 2015-04-16 22:18:58 +02:00
Anders Ingemann
2aebc870a4 Fix extlinux config for squeeze 2015-04-16 22:18:57 +02:00
Anders Ingemann
81060b2439 5ffbdc4 made no sense, apt_proxy was already a build setting 2015-04-16 22:18:57 +02:00
Anders Ingemann
943aab111f Add some more tests 2015-04-16 22:18:57 +02:00
Anders Ingemann
bbec32a987 Use stable/unstable, rather than wheezy/jessie 2015-04-16 22:18:57 +02:00
Anders Ingemann
50fabe65ec remove duplicated code 2015-04-16 22:18:57 +02:00
Anders Ingemann
8bb34c604b Fix serious bug in merge_dicts where the original dict would be modified 2015-04-16 22:18:57 +02:00
Anders Ingemann
70c282e804 Add log statements and remove unused SSHRPCManager 2015-04-16 22:18:57 +02:00
Anders Ingemann
9c6af89e78 Abstract bootstrapping, instance creation, booting etc..
This all now runs using a simple with: statement
2015-04-16 22:18:57 +02:00
Anders Ingemann
a11e466611 Generalize reading from socket 2015-04-16 22:18:57 +02:00
Anders Ingemann
c71a8230fe Make tests/ a module, so that test scripts can import and run the tests manually 2015-04-16 22:18:57 +02:00
Anders Ingemann
58d66fea68 Make extlinux output boot messages to the serial console (fixes #136) 2015-04-16 22:18:57 +02:00
Anders Ingemann
200c5086e5 Extend sed_i to raise Exceptions when the expected amount of replacements is not met 2015-04-16 22:15:21 +02:00
Anders Ingemann
27950af66e Check runlevel in order to terminate reading from the console 2015-04-16 22:15:21 +02:00
Anders Ingemann
ed98ab30fd Able to get console output from the machine now!
It's blocking though, so maybe there should be a check for "Entering runlevel: 2" or some shit...
2015-04-16 22:15:21 +02:00
Anders Ingemann
6a0bef147a Refactor. Locking a vbox is now quite a bit easier 2015-04-16 22:15:21 +02:00
Anders Ingemann
6f23bcaafc Add apt_proxy partial 2015-04-16 22:15:21 +02:00