Tiago Ilieve
3131558691
Fix msdos partition/filesystem types definition
...
This closes #142 .
2015-04-25 21:07:48 -03:00
Tiago Ilieve
22760c76db
Revert a2cf28b
( #213 )
...
Looks like we may or may not need to create those uuid links by
ourselves. This patch also adds a verification to not create/delete the
link if it already exists or not, respectively.
2015-04-25 19:24:55 -03:00
Anders Ingemann
a2cf28b054
Revert 03efa0f ( #210 )
...
It seems the bug was only present on my old dev bootstrapping machine
This reverts commit 03efa0ffdf1ee0d3cf81905e6e4d9f5f6aa62143.
2015-04-16 22:22:49 +02:00
Anders Ingemann
f1e4d34eb9
Fix error mentioned in #152 (Pyro4 shouldn't be a dependency)
2015-04-16 22:22:49 +02:00
Anders Ingemann
3c17c756a1
Fix typo in docs
2015-04-16 22:22:48 +02:00
Anders Ingemann
3c5d385a69
Fix grub boot on ec2 hvm jessie
2015-04-16 22:22:48 +02:00
Anders Ingemann
f4851ac06d
fix typo in comment
2015-04-16 22:22:48 +02:00
Anders Ingemann
9101b2e9ec
Add a little helpful not to tasklist ordering warning
2015-04-16 22:22:47 +02:00
Anders Ingemann
50297d790c
Fix problem with 1 MiB too large volume when combining gpt and grub
2015-04-16 22:22:47 +02:00
Anders Ingemann
80ac206fb4
Issue warning when specifying pre/successors across phases
2015-04-16 22:22:47 +02:00
Anders Ingemann
b582bac853
Generally deny installing grub on squeeze
2015-04-16 22:22:47 +02:00
Anders Ingemann
25051d4c04
Improve __getstate__ for bootstrapinfo
...
This approach may be a little hacked, but it works for now and
if it breaks at some point in the future because of e.g. circular references
that bridge will have to be crossed then
2015-04-16 22:21:46 +02:00
Anders Ingemann
e035f83edf
Fix problem when (de-)serializing bootstrapinfo twice
2015-04-16 22:21:46 +02:00
Anders Ingemann
3c642e0b02
Fix serialization of DictClass
...
using it in Queue.put somehow broke it
2015-04-16 22:21:46 +02:00
Anders Ingemann
b067ada15e
Introduce some awesome signal handling
...
We can now press Ctrl+C remotely while any subprocess of the bootstrapping process is running,
previously SIGINTs weren't propagated to the bootstrapping process because there was a thread
in between it all. Now the bootstrapping process is in it's own process group.
2015-04-16 22:21:45 +02:00
Anders Ingemann
4cbc8e4f8e
Related to 26bb907, both gpt and msdos partitions need the 1 sector gap now
2015-04-16 22:21:45 +02:00
Anders Ingemann
a62ce1705a
Remove the PartitionGap class, it's way too much of a hassle to work with
...
Instead pad_start and pad_end have been introduced
2015-04-16 22:21:44 +02:00
Anders Ingemann
e5dd68acc7
Extlinux booting on gpt now working
2015-04-16 22:21:44 +02:00
Anders Ingemann
9a50cea204
Add 1 sector gap between partitions on GPT
2015-04-16 22:21:44 +02:00
Anders Ingemann
4d74c72d99
Simplify GPT a little by explicitly taking care of the GPT primary & secondary
...
Do the math for the GPT offset a little differently
2015-04-16 22:21:44 +02:00
Anders Ingemann
016fef606f
Account for PartitioGap in a few more places
2015-04-16 22:21:44 +02:00
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
ac7e32d35e
Preserve stacktraces when reraising exceptions
2015-04-16 22:21:43 +02:00
Anders Ingemann
16eaade09a
Fix sectors/bytes type problem with single partition
2015-04-16 22:21:42 +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
e8d6e7f602
factor AbstractPartition.Mount out into separate module and make it serializable
2015-04-16 22:15:20 +02:00
Anders Ingemann
e9137ac172
Make serialization a lot more easy to handle
2015-04-16 22:15:20 +02:00
Anders Ingemann
ab18516f79
Support SIGINT over the network
2015-04-16 22:15:20 +02:00
Anders Ingemann
2b6fefd789
Fix serialization of exceptions
2015-04-16 22:15:20 +02:00
Anders Ingemann
056d279b65
Read import in base.__init__
2015-04-16 22:15:19 +02:00
Anders Ingemann
bc8967529d
Move remote log stuff back into remote module
2015-04-16 22:15:19 +02:00
Anders Ingemann
909e5cee46
Put remote module into pkg root
2015-04-16 22:15:19 +02:00
Anders Ingemann
209651ef38
Dry run working in tests
2015-04-16 22:15:19 +02:00
Anders Ingemann
a7a3161d66
Require Pyro4 >= 4.30
2015-04-16 22:15:19 +02:00
Anders Ingemann
c5bc45218e
Fix documentation
2015-04-16 22:15:19 +02:00
Anders Ingemann
65b9e10ce3
VirtualBox integration
2015-04-16 22:15:19 +02:00
Anders Ingemann
31c453070f
Add log source to log messages
2015-04-16 22:15:18 +02:00
Anders Ingemann
0f4c08e51d
Refactor, logging, comments
2015-04-16 22:15:18 +02:00
Anders Ingemann
08976ffe07
Remove unused import
2015-04-16 22:15:18 +02:00
Anders Ingemann
1ddc0fbc32
Add comment about random ports
2015-04-16 22:15:18 +02:00
Anders Ingemann
f8d79f06e3
More graceful CallbackServer shutdown
2015-04-16 22:15:18 +02:00
Anders Ingemann
d88d73c7f1
Allow listening on different ports on remote and local
2015-04-16 22:15:18 +02:00
Anders Ingemann
fd07954764
Remove manual deserialization
2015-04-16 22:15:18 +02:00
Anders Ingemann
ed222d579f
Little refactor
2015-04-16 22:15:17 +02:00
Anders Ingemann
3542406b91
Fix (de-)serialization
2015-04-16 22:15:17 +02:00
Anders Ingemann
2b33561b82
Don't kill SSH, ask callback server to stop instead of commtimeout
2015-04-16 22:15:17 +02:00
Anders Ingemann
a35ae91b67
Simplify? Hopefully...
2015-04-16 22:15:17 +02:00
Anders Ingemann
282e22c001
debugging
2015-04-16 22:15:17 +02:00
Anders Ingemann
569e1246a5
Deserialize manifest
2015-04-16 22:15:17 +02:00
Anders Ingemann
922cabe80a
Serialize exception info by printing it
2015-04-16 22:15:17 +02:00